Mercurial > hg > toybox
comparison scripts/test.sh @ 606:b9ea00fffee5
Work around a Bash bug that removes "." from the $PATH when you're root. (The FSF believes it knows better than you, and won't let you do things, in the name of Freedom.)
author | Rob Landley <rob@landley.net> |
---|---|
date | Sun, 24 Jun 2012 15:26:53 -0500 |
parents | 8f481b23138b |
children | 4948a942de49 |
comparison
equal
deleted
inserted
replaced
605:cd4475a2efde | 606:b9ea00fffee5 |
---|---|
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 |
14 PATH=.:$PATH | 14 PATH="$(pwd):$PATH" |
15 | 15 |
16 . "$TOPDIR"/scripts/test/testing.sh | 16 . "$TOPDIR"/scripts/test/testing.sh |
17 [ -f "$TOPDIR/generated/config.h" ] && export OPTIONFLAGS=:$(echo $(sed -nr 's/^#define CFG_(.*) 1/\1/p' "$TOPDIR/generated/config.h") | sed 's/ /:/g') | 17 [ -f "$TOPDIR/generated/config.h" ] && export OPTIONFLAGS=:$(echo $(sed -nr 's/^#define CFG_(.*) 1/\1/p' "$TOPDIR/generated/config.h") | sed 's/ /:/g') |
18 | 18 |
19 if [ $# -ne 0 ] | 19 if [ $# -ne 0 ] |
20 then | 20 then |
21 for i in "$@" | 21 for i in "$@" |
22 do | 22 do |
23 ln -sf toybox $i | |
23 . "$TOPDIR"/scripts/test/$i.test | 24 . "$TOPDIR"/scripts/test/$i.test |
24 done | 25 done |
25 else | 26 else |
26 for i in "$TOPDIR"/scripts/test/*.test | 27 for i in "$TOPDIR"/scripts/test/*.test |
27 do | 28 do |