summaryrefslogtreecommitdiff
path: root/web/funnelAC/scripts/test_l.fws
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /web/funnelAC/scripts/test_l.fws
Initial commit
Diffstat (limited to 'web/funnelAC/scripts/test_l.fws')
-rw-r--r--web/funnelAC/scripts/test_l.fws50
1 files changed, 50 insertions, 0 deletions
diff --git a/web/funnelAC/scripts/test_l.fws b/web/funnelAC/scripts/test_l.fws
new file mode 100644
index 0000000000..fe88166d53
--- /dev/null
+++ b/web/funnelAC/scripts/test_l.fws
@@ -0,0 +1,50 @@
+!===========================<Start of test_l Script>============================
+!
+! Test With A Plain Listing 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.
+! 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.out
+
+! Check input and answer files.
+exists $I$1.fw
+exists $A$1.lis
+absent $A$1.out
+absent $A$1.tex
+
+! Clean input and answer files.
+fixeols $I$1.fw
+fixeols $A$1.lis
+
+! Perform the actual FunnelWeb run.
+! Tolerate means "don't abort on warning, error, or severe".
+tolerate
+fw $I$1.fw +l$O$1.lis
+
+! Ensure that only a listing file was generated.
+absent $O$1.log
+absent $O$1.tex
+absent $O$1.out
+exists $O$1.lis
+
+! Compare the listing file with the answer file.
+diff $O$1.lis $A$1.lis $D
+
+!============================<End of Test_l Script>=============================