diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-17 22:42:56 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-17 22:42:56 -0700 |
commit | b68b53c0323f691dbc412fa5ff581ff0b9a7ef1f (patch) | |
tree | 2261f432ff2bc1777913813a18789b742fba59f7 /t/test-lib.sh | |
parent | a764983fccd6cce64043d76e09a5e1718e7f8fd6 (diff) | |
download | rainbows-b68b53c0323f691dbc412fa5ff581ff0b9a7ef1f.tar.gz |
This makes it easier to write/share code for multi-model tests.
Diffstat (limited to 't/test-lib.sh')
-rw-r--r-- | t/test-lib.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index 2a81a58..29b57f7 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -50,6 +50,13 @@ require_rev() { fi } +require_for_model () { + case $model in + Rev) require_rev ;; + Revactor) require_revactor ;; + esac +} + # given a list of variable names, create temporary files and assign # the pathnames to those variables rtmpfiles () { |