Welcome to the forums. Please post in English or French.

You are not logged in.

#1 2013-07-12 08:50:13

toltec
Member
Registered: 2009-01-04
Posts: 92

How to Run 2000+ Test Cases

Greetings All,

I've compiled v11.4 using the GNU compilers. I now want to run the 2000+ test cases as documented in README_aster.txt (which I've done many times for previous releases). The installation directory structure has changed from earlier releases. I can find the test input files in the SRC directory, but how do I run all cases using astout.export (which has vanished in V11.4)?

Regards

Gary

Last edited by toltec (2013-07-12 08:59:03)


Ubuntu 12.04
Intel(R) Core(TM)2 Quad CPU    Q9400  @ 2.66GHz

Offline

#2 2013-07-12 10:00:12

delmas
Administrator
From: EDF R&D
Registered: 2007-12-12
Posts: 837

Re: How to Run 2000+ Test Cases

You can build the list of all test case and run with Astk.


Code_Aster release : unstable on (Ubuntu Precise Pangolin 12.04 64 bits) - GNU + Intel

Code_Aster. What else ?

Offline

#3 2013-07-12 10:04:29

toltec
Member
Registered: 2009-01-04
Posts: 92

Re: How to Run 2000+ Test Cases

2000+ cases... wow! That'll take forever to build!

What happened to the astout.export method?


Ubuntu 12.04
Intel(R) Core(TM)2 Quad CPU    Q9400  @ 2.66GHz

Offline

#4 2013-07-12 10:13:44

jeanpierreaubry
Guru
From: nantes (france)
Registered: 2009-03-12
Posts: 3,238

Re: How to Run 2000+ Test Cases

how did you succed in compiling aster?

Offline

#5 2013-07-12 10:25:30

toltec
Member
Registered: 2009-01-04
Posts: 92

Re: How to Run 2000+ Test Cases

Hi jeanpierreaubry,

I can compile OK using the GNU compilers only which is why I want to run the 2000+ tests. I always run these tests to check how robust my installation is... in my experience (perhaps particular to me) the GNU installation always results in many NOOK/ERROR results for astout.export. My Intel installation is always more robust and of course faster.

To answer what I think your question is, I'm still not able to compile v11.4 using Intel. IMHO something in the installation script has changed from V11.3

Please let me know if you find you way around this problem.

Regards

Gary

Last edited by toltec (2013-07-12 10:29:13)


Ubuntu 12.04
Intel(R) Core(TM)2 Quad CPU    Q9400  @ 2.66GHz

Offline

#6 2013-07-12 10:31:00

delmas
Administrator
From: EDF R&D
Registered: 2007-12-12
Posts: 837

Re: How to Run 2000+ Test Cases

What about this command in the test-case directory ?

ls *.comm | awk -F. '{print$1}' > mylist.txt

You have to run the test in test-case tab in Astk.


Code_Aster release : unstable on (Ubuntu Precise Pangolin 12.04 64 bits) - GNU + Intel

Code_Aster. What else ?

Offline

#7 2013-07-12 10:45:05

jeanpierreaubry
Guru
From: nantes (france)
Registered: 2009-03-12
Posts: 3,238

Re: How to Run 2000+ Test Cases

toltec wrote:

I can compile OK using the GNU compilers

as far as i am concerned i cannot with gnu
a copy of setup.log and config.txt might help me

Offline

#8 2013-07-12 12:17:45

toltec
Member
Registered: 2009-01-04
Posts: 92

Re: How to Run 2000+ Test Cases

Files attached.

gcc version 4.6.3

Hope this helps


Attachments:
GNU_files.zip, Size: 8.95 KiB, Downloads: 198

Ubuntu 12.04
Intel(R) Core(TM)2 Quad CPU    Q9400  @ 2.66GHz

Offline

#9 2013-07-12 14:03:09

jeanpierreaubry
Guru
From: nantes (france)
Registered: 2009-03-12
Posts: 3,238

Re: How to Run 2000+ Test Cases

thanks but
the config.txt file i need is the one siiting in the tmp build dir at compile time, like
/tmp/install_aster.27262/aster-11.4.0/build/config.log

Offline

#10 2018-03-01 10:27:41

Frederic.renou
Member
From: paris
Registered: 2009-02-26
Posts: 154
Website

Re: How to Run 2000+ Test Cases

hello all, long time no see smile

sorry to ask but is ther a way to run all test in the 13.4 release from the command line ?

thanks

frédéric


fred

Offline

#11 2018-03-01 17:37:24

Thomas DE SOZA
Guru
From: EDF
Registered: 2007-11-23
Posts: 3,054

Re: How to Run 2000+ Test Cases

Hello Frédéric,

Several ways to do that:

  • via Salome-Meca: https://www.code-aster.org/V2/docsmeca/ … .02.01.pdf

  • via code_aster standalone: build an export file with all the list of testcases ("as_run --list"), see [U1.04.00]

  • via a code_aster development version: "run_testcases" with a list build by hand with "as_run --list"

TdS

[EDIT : key of "as_run" manual]

Offline

#12 2018-03-03 10:38:45

Frederic.renou
Member
From: paris
Registered: 2009-02-26
Posts: 154
Website

Re: How to Run 2000+ Test Cases

thanks thomas


I read U1.04.00 (and not U4.01.00 wink

finally I do:

/home/codeaster/aster-full-exe/bin/as_run --list --all > alltest.txt

I create the following file and run it

---------------
#!/bin/bash

for testcase in `cat alltest.txt`
do
        /home/codeaster/aster-full-exe/bin/as_run --test $testcase /home/codeaster/test/
done
-----------


and once it's finish I will do
/home/codeaster/aster-full-exe/bin/as_run --diag --astest_dir=/home/codeaster/test


hope it help


fred

Offline

#13 2018-03-04 11:35:09

Frederic.renou
Member
From: paris
Registered: 2009-02-26
Posts: 154
Website

Re: How to Run 2000+ Test Cases

additionnal question:

salome running test does not work I got the following error message any idéa?


./salome test -R "ASTER_13.2.0_erreu06a"


ERROR:salomeContext:Unexpected error:
Traceback (most recent call last):
  File "/home/frenou/salome_meca/V2017.0.2/modules/KERNEL_V8_3_0/bin/salome/salomeContext.py", line 262, in _startSalome
    res = getattr(self, command)(options) # run appropriate method
  File "/home/frenou/salome_meca/V2017.0.2/modules/KERNEL_V8_3_0/bin/salome/salomeContext.py", line 418, in _runTests
    return runTests.runTests(args, exe="salome test")
  File "/home/frenou/salome_meca/appli_V2017.0.2/bin/salome/runTests.py", line 87, in runTests
    p = subprocess.Popen(command, cwd=testPath)
  File "/home/frenou/salome_meca/V2017.0.2/prerequisites/Python-2710/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/home/frenou/salome_meca/V2017.0.2/prerequisites/Python-2710/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

regards


fred

Offline

#14 2018-03-05 17:13:35

Thomas DE SOZA
Guru
From: EDF
Registered: 2007-11-23
Posts: 3,054

Re: How to Run 2000+ Test Cases

Hello,

Frederic.renou wrote:

salome running test does not work I got the following error message any idéa?


./salome test -R "ASTER_13.2.0_erreu06a"


When launching manually such as here, the label has to updated in accordance with the code_aster version installed in the given Salome-Meca version.

For Salome-Meca 2017, that would be either

ASTER_13.4.0_erreu06a

==> for the "stable" version.

ASTER_12.8.0_erreu06a

==> for the "oldstable" version.

TdS

Offline

Board footer