summaryrefslogtreecommitdiff
path: root/Build/source/texk/musixtnt/musixtnt-2015-02-09/fixmsxpart.test
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2015-02-10 09:08:57 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2015-02-10 09:08:57 +0000
commit1f7b91cb2794b2c4cba69b1cc3b6f73f51535677 (patch)
tree54a7ba094e890da4773984ac6dcddebdc0714bd9 /Build/source/texk/musixtnt/musixtnt-2015-02-09/fixmsxpart.test
parenta55cc05629e8181f098b3ac4ac6244e602887e64 (diff)
Add musixtnt 2015-02-09
git-svn-id: svn://tug.org/texlive/trunk@36248 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/musixtnt/musixtnt-2015-02-09/fixmsxpart.test')
-rwxr-xr-xBuild/source/texk/musixtnt/musixtnt-2015-02-09/fixmsxpart.test37
1 files changed, 37 insertions, 0 deletions
diff --git a/Build/source/texk/musixtnt/musixtnt-2015-02-09/fixmsxpart.test b/Build/source/texk/musixtnt/musixtnt-2015-02-09/fixmsxpart.test
new file mode 100755
index 00000000000..0f9dc8a0936
--- /dev/null
+++ b/Build/source/texk/musixtnt/musixtnt-2015-02-09/fixmsxpart.test
@@ -0,0 +1,37 @@
+#! /bin/sh
+
+# Copyright (C) 2015 Peter Breitenlohner <tex-live@tug.org>
+# You may freely use, modify and/or distribute this file.
+
+echo && echo "*** fixmsxpart --help"
+./fixmsxpart --help || exit 1
+
+echo && echo "*** fixmsxpart --version"
+./fixmsxpart --version || exit 1
+
+echo && echo "*** fixmsxpart -dd (missing infile)"
+./fixmsxpart -dd && exit 1
+
+echo && echo "*** fixmsxpart too many args"
+./fixmsxpart too many args && exit 1
+
+: ${testsrc:=$srcdir/tests}
+
+echo && echo "*** generate fixtest.exp with version and date"
+yyyymmdd=`date +%F`
+version=`./fixmsxpart -v | sed 's/^This .* version \(.*\).$/\1/'`
+{ echo "% Generated on $yyyymmdd by fixmsxpart ($version)."
+ cat $testsrc/fixtest.out; } >fixtest.exp
+
+echo && echo "*** fixmsxpart tests/fixtest fixtest"
+./fixmsxpart $testsrc/fixtest fixtest || exit 1
+
+echo && echo "*** diff fixtest.exp fixtest.tex"
+diff fixtest.exp fixtest.tex || exit 1
+
+echo && echo "*** fixmsxpart tests/fixtest >fixtest.out"
+./fixmsxpart $testsrc/fixtest >fixtest.out || exit 1
+
+echo && echo "*** diff fixtest.exp fixtest.out"
+diff fixtest.exp fixtest.out || exit 1
+