Mercurial > hg > toybox
comparison scripts/test.sh @ 291:620a2eab6b82
More tweaks to rmdir.test and the testing infrastructure.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 04 May 2008 19:44:39 -0500 |
parents | 977302071875 |
children | 8f481b23138b |
comparison
equal
deleted
inserted
replaced
290:d37e2de3a9f3 | 291:620a2eab6b82 |
---|---|
3 [ -z "$TOPDIR" ] && TOPDIR="$(pwd)" | 3 [ -z "$TOPDIR" ] && TOPDIR="$(pwd)" |
4 | 4 |
5 rm -rf testdir | 5 rm -rf testdir |
6 mkdir -p testdir | 6 mkdir -p testdir |
7 | 7 |
8 if [ -z "$OLD" ] | 8 if [ -z "$TEST_HOST" ] |
9 then | 9 then |
10 make install_flat PREFIX=testdir || exit 1 | 10 make install_flat PREFIX=testdir || exit 1 |
11 fi | 11 fi |
12 | 12 |
13 cd testdir | 13 cd testdir |
24 done | 24 done |
25 else | 25 else |
26 for i in "$TOPDIR"/scripts/test/*.test | 26 for i in "$TOPDIR"/scripts/test/*.test |
27 do | 27 do |
28 CMDNAME="$(echo "$i" | sed 's@.*/\(.*\)\.test@\1@')" | 28 CMDNAME="$(echo "$i" | sed 's@.*/\(.*\)\.test@\1@')" |
29 if [ -h $CMDNAME ] | 29 if [ -h $CMDNAME ] || [ ! -z "$TEST_HOST" ] |
30 then | 30 then |
31 . $i | 31 . $i |
32 else | 32 else |
33 echo "$CMDNAME disabled" | 33 echo "$CMDNAME disabled" |
34 fi | 34 fi |