tests.sh 551 B

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