thegooglecodearchive / sfepy

Automatically exported from code.google.com/p/sfepy
0 stars 0 forks source link

tests won't pass without manually creating the output-tests dir #12

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:

$ hg clone http://hg.sympy.org/sfepy
$ cd sfepy

Apply the patch in the issue 10 if you use scipy0.6.0.

$ make
$ ./runTests.py --filter-more
<<< directory: tests, test files: 14
+++ test_structAdd: ok
+++ test_structIAdd: ok
--- test_linear_terms: failed!
--- test_input: failed!
--- test_input: failed!
--- test_input: failed!
--- test_input: failed!
--- test_recursiveDictHDF5: failed!
--- test_sparseMatrixHDF5: failed!
--- test_linearRigidBodyBC: failed!
--- test_linearRigidBodyBC: failed!
+++ test_readMeshes: ok
+++ test_compareSameMeshes: ok
+++ test_parseEquations: ok
+++ test_parseRegions: ok
+++ test_pbc: ok
+++ test_pbc: ok
+++ test_problemCreation: ok
14 test file(s) executed in 9.91 s, 9 failure(s) of 18 test(s)

and here is a fix:

$ mkdir output-tests
$ ./runTests.py --filter-more
<<< directory: tests, test files: 14
+++ test_structAdd: ok
+++ test_structIAdd: ok
+++ test_linear_terms: ok
+++ test_input: ok
+++ test_input: ok
+++ test_input: ok
+++ test_input: ok
+++ test_recursiveDictHDF5: ok
+++ test_sparseMatrixHDF5: ok
--- test_linearRigidBodyBC: failed!
--- test_linearRigidBodyBC: failed!
+++ test_readMeshes: ok
+++ test_compareSameMeshes: ok
+++ test_parseEquations: ok
+++ test_parseRegions: ok
+++ test_pbc: ok
+++ test_pbc: ok
+++ test_problemCreation: ok
14 test file(s) executed in 13.96 s, 2 failure(s) of 18 test(s)

So either the test suite should create the directory if it doesn't exist,
or we need to put some empty file and put that file into the hg control.

The two failing tests are due to the issue 11.

Original issue reported on code.google.com by ondrej.c...@gmail.com on 5 Feb 2008 at 1:29

GoogleCodeExporter commented 9 years ago
creating the directory is ok, I will fix it.

Original comment by robert.c...@gmail.com on 5 Feb 2008 at 1:38

GoogleCodeExporter commented 9 years ago
done.

Original comment by robert.c...@gmail.com on 5 Feb 2008 at 1:53

GoogleCodeExporter commented 9 years ago
Works fine now.

Original comment by ondrej.c...@gmail.com on 5 Feb 2008 at 2:03

GoogleCodeExporter commented 9 years ago
Migrated to http://github.com/sfepy/sfepy/issues/16

Original comment by robert.c...@gmail.com on 30 Jan 2012 at 10:23