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.
 
 
 
 
 
 

87 lines
1.7 KiB

  1. # Puropose: Verify existing BWBASIC behavior
  2. # Author: Howard Wulf, AF5NE
  3. # Date: 2014-02-28
  4. # Usage: implementatino defined
  5. # Example:
  6. # cd /sdcard/Download/BASIC/bwbasic3/bwbtest
  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 BW.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. echo "OPTION VERSION BYWATER" > BW.PRO
  31. echo "OPTION VERSION BYWATER" > BYWATER.PRO
  32. echo "OPTION LABELS OFF" >> BYWATER.PRO
  33. testcase abs
  34. testcase assign
  35. testcase callfunc
  36. testcase callsub
  37. testcase chain1
  38. testcase chain2
  39. testcase dataread
  40. testcase deffn
  41. testcase dim
  42. testcase doloop
  43. testcase dowhile
  44. testcase elseif
  45. testcase end
  46. testcase err
  47. testcase fncallfn
  48. testcase fornext
  49. testcase function
  50. testcase gosub
  51. testcase gotolabl
  52. testcase ifline
  53. testcase input
  54. testcase lof
  55. testcase loopuntl
  56. testcase main
  57. testcase mlifthen
  58. testcase on
  59. testcase onerr
  60. testcase onerrlbl
  61. testcase ongosub
  62. testcase opentest
  63. testcase option
  64. testcase pascaltr
  65. testcase putget
  66. testcase random
  67. testcase selcase
  68. testcase snglfunc
  69. testcase stop
  70. testcase term
  71. testcase whilwend
  72. testcase width
  73. testcase writeinp
  74. # ----------------------------------------------
  75. # EOF
  76. # ----------------------------------------------