Commit bafe7e43 by Zachary Snow

test runner supports test selection

parent 04de45b0
...@@ -2,10 +2,22 @@ ...@@ -2,10 +2,22 @@
SCRIPT_DIR=`dirname "${BASH_SOURCE[0]}"` SCRIPT_DIR=`dirname "${BASH_SOURCE[0]}"`
tests=`ls *.sv | sed -e "s_\.sv\\\$__"`
if [ "$1" ]; then
tests="$1"
shift
fi
addTest() {
test="$1"
eval "test_$test() { runTest \"$test\"; }"
suite_addTest "test_$test"
}
suite() { suite() {
for test in `ls *.sv | sed -e "s_\.sv\\\$__"`; do for test in $tests; do
eval "test_$test() { runTest \"$test\"; }" addTest $test
suite_addTest "test_$test"
done done
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment