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.
 
 
 
 
 
 

71 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/G65
  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 G65.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 MARK-I" > G65.PRO
  34. echo "OPTION VERSION BYWATER" > BYWATER.PRO
  35. echo "OPTION LABELS OFF" >> BYWATER.PRO
  36. testcase BASICT
  37. testcase GCN3NO
  38. testcase HILTST
  39. testcase LINEAR
  40. testcase MATRIX1
  41. testcase MATRIX2
  42. testcase MAXSIN
  43. testcase PRINTE
  44. testcase REDIM1
  45. testcase REDIM2
  46. testcase REDIM3
  47. testcase REDIM4
  48. testcase REDIM5
  49. testcase REDIM6
  50. testcase REDIM7
  51. testcase REDIM8
  52. testcase REDIM9
  53. testcase REDIMA
  54. testcase REDIMB
  55. testcase REDIMC
  56. testcase RNDTES
  57. testcase SALES1
  58. testcase SAMPLE
  59. # ----------------------------------------------
  60. # EOF
  61. # ----------------------------------------------