Debian Codegraph @

scripts/test_lo.fws

raw
1 !===========================<Start of test_lo Script>===========================
2 !
3 ! Test With Listing File and Product 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 ! Product file.
14 ! Appendage to differences file.
15
16 ! Announce this test.
17 write ""
18 write ""
19 writeu "Performing Test $1"
20
21 ! Delete any previous output files.
22 eneo $O$1.log
23 eneo $O$1.lis
24 eneo $O$1.tex
25 eneo $O$1.out
26
27 ! Check input and answer files.
28 exists $I$1.fw
29 exists $A$1.lis
30 exists $A$1.out
31 absent $A$1.tex
32
33 ! Clean input and answer files.
34 fixeols $I$1.fw
35 fixeols $A$1.lis
36 fixeols $A$1.out
37
38 ! Perform the actual FunnelWeb run.
39 ! Tolerate means "don't abort on warning, error, or severe".
40 tolerate
41 fw $I$1.fw +l$O$1.lis +o$O$1.out
42
43 ! Ensure that only a listing and an product file were generated.
44 absent $O$1.log
45 absent $O$1.tex
46 exists $O$1.lis
47 exists $O$1.out
48
49 ! Compare the results with the answers.
50 diff $O$1.lis $A$1.lis $D
51 diff $O$1.out $A$1.out $D
52
53 !============================<End of test_lo Script>============================