run_test.sh 563 B

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. if [ $# -eq 0 ]; then
  3. echo "You should give a list of test names such as: "
  4. echo "$0 System.IO.FileTest System.Text.StringBuilderTest"
  5. echo "or"
  6. echo "$0 System.AllTests"
  7. echo "or"
  8. echo "$0 all"
  9. echo "and so on..."
  10. exit 1
  11. fi
  12. topdir=../../..
  13. NUNITCONSOLE=$topdir/class/lib/nunit-console.exe
  14. MONO_PATH=$topdir/nunit20:$topdir/class/lib:.
  15. for i in $@; do
  16. if [ "$i" = "all" ]; then
  17. fixture=""
  18. else
  19. fixture="/fixture:MonoTests.${i}"
  20. fi
  21. MONO_PATH=$MONO_PATH \
  22. mono --debug ${NUNITCONSOLE} System.Data.ObjectSpaces_test.dll $fixture
  23. done