From d38a2d64f0cddc951774b63d56b2fb5d9afb336e Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sat, 12 May 2018 18:09:44 +0200 Subject: [PATCH] tests: add support to run unit test --- test/lib/aux.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/lib/aux.sh b/test/lib/aux.sh index c56767ebd..977e91709 100644 --- a/test/lib/aux.sh +++ b/test/lib/aux.sh @@ -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 ;; -- 2.43.5