Debian Codegraph @

vms/alpha/vmstest.com

raw
1 $ !=====================================================================
2 $ ! Test bibclean on DEC Alpha OpenVMS 1.x.
3 $ ! [16-Oct-1994]
4 $ !=====================================================================
5 $ !
6 $ ! Create a foreign command symbol for bibclean. You must edit
7 $ ! this to suit your local configuration, because VMS has no
8 $ ! way that I know of to get the full path name of the current
9 $ ! directory.
10 $ bibclean :== $public$disk:[beebe.tex.bibclean]bibclean.exe
11 $ !
12 $ ! Some of the tests intentionally generate a failure return code.
13 $ ! Prevent that from stopping this command file.
14 $ set noon
15 $ !
16 $ write sys$output "================== begin BibTeX test 1 ==================="
17 $ define /user sys$error testbib1.err
18 $ bibclean -init bibclean.ini testbib1.org >testbib1.bib
19 $ write sys$output ""
20 $ write sys$output "There should be no differences found:"
21 $ diff testbib1.bok testbib1.bib
22 $ write sys$output ""
23 $ write sys$output "There should be no differences found:"
24 $ diff testbib1.eok testbib1.err
25 $ write sys$output "=================== end BibTeX test 1 ===================="
26 $ !
27 $ write sys$output "================== begin BibTeX test 2 ==================="
28 $ define /user sys$error testbib2.err
29 $ bibclean -init bibclean.ini -no-check-values testbib2.org >testbib2.bib
30 $ write sys$output ""
31 $ write sys$output "There should be no differences found:"
32 $ diff testbib2.bok testbib2.bib
33 $ write sys$output ""
34 $ write sys$output "There should be no differences found:"
35 $ diff testbib2.eok testbib2.err
36 $ write sys$output "=================== end BibTeX test 2 ===================="
37 $ !
38 $ write sys$output "================== begin BibTeX test 3 ==================="
39 $ define /user sys$error testbib3.err
40 $ bibclean -init bibclean.ini -fix-font-change testbib3.org >testbib3.bib
41 $ write sys$output ""
42 $ write sys$output "There should be no differences found:"
43 $ diff testbib3.bok testbib3.bib
44 $ write sys$output ""
45 $ write sys$output "There should be no differences found:"
46 $ diff testbib3.eok testbib3.err
47 $ write sys$output "=================== end BibTeX test 3 ===================="
48 $ !
49 $ write sys$output "================== begin BibTeX test 4 ==================="
50 $ define /user sys$error testbib4.err
51 $ bibclean -init bibclean.ini -fix-font-change testbib4.org >testbib4.bib
52 $ write sys$output ""
53 $ write sys$output "There should be no differences found:"
54 $ diff testbib4.bok testbib4.bib
55 $ write sys$output ""
56 $ write sys$output "There should be no differences found:"
57 $ diff testbib4.eok testbib4.err
58 $ write sys$output "=================== end BibTeX test 4 ===================="
59 $ !
60 $ write sys$output "================== begin BibTeX test 5 ==================="
61 $ define /user sys$error testbib5.err
62 $ bibclean -init bibclean.ini -German-style testbib5.org >testbib5.bib
63 $ write sys$output ""
64 $ write sys$output "There should be no differences found:"
65 $ diff testbib5.bok testbib5.bib
66 $ write sys$output ""
67 $ write sys$output "There should be no differences found:"
68 $ diff testbib5.eok testbib5.err
69 $ write sys$output "=================== end BibTeX test 5 ===================="
70 $ !
71 $ write sys$output "================== begin BibTeX test 6 ==================="
72 $ define /user sys$error testisxn.err
73 $ bibclean -init bibclean.ini testisxn.org >testisxn.bib
74 $ write sys$output ""
75 $ diff testisxn.bok testisxn.bib
76 $ write sys$output ""
77 $ diff testisxn.eok testisxn.err
78 $ write sys$output "=================== end BibTeX test 6 ==================="
79 $ !
80 $ write sys$output "================== begin Scribe test 1 ==================="
81 $ define /user sys$error testscr1.err
82 $ bibclean -init bibclean.ini -scribe -no-check testscr1.org >testscr1.bib
83 $ write sys$output ""
84 $ write sys$output "There should be no differences found:"
85 $ diff testscr1.bok testscr1.bib
86 $ write sys$output ""
87 $ write sys$output "There should be no differences found:"
88 $ diff testscr1.eok testscr1.err
89 $ write sys$output "=================== end Scribe test 1 ===================="
90 $ !
91 $ write sys$output "================== begin Scribe test 2 ==================="
92 $ define /user sys$error testscr2.err
93 $ bibclean -init bibclean.ini -scribe -no-check testscr2.org >testscr2.bib
94 $ write sys$output ""
95 $ write sys$output "There should be no differences found:"
96 $ diff testscr2.bok testscr2.bib
97 $ write sys$output ""
98 $ write sys$output "There should be no differences found:"
99 $ diff testscr2.eok testscr2.err
100 $ write sys$output "=================== end Scribe test 2 ===================="
101 $ !
102 $ write sys$output "================== begin Scribe test 2a==================="
103 $ define /user sys$error testscr2.er2
104 $ bibclean -init bibclean.ini -scribe -file-pos -no-check -no-par -
105 testscr2.org >testscr2.bi2
106 $ write sys$output ""
107 $ write sys$output "There should be no differences found:"
108 $ diff testscr2.bo2 testscr2.bi2
109 $ write sys$output ""
110 $ diff testscr2.eo2 testscr2.er2
111 $ write sys$output "=================== end Scribe test 2a===================="
112 $ !
113 $ write sys$output "================== begin Scribe test 3 ==================="
114 $ define /user sys$error testscr3.err
115 $ bibclean -init bibclean.ini -scribe -no-check testscr3.org >testscr3.bib
116 $ write sys$output ""
117 $ write sys$output "There should be no differences found:"
118 $ diff testscr3.bok testscr3.bib
119 $ write sys$output ""
120 $ write sys$output "There should be no differences found:"
121 $ diff testscr3.eok testscr3.err
122 $ write sys$output "=================== end Scribe test 3 ===================="
123 $ !