Debian Codegraph @

scripts/test_lt.fws

raw
1 !===========================<Start of test_lt Script>===========================
2 !
3 ! Test With Listing File and Typeset File
4 ! ---------------------------------------
5 ! Inputs:
6 ! $1 = Name of the .fw file to be tested (e.g. $1="sc01").
7 ! $I = Directory containing .fw files.
8 ! $A = Directory containing Answer files.
9 ! $O = Directory to place Result files.
10 ! $D = Name of the differences file.
11 ! Outputs:
12 ! Listing file.
13 ! TeX typeset file.
14 ! HTML typeset file.
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.htm
27 eneo $O$1.out
28
29 ! Check input and answer files.
30 exists $I$1.fw
31 exists $A$1.lis
32 exists $A$1.tex
33 exists $A$1.htm
34 absent $A$1.out
35
36 ! Clean input and answer files.
37 fixeols $I$1.fw
38 fixeols $A$1.lis
39 fixeols $A$1.tex
40 fixeols $A$1.htm
41
42 ! Perform the actual FunnelWeb run.
43 ! Tolerate means "don't abort on warning, error, or severe".
44 tolerate
45 fw $I$1.fw +l$O$1.lis +t$O$1.tex +u$O$1.htm
46
47 ! Ensure that only a listing and two typeset files were generated.
48 absent $O$1.log
49 absent $O$1.out
50 exists $O$1.lis
51 exists $O$1.tex
52 exists $O$1.htm
53
54 ! Compare the results with the answers.
55 diff $O$1.lis $A$1.lis $D
56 diff $O$1.tex $A$1.tex $D
57 diff $O$1.htm $A$1.htm $D
58
59 !============================<End of test_lt Script>============================