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.

67 lines
1.3 KiB

4 weeks ago
  1. #! /bin/sh
  2. #
  3. # BDD Check:
  4. # Load BDDs
  5. # Make some operations (with reordering)
  6. # Store BDDs
  7. #
  8. EXE=@EXEEXT@
  9. srcdir=@top_srcdir@
  10. where=${srcdir}/dddmp/exp
  11. dest=.
  12. exitval=0
  13. echo "---------------------------------------------------------------------------"
  14. echo "---------- TESTING Load/Store with sifting, varnames & varauxids ----------"
  15. echo "---------------------------------------------------------------------------"
  16. ../testdddmp$EXE << END1
  17. mi
  18. 50
  19. onl
  20. ${where}/varnames.ord
  21. bl
  22. ${where}/4.bdd
  23. 4
  24. oil
  25. ${where}/varauxids.ord
  26. bs
  27. ${dest}/4a.bdd.tmp
  28. 4
  29. dr
  30. 4
  31. bs
  32. ${dest}/4b.bdd.tmp
  33. 4
  34. mq
  35. quit
  36. END1
  37. test $? != 1 && exitval=1
  38. echo "------------------------- ... END PHASE 1 ... -----------------------------"
  39. ../testdddmp$EXE << END2
  40. mi
  41. 50
  42. onl
  43. ${where}/varnames.ord
  44. slm
  45. 3
  46. bl
  47. ${dest}/4b.bdd.tmp
  48. 4
  49. oil
  50. ${where}/varauxids.ord
  51. bs
  52. ${dest}/4c.bdd.tmp
  53. 4
  54. mq
  55. quit
  56. END2
  57. test $? != 1 && exitval=1
  58. echo "----------------------------- ... RESULTS ... -----------------------------"
  59. diff --strip-trailing-cr --brief ${where}/4.bdd ${dest}/4a.bdd.tmp
  60. test $? != 0 && exitval=1
  61. diff --strip-trailing-cr --brief ${dest}/4a.bdd.tmp ${dest}/4c.bdd.tmp
  62. test $? != 0 && exitval=1
  63. echo "-------------------------------- ... END ----------------------------------"
  64. rm -f ${dest}/4a.bdd.tmp ${dest}/4c.bdd.tmp
  65. exit $exitval