about summary refs log tree commit homepage
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-17 22:42:56 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-17 22:42:56 -0700
commitb68b53c0323f691dbc412fa5ff581ff0b9a7ef1f (patch)
tree2261f432ff2bc1777913813a18789b742fba59f7 /t/test-lib.sh
parenta764983fccd6cce64043d76e09a5e1718e7f8fd6 (diff)
downloadrainbows-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.sh7
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 () {