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.

52 lines
1.1 KiB

2 months ago
  1. #! /bin/sh
  2. #
  3. # Check ADD:
  4. # Load an ADD
  5. # Store the same ADD
  6. # Compare the two
  7. # (done twice on a small - 0.add - and a medium - 1.add - ADD).
  8. #
  9. EXE=@EXEEXT@
  10. srcdir=@top_srcdir@
  11. where=${srcdir}/dddmp/exp
  12. dest=.
  13. exitval=0
  14. echo "---------------------------------------------------------------------------"
  15. echo "--------------------- TESTING Load ADD and Store ADD ----------------------"
  16. echo "---------------------------------------------------------------------------"
  17. ../testdddmp$EXE << END1
  18. mi
  19. 3
  20. hlb
  21. ${where}/0.add
  22. al
  23. ${where}/0.add
  24. 0
  25. as
  26. ${dest}/0.add.tmp
  27. 0
  28. mq
  29. mi
  30. 50
  31. hlb
  32. ${where}/1.add
  33. al
  34. ${where}/1.add
  35. 1
  36. as
  37. ${dest}/1.add.tmp
  38. 1
  39. mq
  40. quit
  41. END1
  42. test $? != 1 && exitval=1
  43. echo "----------------------------- ... RESULTS ... -----------------------------"
  44. diff --strip-trailing-cr --brief ${where}/0.add ${dest}/0.add.tmp
  45. test $? != 0 && exitval=1
  46. diff --strip-trailing-cr --brief ${where}/1.add ${dest}/1.add.tmp
  47. test $? != 0 && exitval=1
  48. echo "-------------------------------- ... END ----------------------------------"
  49. rm -f ${dest}/0.add.tmp ${dest}/1.add.tmp
  50. exit $exitval