Shayan Doust pushed to branch master at Debian Med / mmseqs2
Commits: fc0837b8 by Shayan Doust at 2019-07-20T15:28:12Z Patch to fix the matrix serialization test - - - - - b4ff22b5 by Shayan Doust at 2019-07-20T15:30:10Z Merge branch 'master' of salsa.debian.org:med-team/mmseqs2 - - - - - 3 changed files: - + debian/patches/fix_tests.patch - debian/patches/series - debian/tests/run-unit-test Changes: ===================================== debian/patches/fix_tests.patch ===================================== @@ -0,0 +1,26 @@ +Description: Fix some of the test src files to work in autopkgtest + as some of the tests do not work as the paths have either been hardcoded or SIGSEGV is thrown +Author: Shayan Doust <[email protected]> +Last-Update: 2019-07-20 +--- + +Index: mmseqs2/src/test/TestScoreMatrixSerialization.cpp +=================================================================== +--- mmseqs2.orig/src/test/TestScoreMatrixSerialization.cpp 2019-07-20 16:21:13.549699250 +0100 ++++ mmseqs2/src/test/TestScoreMatrixSerialization.cpp 2019-07-20 16:21:13.545699216 +0100 +@@ -18,10 +18,11 @@ + ScoreMatrix* unserialized = ScoreMatrix::unserialize(serialized, subMat.alphabetSize, 3); + + Debug(Debug::INFO) << unserialized->elementSize << " " << unserialized->rowSize << " " +- << unserialized->score[0] << " " << unserialized->index[0] << "\n"; +- +- ScoreMatrix::cleanup(unserialized); ++ << unserialized->score[0] << "\n"; ++ + free(serialized); +- ScoreMatrix::cleanup(extMattwo); ++ // Why not use an operator. Will free & destruct & will not SIGSEGV ++ delete(unserialized); ++ + return EXIT_SUCCESS; + } ===================================== debian/patches/series ===================================== @@ -1,3 +1,4 @@ +fix_tests.patch fix_src_zstd_includes.patch fix_util_installation.patch use_system_zstd.patch ===================================== debian/tests/run-unit-test ===================================== @@ -55,3 +55,5 @@ echo "Invoking test_translate" ./test_translate echo "Invoking test_util" ./test_util +echo "Invoking test_scorematrixserialization" +./test_scorematrixserialization View it on GitLab: https://salsa.debian.org/med-team/mmseqs2/compare/38968c9e4abd876d16cdf44cc84acac88f508bb0...b4ff22b5a7ae10f41c6b323ae956f2024fafd2f6 -- View it on GitLab: https://salsa.debian.org/med-team/mmseqs2/compare/38968c9e4abd876d16cdf44cc84acac88f508bb0...b4ff22b5a7ae10f41c6b323ae956f2024fafd2f6 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
