From b74f3c497d3fb689d12aed26dd5b8614ca6ac96e Mon Sep 17 00:00:00 2001 From: Graeme Gregory Date: Tue, 25 Nov 2014 12:49:42 +0000 Subject: [PATCH] aaptisrun : alter to allow destination directory as argument Also search for appits in $PATH Upstream-status: Inapropriate [LAVA use only, upstream unmaintained] Signed-off-by: Graeme Gregory --- tests/aapits/bin/aapitsrun | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/aapits/bin/aapitsrun b/tests/aapits/bin/aapitsrun index cfa999e..3a97a0f 100755 --- a/tests/aapits/bin/aapitsrun +++ b/tests/aapits/bin/aapitsrun @@ -20,7 +20,7 @@ # Init variables of utility -AAPITSDIR=../tmp +AAPITSDIR="$1" AAPITSOUT=${AAPITSDIR}/raw.out AAPITSSUM=${AAPITSDIR}/sum.out @@ -56,6 +56,8 @@ TESTS_NUMBERS="$AT_INIT_TEST_NUM $AT_MEMM_TEST_NUM $AT_TBLM_TEST_NUM $AT_NSPM_TE # Check the working directory +mkdir -p "$AAPITSDIR/aml" || true + if [ ! -d "$AAPITSDIR" ]; then echo "There is no directory $AAPITSDIR, run make in ../asl" exit 1 @@ -68,7 +70,7 @@ if [ ! -d "$AAPITSAML" ]; then exit 1 fi -AAPITS=./aapits +AAPITS=`which aapits` # Check access to AapiTS utility @@ -144,8 +144,8 @@ echo "tests_fail=$tests_fail" echo "tests_none=$tests_none" echo "tests_fault=$tests_fault" -echo "End AAPI TS: " $TS_FMT_INIDATE:$TS_FMT_INITIME > $AAPITSOUT -echo "End AAPI TS: " $TS_FMT_INIDATE:$TS_FMT_INITIME > $AAPITSSUM +echo "End AAPI TS: " $TS_FMT_INIDATE:$TS_FMT_INITIME >> $AAPITSOUT +echo "End AAPI TS: " $TS_FMT_INIDATE:$TS_FMT_INITIME >> $AAPITSSUM echo "End AAPI TS: " $TS_FMT_INIDATE:$TS_FMT_INITIME exit 0 -- 2.1.1