The source code and dockerfile for the GSW2024 AI Lab.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

36 lines
856 B

4 weeks ago
  1. #! /bin/sh
  2. EXE=@EXEEXT@
  3. srcdir=@srcdir@
  4. file=test
  5. verbosity=2
  6. sed_command='-r:-e:2d:-e:s/0x[0-9a-f][0-9a-f]*//g:-e:/modifiable/,$d'
  7. echo TAP version 13
  8. echo 1..1
  9. mtr/testmtr$EXE -p $verbosity ${srcdir}/mtr/${file}.groups > ./mtr/${file}.tst
  10. failed=`expr $? != 0`
  11. if test x$failed = x0; then
  12. echo "# comparing ./mtr/${file}.tst to ${srcdir}/mtr/${file}.out"
  13. mkfifo ./mtr/tst_fifo ./mtr/out_fifo
  14. OIFS=$IFS
  15. IFS=:
  16. `sed ${sed_command} ./mtr/${file}.tst > ./mtr/tst_fifo &\
  17. sed ${sed_command} ${srcdir}/mtr/${file}.out > ./mtr/out_fifo &\
  18. diff -b ./mtr/tst_fifo ./mtr/out_fifo > ./mtr/differences`
  19. failed=`expr $? != 0`
  20. rm ./mtr/tst_fifo ./mtr/out_fifo
  21. IFS=$OIFS
  22. fi
  23. if test x$failed = x0; then
  24. rm -rf ./mtr/differences
  25. echo ok 1
  26. else
  27. echo not ok 1
  28. echo '# Check file "./mtr/differences"'
  29. fi
  30. exit 0