home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d5xx / d524 / kamin.lha / Kamin / P-Distr.lzh / TEST.INTERPS < prev   
Text File  |  1990-01-05  |  3KB  |  106 lines

  1. echo 'This file compiles all interpreters, saving binaries, and'
  2. echo 'tests them by running them on files code.xxx (xxx the language name)'
  3. echo 'and comparing the output to the files code.xxx.o.'
  4. echo ''
  5. echo 'The expected output from running this file is the list of messages:'
  6. echo ''
  7. echo 'Compiling CHAP1; binary is chap1'
  8. echo 'Running CHAP1'
  9. echo 'Compiling LISP; binary is lisp'
  10. echo 'Running LISP'
  11. echo ''
  12. echo 'and so on.  If the output from any interpreter differs from'
  13. echo 'what it should be, you will see the diff output following'
  14. echo 'the "Running XXX" message'
  15. echo ''
  16. echo 'See the README file for more information'
  17. echo ''
  18. echo 'Compiling CHAP1; binary is chap1'
  19. pc  chap1.p
  20. mv a.out chap1
  21. echo 'Running CHAP1'
  22. ./chap1 < code.ch1  > chap1.out
  23. diff code.ch1.o chap1.out
  24. rm chap1.out
  25. echo 'Compiling LISP; binary is lisp'
  26. pc  lisp.p
  27. mv a.out lisp
  28. echo 'Running LISP'
  29. ./lisp < code.lsp  > lisp.out
  30. diff code.lsp.o lisp.out
  31. rm lisp.out
  32. echo 'Compiling APL; binary is apl'
  33. pc  apl.p
  34. mv a.out apl
  35. echo 'Running APL'
  36. ./apl < code.apl  > apl.out
  37. diff code.apl.o apl.out
  38. rm apl.out
  39. echo 'Compiling SCHEME; binary is scheme'
  40. pc  scheme.p
  41. mv a.out scheme
  42. echo 'Running SCHEME'
  43. ./scheme < code.sch  > scheme.out
  44. diff code.sch.o scheme.out
  45. rm scheme.out
  46. echo 'Compiling SASL; binary is sasl'
  47. pc  sasl.p
  48. mv a.out sasl
  49. echo 'Running SASL'
  50. ./sasl < code.ssl  > sasl.out
  51. diff code.ssl.o sasl.out
  52. rm sasl.out
  53. echo 'Compiling CLU; binary is clu'
  54. pc  clu.p
  55. mv a.out clu
  56. echo 'Running CLU'
  57. ./clu < code.clu  > clu.out
  58. diff code.clu.o clu.out
  59. rm clu.out
  60. echo 'Compiling SMALLTALK; binary is smalltalk'
  61. pc  smalltalk.p
  62. mv a.out smalltalk
  63. echo 'Running SMALLTALK'
  64. ./smalltalk < code.smt  > smalltalk.out
  65. diff code.smt.o smalltalk.out
  66. rm smalltalk.out
  67. echo 'Compiling PROLOG; binary is prolog'
  68. pc  prolog.p
  69. mv a.out prolog
  70. echo 'Running PROLOG - file 1'
  71. ./prolog < code1.pro  > prolog1.out
  72. diff code1.pro.o prolog1.out
  73. rm prolog1.out
  74. # echo 'Running PROLOG - file 2'
  75. # ./prolog < code2.pro  > prolog2.out
  76. # diff code2.pro.o prolog2.out
  77. # rm prolog2.out
  78. echo 'Compiling stacking version of LISP; binary is lisp-stack'
  79. pc  lisp-stack.p
  80. mv a.out lisp-stack
  81. echo 'Running stacking version of LISP'
  82. ./lisp-stack < code.gc.lsp  > lisp-stack.out
  83. diff code.stack.o lisp-stack.out
  84. rm lisp-stack.out
  85. echo 'Compiling mark-scan version of LISP; binary is lisp-msgc'
  86. pc  lisp-msgc.p
  87. mv a.out lisp-msgc
  88. echo 'Running mark-scan version of LISP'
  89. ./lisp-msgc < code.gc.lsp  > lisp-msgc.out
  90. diff code.msgc.o lisp-msgc.out
  91. rm lisp-msgc.out
  92. echo 'Compiling semi-space version of LISP; binary is lisp-ssgc'
  93. pc  lisp-ssgc.p
  94. mv a.out lisp-ssgc
  95. echo 'Running semi-space version of LISP'
  96. ./lisp-ssgc < code.gc.lsp  > lisp-ssgc.out
  97. diff code.ssgc.o lisp-ssgc.out
  98. rm lisp-ssgc.out
  99. echo 'Compiling reference-counting version of LISP; binary is lisp-refcnt'
  100. pc  lisp-refcnt.p
  101. mv a.out lisp-refcnt
  102. echo 'Running reference-counting version of LISP'
  103. ./lisp-refcnt < code.gc.lsp  > lisp-refcnt.out
  104. diff code.refcnt.o lisp-refcnt.out
  105. rm lisp-refcnt.out
  106.