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.
 
 
 
 
 
 

85 lines
1.8 KiB

  1. # Puropose: Verify existing BWBASIC behavior
  2. # Author: Howard Wulf
  3. # Date: 2014-03-28
  4. # Usage: implementatino defined
  5. # Example:
  6. # cd /sdcard/Download/BASIC/bwbasic3/HB1X
  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 HB1.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. # The BASIC Handbook, 1st Edition
  32. #
  33. echo "OPTION VERSION HANDBOOK1" > HB1.PRO
  34. echo "OPTION VERSION BYWATER" > BYWATER.PRO
  35. echo "OPTION LABELS OFF" >> BYWATER.PRO
  36. testcase AS_1
  37. testcase AS_2
  38. testcase AS_3
  39. testcase AS_4
  40. testcase AS_5
  41. testcase BREAK_1
  42. # EDIT must be manually tested
  43. # testcase EDIT_1
  44. # testcase EDIT_2
  45. # testcase EDIT_3
  46. testcase FNEND
  47. testcase GOSUB_OF
  48. testcase GOSUB_X
  49. testcase GOTO_OF
  50. testcase GOTO_X
  51. testcase LIKE_1
  52. testcase MAT_INPUT_1_N_0
  53. testcase MAT_INPUT_1_S_1
  54. testcase MAT_PRINT_1_N_0
  55. testcase MAT_PRINT_1_S_0
  56. testcase MAT_PRINT_2_N_0
  57. testcase MAT_PRINT_2_S_0
  58. testcase MAT_PRINT_3_N_0
  59. testcase MAT_PRINT_3_S_0
  60. testcase MAT_PRINT_4
  61. testcase MAT_READ_1_N_0
  62. testcase MAT_READ_1_N_1
  63. testcase MAT_READ_1_S_0
  64. testcase MAT_READ_1_S_1
  65. testcase MAT_READ_2_N_0
  66. testcase MAT_READ_2_S_0
  67. testcase MAT_READ_3_N_0
  68. testcase MAT_READ_3_S_0
  69. testcase REM_1
  70. testcase USING_1
  71. testcase USING_2
  72. # ----------------------------------------------
  73. # EOF
  74. # ----------------------------------------------