On Mon, 2010-05-31 at 10:04 +0200, Robert Cimrman wrote:
Hi Osman,
On 05/29/10 01:36, osman wrote:
Hi Robert, I just cloned the latest snapshot. I am getting 2 failures. One is in quadrature test : ./runTests.py tests/test_quadratures.py --filter-less<<< directory: tests, test files: 1 tests/test_quadratures.py test instance prepared (2 test(s)) ... geometry: 1_2 ... order: 1 --- test_quadratures: failed! ... geometry: 1_2 ... order 1: True ... order 3: True ... order 5: True ... order 7: True ... order 9: True ... geometry: 2_3 ... order 1: True ... order 2: True ... order 3: True ... geometry: 2_4 ... order 2: True ... order 3: True ... order 5: True ... geometry: 3_4 ... order 1: True ... order 2: True ... order 3: True ... geometry: 3_8 ... order 2: True ... order 3: True ... order 5: True +++ test_weight_consistency: ok !!! 1 test failed 1 test file(s) executed in 0.22 s, 1 failure(s) of 2 test(s)
./runTests.py tests/test_input_linear_elastic_mM.py --filter-less <<< directory: tests, test files: 1 tests/test_input_linear_elastic_mM.py --- test instance creation failed !!! 1 test failed 1 test file(s) executed in 0.00 s, 1 failure(s) of 1 test(s)
Now that one is due to my ubuntu karmic not having a good python tables (no hdf5 support).
There is another thing that causes this test to fail, it is a known issue of the current master branch.
The first one:
./runTests.py tests/test_quadratures.py --filter-less --debug <<< directory: tests, test files: 1 <<< tests/test_quadratures.py sfepy: left over: ['get_poly', 'nm', '__builtins__', '_filename', '__file__', '__package__', '__doc__', 'sm', '__name__', 'ordered_iteritems', 'TestCommon']
test instance prepared (2 test(s)) ... geometry: 1_2 ... order: 1
Traceback (most recent call last): File "./runTests.py", line 225, in<module> main() File "./runTests.py", line 216, in main run_tests(stats, dirname, [filename]) File "./runTests.py", line 148, in run_tests n_fail, n_total, test_time = run_test( conf_name, options ) File "./runTests.py", line 111, in run_test ok, n_fail, n_total = test.run( options.debug ) File "/home/osman/src/sfepy/sfepy/base/testing.py", line 38, in run ret = test_method() File "tests/test_quadratures.py", line 96, in test_quadratures is_simplex=is_simplex) File "tests/test_quadratures.py", line 20, in get_poly xs = sm.symarray(dim, 'x') AttributeError: 'module' object has no attribute 'symarray' Anything I can do for this failure?
The function symarray was introduced is SymPy 0.6.7 (IMHO) - could you try that version?
Basically, the function creates a list of SymPy symbols:
xs = symarray('x', 3) -> ['x_0', 'x_1', 'x_2']
and it's small enough that we could just copy it from SymPy (also the BSD license) and paste it into the test file to prevent further version problems.
-> Another EasyToFix issue.
cheers, r.
Thanks Robert. The quadrature test now passes. it was a version issue. I had my own install of 0.6.6 anyways. Installing my own in this case did not break my system :-) I guess I need to update to ubuntu 10.04 soon :-(
Another problem: in the examples dir navier_stokes , I had to add from numarray import * so that nm.ones and nm.float64 was recognized in the verify_incompressibility function.