diff options
Diffstat (limited to 'test/testlib')
-rw-r--r-- | test/testlib | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/test/testlib b/test/testlib index 2e4fefc8c..3858431a7 100644 --- a/test/testlib +++ b/test/testlib @@ -14,7 +14,21 @@ build() { } run() { - $G $D/$F.go && $L $F.$A && ./$A.out "$@" + gofiles="" + ingo=true + while $ingo; do + case "$1" in + *.go) + gofiles="$gofiles $1" + shift + ;; + *) + ingo=false + ;; + esac + done + + $G $D/$F.go $gofiles && $L $F.$A && ./$A.out "$@" } cmpout() { @@ -24,3 +38,7 @@ cmpout() { errorcheck() { errchk $G -e $D/$F.go } + +skip() { + true +} |