projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a2d88a
)
Teach run-all-tests mode to only test enabled commands.
author
Rob Landley
<rob@landley.net>
Sun, 4 May 2008 21:03:10 +0000
(16:03 -0500)
committer
Rob Landley
<rob@landley.net>
Sun, 4 May 2008 21:03:10 +0000
(16:03 -0500)
scripts/test.sh
patch
|
blob
|
history
diff --git
a/scripts/test.sh
b/scripts/test.sh
index
1833682
..
8a080db
100755
(executable)
--- a/
scripts/test.sh
+++ b/
scripts/test.sh
@@
-7,7
+7,7
@@
mkdir -p testdir
if [ -z "$OLD" ]
then
- make install_flat PREFIX=testdir
+ make install_flat PREFIX=testdir
|| exit 1
fi
cd testdir
@@
-25,6
+25,12
@@
then
else
for i in "$TOPDIR"/scripts/test/*.test
do
- . $i
+ CMDNAME="$(echo "$i" | sed 's@.*/\(.*\)\.test@\1@')"
+ if [ -h $CMDNAME ]
+ then
+ . $i
+ else
+ echo "$CMDNAME disabled"
+ fi
done
fi