make test is failing
samfux84 opened this issue · 2 comments
samfux84 commented
After compiling dropEst 0.8.6 with
- GCC 4.8.5
- Bamtools 2.5.1
- CMake 3.11.1
- Boost 1.66.0
- zlib 1.2.11
- bzip2 1.0.6
- R 3.5.1
when running "make test", the tests 3 and 4 fail:
[sfux@eu-c7-041-01 Temporary]$ cat LastTest.log
Start testing: Aug 22 08:44 CEST
----------------------------------------------------------
1/4 Testing: TestTagsSearch
1/4 Test: TestTagsSearch
Command: "/scratch/98666981.tmpdir/dropEst-0.8.6/build/TestTagsSearch"
Directory: /scratch/98666981.tmpdir/dropEst-0.8.6/build
"TestTagsSearch" start time: Aug 22 08:44 CEST
Output:
----------------------------------------------------------
Running 10 test cases...
*** No errors detected
<end of output>
Test time = 0.07 sec
----------------------------------------------------------
Test Passed.
"TestTagsSearch" end time: Aug 22 08:44 CEST
"TestTagsSearch" time elapsed: 00:00:00
----------------------------------------------------------
2/4 Testing: TestEstimation
2/4 Test: TestEstimation
Command: "/scratch/98666981.tmpdir/dropEst-0.8.6/build/TestEstimation"
Directory: /scratch/98666981.tmpdir/dropEst-0.8.6/build
"TestEstimation" start time: Aug 22 08:44 CEST
Output:
----------------------------------------------------------
Running 19 test cases...
[2019-08-22 08:44:48.027693] [0x00002ae869f8db80] [trace] Real CBs merge selected.
*** No errors detected
<end of output>
Test time = 0.04 sec
----------------------------------------------------------
Test Passed.
"TestEstimation" end time: Aug 22 08:44 CEST
"TestEstimation" time elapsed: 00:00:00
----------------------------------------------------------
3/4 Testing: TestEstimationMergeProbs
3/4 Test: TestEstimationMergeProbs
Command: "/scratch/98666981.tmpdir/dropEst-0.8.6/build/TestEstimationMergeProbs"
Directory: /scratch/98666981.tmpdir/dropEst-0.8.6/build
"TestEstimationMergeProbs" start time: Aug 22 08:44 CEST
Output:
----------------------------------------------------------
Running 4 test cases...
[2019-08-22 08:44:48.070139] [0x00002b8972724b40] [trace] Poisson Real CBs merge selected.
/scratch/98666981.tmpdir/dropEst-0.8.6/Tests/TestEstimationMergeProbs.cpp(118): error: in "TestEstimatorMergeProbs/testIntersectionSizeEstimation": check std::abs(this->estimator.estimate_genes_intersection_size(1, 5) - 0.7264) <= 1e-2 has failed [0.048373124830583536 > 0.01]
/scratch/98666981.tmpdir/dropEst-0.8.6/Tests/TestEstimationMergeProbs.cpp(119): error: in "TestEstimatorMergeProbs/testIntersectionSizeEstimation": check std::abs(this->estimator.estimate_genes_intersection_size(2, 5) - 1.4484) <= 1e-2 has failed [0.49528671486608356 > 0.01]
/scratch/98666981.tmpdir/dropEst-0.8.6/Tests/TestEstimationMergeProbs.cpp(120): error: in "TestEstimatorMergeProbs/testIntersectionSizeEstimation": check std::abs(this->estimator.estimate_genes_intersection_size(3, 5) - 2.1380) <= 1e-2 has failed [0.24731271934692289 > 0.01]
/scratch/98666981.tmpdir/dropEst-0.8.6/Tests/TestEstimationMergeProbs.cpp(121): error: in "TestEstimatorMergeProbs/testIntersectionSizeEstimation": check std::abs(this->estimator.estimate_genes_intersection_size(4, 5) - 2.7923) <= 1e-2 has failed [0.53932815404295376 > 0.01]
/scratch/98666981.tmpdir/dropEst-0.8.6/Tests/TestEstimationMergeProbs.cpp(122): error: in "TestEstimatorMergeProbs/testIntersectionSizeEstimation": check std::abs(this->estimator.estimate_genes_intersection_size(5, 5) - 3.4346) <= 1e-2 has failed [0.48168868641972251 > 0.01]
/scratch/98666981.tmpdir/dropEst-0.8.6/Tests/TestEstimationMergeProbs.cpp(124): error: in "TestEstimatorMergeProbs/testIntersectionSizeEstimation": check std::abs(this->estimator.estimate_genes_intersection_size(5, 3) - 2.1380) <= 1e-2 has failed [0.24731271934692289 > 0.01]
/scratch/98666981.tmpdir/dropEst-0.8.6/Tests/TestEstimationMergeProbs.cpp(133): error: in "TestEstimatorMergeProbs/testPoissonMergeProbs": check std::abs(this->estimator.estimate_intersection_prob(*this->container_full, 5, 6).merge_probability - 0.05) <= 0.01 has failed [0.054956388585903293 > 0.01]
*** 7 failures are detected in the test module "tests"
<end of output>
Test time = 1.53 sec
----------------------------------------------------------
Test Failed.
"TestEstimationMergeProbs" end time: Aug 22 08:44 CEST
"TestEstimationMergeProbs" time elapsed: 00:00:01
----------------------------------------------------------
4/4 Testing: TestTools
4/4 Test: TestTools
Command: "/scratch/98666981.tmpdir/dropEst-0.8.6/build/TestTools"
Directory: /scratch/98666981.tmpdir/dropEst-0.8.6/build
"TestTools" start time: Aug 22 08:44 CEST
Output:
----------------------------------------------------------
Running 10 test cases...
Total genes: 15037
Error in file(filename, "r", encoding = encoding) :
cannot open the connection
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
cannot open file '/scratch/98666981.tmpdir/dropEst-0.8.6/build/Functions.R': No such file or directory
unknown location(0): fatal error: in "TestTools/testR": std::runtime_error: Error evaluating: source('/scratch/98666981.tmpdir/dropEst-0.8.6/build/Functions.R')
/scratch/98666981.tmpdir/dropEst-0.8.6/Tests/TestTools.cpp(227): last checkpoint: "testR" test entry
*** 1 failure is detected in the test module "tests"
<end of output>
Test time = 5.86 sec
----------------------------------------------------------
Test Failed.
"TestTools" end time: Aug 22 08:44 CEST
"TestTools" time elapsed: 00:00:05
----------------------------------------------------------
End testing: Aug 22 08:44 CEST
[sfux@eu-c7-041-01 Temporary]$
Any idea what the reason could be ?
VPetukhov commented
TestEstimationMergeProbs
uses some simulations, and looks like they are not consistent between compiler versions. So, you can ignore it. And it looks like testR
is simply out of date.
samfux84 commented
Thank you for your reply.