sfepy/sfepy — Issue #16: tests won't pass without manually creating the output-tests dir
Author: rc
Created: 2012-01-30 10:23:57+00:00
State: open

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.

Migrated from http://code.google.com/p/sfepy/issues/detail?id=12

earlier comments

robert.cimrman said, at 2008-02-05T13:38:56.000Z:

creating the directory is ok, I will fix it.

robert.cimrman said, at 2008-02-05T13:53:46.000Z:

done.

ondrej.certik said, at 2008-02-05T14:03:33.000Z:

Works fine now.