ChipMaster's bwBASIC This also includes history going back to v2.10. *WARN* some binary files might have been corrupted by CRLF.
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.
 
 
 
 
 
 

59 lines
1.5 KiB

  1. # Puropose: Verify existing BWBASIC behavior
  2. # Author: Howard Wulf, AF5NE
  3. # Date: 2014-03-28
  4. # Usage: implementatino defined
  5. # Example:
  6. # cd /sdcard/Download/BASIC/bwbasic3/BIZMII/
  7. # ash ./00test.sh
  8. #
  9. rm *.80
  10. rm *.OUT
  11. rm *.LPT
  12. rm *.dif
  13. # ----------------------------------------------
  14. # Regression Tests
  15. # ----------------------------------------------
  16. testcase()
  17. {
  18. TESTCASE=${1}
  19. echo "TESTCASE=${TESTCASE}"
  20. ~/bwbasic --tape ${TESTCASE}.INP --profile C77.PRO --profile ${TESTCASE}.PRO ${TESTCASE}.BAS 1> ${TESTCASE}.OUT 2> ${TESTCASE}.LPT
  21. echo "500 DATA ${TESTCASE}.OUT, ${TESTCASE}.80" > PAD80.INP
  22. ~/bwbasic --profile BYWATER.PRO PAD80.BAS
  23. diff ${TESTCASE}.run ${TESTCASE}.80 > ${TESTCASE}.dif
  24. if test -s ${TESTCASE}.dif
  25. then
  26. echo less ${TESTCASE}.dif
  27. fi
  28. }
  29. # ---------------------------------------------
  30. #
  31. # TRS-80 Model I/III/4 with 24 row x 80 column display
  32. #
  33. echo "OPTION VERSION CBASIC-II" > C77.PRO
  34. echo "OPTION VERSION BYWATER" > BYWATER.PRO
  35. echo "OPTION LABELS OFF" >> BYWATER.PRO
  36. # ----------------------------------------------
  37. # the regression tests assume these data files
  38. # ----------------------------------------------
  39. cp ./DATA/* .
  40. # ----------------------------------------------
  41. # now, we are ready to test
  42. # ----------------------------------------------
  43. # ~/bwbasic --tape BIZMII.INP --profile C77.PRO BIZMII.BAS
  44. testcase BIZMII
  45. # ----------------------------------------------
  46. # EOF
  47. # ----------------------------------------------