diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-24 20:41:15 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-24 20:42:57 -0700 |
commit | 15fe80b3bff7b0d249ee32bcbbe1dfa116d3c629 (patch) | |
tree | 8edf5313e3ef41395b406706dd807b97e6321eb9 /t/test-lib.sh | |
parent | e77369a6bde35a4e8925d450aac85f328f87d208 (diff) | |
download | rainbows-15fe80b3bff7b0d249ee32bcbbe1dfa116d3c629.tar.gz |
This will make it easier to enable and manage tests for new concurrency models.
Diffstat (limited to 't/test-lib.sh')
-rw-r--r--[-rwxr-xr-x] | t/test-lib.sh | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index 5e279a1..39225c6 100755..100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -5,19 +5,15 @@ set +u if test -z "$model" then - case $T in - t1???-thread-pool-*.sh) model=ThreadPool ;; - t2???-thread-spawn-*.sh) model=ThreadSpawn ;; - t3???-revactor-*.sh) model=Revactor ;; - t4???-rev-*.sh) model=Rev ;; - *) model=Base ;; - esac + # defaulting to Base would unfortunately fail some concurrency tests + model=ThreadSpawn + t_info "model undefined, defaulting to $model" fi set -e RUBY="${RUBY-ruby}" RUBY_VERSION=${RUBY_VERSION-$($RUBY -e 'puts RUBY_VERSION')} -t_pfx=$PWD/trash/$T-$RUBY_VERSION +t_pfx=$PWD/trash/$model.$T-$RUBY_VERSION set -u PATH=$PWD/bin:$PATH |