master - tests: add support to run unit test
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=d38a2d64f0cddc951774b63d56b2fb5d9afb336e Commit: d38a2d64f0cddc951774b63d56b2fb5d9afb336e Parent: 7616a7f46ee3de6dfc898b98ed33dbbf9d12cc95 Author: Zdenek Kabelac <[email protected]> AuthorDate: Sat May 12 18:09:44 2018 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Sat May 12 18:18:23 2018 +0200
tests: add support to run unit test
--- test/lib/aux.sh | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
test/lib/aux.sh +5 -0
@@ -1351,6 +1351,11 @@ apitest() { "$TESTOLDPWD/api/$1.t" "${@:2}" && rm -f debug.log strace.log } +unittest() { + test -x "$TESTOLDPWD/unit/unit-test" || skip + "$TESTOLDPWD/unit/unit-test" "${@}" +} + mirror_recovery_works() { case "$(uname -r)" in 3.3.4-5.fc17.i686|3.3.4-5.fc17.x86_64) return 1 ;;