From bcc354f183de93310f42b9f5e32380bddb207128 Mon Sep 17 00:00:00 2001 From: Cyril Hrubis Date: Mon, 22 Apr 2013 22:20:05 +0200 Subject: [PATCH] tests: Add good old runtest.sh to run isolated tests. Signed-off-by: Cyril Hrubis --- tests/{filters => core}/runtest.sh | 6 ++++-- tests/filters/runtest.sh | 6 ++++-- tests/{filters => gfx}/runtest.sh | 6 ++++-- tests/{filters => loaders}/runtest.sh | 6 ++++-- 4 files changed, 16 insertions(+), 8 deletions(-) copy tests/{filters => core}/runtest.sh (74%) copy tests/{filters => gfx}/runtest.sh (74%) copy tests/{filters => loaders}/runtest.sh (74%) diff --git a/tests/filters/runtest.sh b/tests/core/runtest.sh similarity index 74% copy from tests/filters/runtest.sh copy to tests/core/runtest.sh index 6b11a773..b3039a36 100755 --- a/tests/filters/runtest.sh +++ b/tests/core/runtest.sh @@ -9,5 +9,7 @@ # export LIBC_FATAL_STDERR_=1 -LD_PRELOAD=`pwd`/../framework/libtst_preload.so LD_LIBRARY_PATH=../../build/ ./FilterMirrorH "$@" -LD_PRELOAD=`pwd`/../framework/libtst_preload.so LD_LIBRARY_PATH=../../build/ ./APICoverage.gen "$@" +TEST="$1" +shift + +LD_PRELOAD=`pwd`/../framework/libtst_preload.so LD_LIBRARY_PATH=../../build/ "./$TEST" "$@" diff --git a/tests/filters/runtest.sh b/tests/filters/runtest.sh index 6b11a773..b3039a36 100755 --- a/tests/filters/runtest.sh +++ b/tests/filters/runtest.sh @@ -9,5 +9,7 @@ # export LIBC_FATAL_STDERR_=1 -LD_PRELOAD=`pwd`/../framework/libtst_preload.so LD_LIBRARY_PATH=../../build/ ./FilterMirrorH "$@" -LD_PRELOAD=`pwd`/../framework/libtst_preload.so LD_LIBRARY_PATH=../../build/ ./APICoverage.gen "$@" +TEST="$1" +shift + +LD_PRELOAD=`pwd`/../framework/libtst_preload.so LD_LIBRARY_PATH=../../build/ "./$TEST" "$@" diff --git a/tests/filters/runtest.sh b/tests/gfx/runtest.sh similarity index 74% copy from tests/filters/runtest.sh copy to tests/gfx/runtest.sh index 6b11a773..b3039a36 100755 --- a/tests/filters/runtest.sh +++ b/tests/gfx/runtest.sh @@ -9,5 +9,7 @@ # export LIBC_FATAL_STDERR_=1 -LD_PRELOAD=`pwd`/../framework/libtst_preload.so LD_LIBRARY_PATH=../../build/ ./FilterMirrorH "$@" -LD_PRELOAD=`pwd`/../framework/libtst_preload.so LD_LIBRARY_PATH=../../build/ ./APICoverage.gen "$@" +TEST="$1" +shift + +LD_PRELOAD=`pwd`/../framework/libtst_preload.so LD_LIBRARY_PATH=../../build/ "./$TEST" "$@" diff --git a/tests/filters/runtest.sh b/tests/loaders/runtest.sh similarity index 74% copy from tests/filters/runtest.sh copy to tests/loaders/runtest.sh index 6b11a773..b3039a36 100755 --- a/tests/filters/runtest.sh +++ b/tests/loaders/runtest.sh @@ -9,5 +9,7 @@ # export LIBC_FATAL_STDERR_=1 -LD_PRELOAD=`pwd`/../framework/libtst_preload.so LD_LIBRARY_PATH=../../build/ ./FilterMirrorH "$@" -LD_PRELOAD=`pwd`/../framework/libtst_preload.so LD_LIBRARY_PATH=../../build/ ./APICoverage.gen "$@" +TEST="$1" +shift + +LD_PRELOAD=`pwd`/../framework/libtst_preload.so LD_LIBRARY_PATH=../../build/ "./$TEST" "$@" -- 2.11.4.GIT