home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / program / funnel / test_ld.fws < prev    next >
Encoding:
Text File  |  1993-10-23  |  1.5 KB  |  59 lines

  1. !===========================<Start of test_ld Script>===========================
  2. !
  3. ! Test With Listing File and Scanner Dumps
  4. ! ----------------------------------------
  5. ! Inputs:
  6. !    $1 = Name of the .fw file to be tested (e.g. $1="sc01").
  7. !    $2 = Empty ("") or "!" to suppress FIXEOLing and existence check
  8. !            of input file.
  9. !    $I = Directory containing .fw   files.
  10. !    $A = Directory containing Answer files.
  11. !    $O = Directory to place   Result files.
  12. !    $D = Name of the differences file.
  13. ! Outputs:
  14. !    Listing file containing dumps.
  15. !    Appendage to differences file.
  16.  
  17. ! Announce this test.
  18. write ""
  19. write ""
  20. writeu "Performing Test $1"
  21.  
  22. ! Delete any previous output files.
  23. eneo $O$1.log
  24. eneo $O$1.lis
  25. eneo $O$1.tex
  26. eneo $O$1.out
  27.  
  28. ! Check input and answer files.
  29. $2exists $I$1.fw
  30. exists $A$1.lis
  31. absent $A$1.out
  32. absent $A$1.tex
  33.  
  34. ! Clean input and answer files.
  35. $2fixeols $I$1.fw
  36. fixeols $A$1.lis
  37.  
  38. ! Perform the actual FunnelWeb run.
  39. ! Tolerate means "don't abort on warning, error, or severe".
  40. ! Options:
  41. !    +b1 Dump input file map.
  42. !    +b2 Dump line list.
  43. !    +b3 Dump token list.
  44. !    +b4 Dump macro table.
  45. !    +b5 Dump document list.
  46. tolerate
  47. fw $I$1.fw +l$O$1.lis +b12345
  48.  
  49. ! Ensure that only a listing file was generated.
  50. absent $O$1.log
  51. absent $O$1.tex
  52. absent $O$1.out
  53. exists $O$1.lis
  54.  
  55. ! Compare the listing file with the answer file.
  56. diff $O$1.lis $A$1.lis $D
  57.  
  58. !============================<End of test_ld Script>============================
  59.