File: test_lt.fws

package info (click to toggle)
funnelweb 3.2-4.2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 2,744 kB
  • sloc: ansic: 9,156; makefile: 17
file content (59 lines) | stat: -rw-r--r-- 1,417 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
!===========================<Start of test_lt Script>===========================
!
! Test With Listing File and Typeset File
! ---------------------------------------
! Inputs:
!    $1 = Name of the .fw file to be tested (e.g. $1="sc01").
!    $I = Directory containing .fw   files.
!    $A = Directory containing Answer files.
!    $O = Directory to place   Result files.
!    $D = Name of the differences file.
! Outputs:
!    Listing file.
!    TeX typeset file.
!    HTML typeset file.
!    Appendage to differences file.

! Announce this test.
write ""
write ""
writeu "Performing Test $1"

! Delete any previous output files.
eneo $O$1.log
eneo $O$1.lis
eneo $O$1.tex
eneo $O$1.htm
eneo $O$1.out

! Check input and answer files.
exists $I$1.fw
exists $A$1.lis
exists $A$1.tex
exists $A$1.htm
absent $A$1.out

! Clean input and answer files.
fixeols $I$1.fw
fixeols $A$1.lis
fixeols $A$1.tex
fixeols $A$1.htm

! Perform the actual FunnelWeb run.
! Tolerate means "don't abort on warning, error, or severe".
tolerate
fw $I$1.fw +l$O$1.lis +t$O$1.tex +u$O$1.htm

! Ensure that only a listing and two typeset files were generated.
absent $O$1.log
absent $O$1.out
exists $O$1.lis
exists $O$1.tex
exists $O$1.htm

! Compare the results with the answers.
diff $O$1.lis $A$1.lis  $D
diff $O$1.tex $A$1.tex  $D
diff $O$1.htm $A$1.htm  $D

!============================<End of test_lt Script>============================