1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
From b74f3c497d3fb689d12aed26dd5b8614ca6ac96e Mon Sep 17 00:00:00 2001
From: Graeme Gregory <graeme.gregory@linaro.org>
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 <graeme.gregory@linaro.org>
---
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
|