Elmer snapshot (6156) check fails

Discussion about building and installing Elmer
Post Reply
Bernd_Schmitt
Posts: 12
Joined: 29 Nov 2012, 11:36
Antispam: Yes

Elmer snapshot (6156) check fails

Post by Bernd_Schmitt »

Hello,

(thanks for the great software ...)

this is

Linux 3.2.0-40-generic #64-Ubuntu SMP Mon Mar 25 21:22:10 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

compiling worked fine (AFAIS), but testing fails (or I do sth wrong):

~/Downloads/ElmerFEM-SRC/elmerfem-code-6156/trunk/fem$ make check

Making check in src
make[1]: Entering directory `/home/likewise-open/DKI/gloecr/Downloads/ElmerFEM-SRC/elmerfem-code-6156/trunk/fem/src'
Making check in view3d
make[2]: Entering directory `/home/likewise-open/DKI/gloecr/Downloads/ElmerFEM-SRC/elmerfem-code-6156/trunk/fem/src/view3d'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/home/likewise-open/DKI/gloecr/Downloads/ElmerFEM-SRC/elmerfem-code-6156/trunk/fem/src/view3d'
Making check in viewaxis
make[2]: Entering directory `/home/likewise-open/DKI/gloecr/Downloads/ElmerFEM-SRC/elmerfem-code-6156/trunk/fem/src/viewaxis'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/home/likewise-open/DKI/gloecr/Downloads/ElmerFEM-SRC/elmerfem-code-6156/trunk/fem/src/viewaxis'
Making check in binio
make[2]: Entering directory `/home/likewise-open/DKI/gloecr/Downloads/ElmerFEM-SRC/elmerfem-code-6156/trunk/fem/src/binio'
Making check in test
make[3]: Entering directory `/home/likewise-open/DKI/gloecr/Downloads/ElmerFEM-SRC/elmerfem-code-6156/trunk/fem/src/binio/test'
make writetest readtest
make[4]: Entering directory `/home/likewise-open/DKI/gloecr/Downloads/ElmerFEM-SRC/elmerfem-code-6156/trunk/fem/src/binio/test'
make[4]: `writetest' is up to date.
make[4]: `readtest' is up to date.
make[4]: Leaving directory `/home/likewise-open/DKI/gloecr/Downloads/ElmerFEM-SRC/elmerfem-code-6156/trunk/fem/src/binio/test'
make check-TESTS
make[4]: Entering directory `/home/likewise-open/DKI/gloecr/Downloads/ElmerFEM-SRC/elmerfem-code-6156/trunk/fem/src/binio/test'
PASS: run-writetest
./run-readtest: line 4: [: too many arguments
FAIL: run-readtest
===================
1 of 2 tests failed
===================
make[4]: *** [check-TESTS] Error 1
make[4]: Leaving directory `/home/likewise-open/DKI/gloecr/Downloads/ElmerFEM-SRC/elmerfem-code-6156/trunk/fem/src/binio/test'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/home/likewise-open/DKI/gloecr/Downloads/ElmerFEM-SRC/elmerfem-code-6156/trunk/fem/src/binio/test'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/home/likewise-open/DKI/gloecr/Downloads/ElmerFEM-SRC/elmerfem-code-6156/trunk/fem/src/binio'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/likewise-open/DKI/gloecr/Downloads/ElmerFEM-SRC/elmerfem-code-6156/trunk/fem/src'
make: *** [check-recursive] Error 1


Can someone give me hint/url/man-page to understand what is going wrong & to weight the importance?


Thanx
Bernd
agualdino
Posts: 5
Joined: 27 Jan 2014, 19:06
Antispam: Yes

Re: Elmer snapshot (6156) check fails

Post by agualdino »

Hi,

I am stuck with a similar (unidentified) problem.

Did you solve this Bernd?

Thanks,
Alexandra
theaembee
Posts: 4
Joined: 08 Jan 2014, 13:06
Antispam: Yes

Re: Elmer snapshot (6156) check fails

Post by theaembee »

Hello,

I had the same problem and found the solution. Just delete the first space in the fourth line of run-readtest (in .../elmerfem/fem/src/binio/test). The result should be:

Code: Select all

[""$ok = "OK" ]
This works for me.

Cheers
theaembee

edit: I have ubuntu 12.04
raback
Site Admin
Posts: 4823
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Elmer snapshot (6156) check fails

Post by raback »

This has now been fixed in rev. 6532. Thank you all for reporting! -Peter
sni
Posts: 2
Joined: 23 Feb 2014, 22:00
Antispam: Yes

Re: Elmer snapshot (6156) check fails

Post by sni »

raback wrote:This has now been fixed in rev. 6532. Thank you all for reporting! -Peter
Unfortunately now it seems to be broken:

./run-readtest: command substitution: line 3: unexpected EOF while looking for matching `"'
./run-readtest: command substitution: line 4: syntax error: unexpected end of file

Code: Select all

!/bin/bash
ok=`./readtest|sed -e "s/^ *//`
[ "$ok" = " OK" ]
It works when I edit it to

Code: Select all

!/bin/bash
ok=`./readtest`
[ "$ok" = " OK" ]
I believe that it is the original contain of file before the r6532. I am compiling the trunk - r6539.

best regards,
Post Reply