summaryrefslogtreecommitdiff
path: root/biblio/tib/test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'biblio/tib/test/Makefile')
-rw-r--r--biblio/tib/test/Makefile54
1 files changed, 54 insertions, 0 deletions
diff --git a/biblio/tib/test/Makefile b/biblio/tib/test/Makefile
new file mode 100644
index 0000000000..96161a3b01
--- /dev/null
+++ b/biblio/tib/test/Makefile
@@ -0,0 +1,54 @@
+SHELL = /bin/sh
+TEXBIN = tex
+
+all: test
+
+test: first testlist testlook testtib testdex message
+
+first:
+ -rm -f TEST.LOG
+ -cp INDEX.TST INDEX
+ touch INDEX
+
+testtib:
+ ../src/tib -x test.tex | $(TEXBIN)
+ @if [ -f texput.dvi ]; then \
+ mv texput.dvi test-t.dvi; \
+ echo ""; echo "tib o.k."|tee -a TEST.LOG;echo ""; else \
+ echo ""; echo "*** Test of tib failed!"|tee -a TEST.LOG; echo "";\
+ fi
+
+testlist:
+ ../src/tiblist -x test.ref | $(TEXBIN)
+ @if [ -f texput.dvi ]; then \
+ mv texput.dvi testr-t.dvi;\
+ echo ""; echo "tiblist o.k."|tee -a TEST.LOG; echo ""; else \
+ echo "";echo "*** Test of tiblist failed!"|tee -a TEST.LOG; \
+ echo ""; fi
+
+testlook:
+ ../src/tiblook derham|tee derham
+ @if diff -bc derham DERHAM.TST; then \
+ echo ""; echo "tiblook o.k."|tee -a TEST.LOG; echo ""; else \
+ echo ""; echo '*** Test of tiblook failed!'|tee -a TEST.LOG; \
+ echo ""; fi
+
+
+testdex:
+ -../src/tibdex test.ref
+ @if diff -bc INDEX INDEX.TST; then \
+ echo ""; echo "tibdex o.k."|tee -a TEST.LOG; echo ""; else \
+ echo ""; echo '*** Test of tibdex failed!'|tee -a TEST.LOG; \
+ echo ""; fi
+
+message:
+ @echo ""
+ @cat TEST.LOG
+ @echo ""
+ @echo "*** If all went well, you might now want"
+ @echo "*** to review the two dvi-files produced, i.e."
+ @echo "*** (test/)test-t.dvi and (test/)testr-t.dvi."
+ @echo "*** Happy TiBbing..."
+
+clean:
+ -rm -f *.dvi texput.* derham TEST.LOG INDEX *~