Debian Codegraph @

vms/vax/vmstest.com

raw
1 $ !=====================================================================
2 $ ! Test bibclean on DEC VAX VMS 6.1.
3 $ ! [02-May-1996]
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:[nbeebe.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 BibTeX test 7 ==================="
81 $ define /user sys$error testcodn.err
82 $ bibclean -init bibclean.ini testcodn.org >testcodn.bib
83 $ write sys$output ""
84 $ diff testcodn.bok testcodn.bib
85 $ write sys$output ""
86 $ diff testcodn.eok testcodn.err
87 $ write sys$output "=================== end BibTeX test 7 ==================="
88 $ !
89 $ write sys$output "================== begin Scribe test 1 ==================="
90 $ define /user sys$error testscr1.err
91 $ bibclean -init bibclean.ini -scribe -no-check testscr1.org >testscr1.bib
92 $ write sys$output ""
93 $ write sys$output "There should be no differences found:"
94 $ diff testscr1.bok testscr1.bib
95 $ write sys$output ""
96 $ write sys$output "There should be no differences found:"
97 $ diff testscr1.eok testscr1.err
98 $ write sys$output "=================== end Scribe test 1 ===================="
99 $ !
100 $ write sys$output "================== begin Scribe test 2 ==================="
101 $ define /user sys$error testscr2.err
102 $ bibclean -init bibclean.ini -scribe -no-check testscr2.org >testscr2.bib
103 $ write sys$output ""
104 $ write sys$output "There should be no differences found:"
105 $ diff testscr2.bok testscr2.bib
106 $ write sys$output ""
107 $ write sys$output "There should be no differences found:"
108 $ diff testscr2.eok testscr2.err
109 $ write sys$output "=================== end Scribe test 2 ===================="
110 $ !
111 $ write sys$output "================== begin Scribe test 2a==================="
112 $ define /user sys$error testscr2.er2
113 $ bibclean -init bibclean.ini -scribe -file-pos -no-check -no-par -
114 testscr2.org >testscr2.bi2
115 $ write sys$output ""
116 $ write sys$output "There should be no differences found:"
117 $ diff testscr2.bo2 testscr2.bi2
118 $ write sys$output ""
119 $ diff testscr2.eo2 testscr2.er2
120 $ write sys$output "=================== end Scribe test 2a===================="
121 $ !
122 $ write sys$output "================== begin Scribe test 3 ==================="
123 $ define /user sys$error testscr3.err
124 $ bibclean -init bibclean.ini -scribe -no-check testscr3.org >testscr3.bib
125 $ write sys$output ""
126 $ write sys$output "There should be no differences found:"
127 $ diff testscr3.bok testscr3.bib
128 $ write sys$output ""
129 $ write sys$output "There should be no differences found:"
130 $ diff testscr3.eok testscr3.err
131 $ write sys$output "=================== end Scribe test 3 ===================="
132 $ !