* Create scaffold_test.sh which holds actual tests (still calls scaffold.sh) * Move rm/unregister of foobar to setup/teardown functions * run.sh now prints deprecation warning and calls ../scripts/runtests
8 lines
396 B
Bash
8 lines
396 B
Bash
setup() { rm -rf foobar; }
|
|
teardown() { rm -rf foobar; ghc-pkg unregister foobar &>/dev/null; }
|
|
|
|
test_sqlite() { ../test/scaffold.sh < ../test/sqlite-input.txt ; }
|
|
test_postgresql() { ../test/scaffold.sh < ../test/postgresql-input.txt; }
|
|
test_mongodb() { ../test/scaffold.sh < ../test/mongodb-input.txt ; }
|
|
test_tiny() { ../test/scaffold.sh < ../test/tiny-input.txt ; }
|