summaryrefslogtreecommitdiff
path: root/support/easylatex/unitTestDiffs.sh
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 /support/easylatex/unitTestDiffs.sh
Initial commit
Diffstat (limited to 'support/easylatex/unitTestDiffs.sh')
-rw-r--r--support/easylatex/unitTestDiffs.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/support/easylatex/unitTestDiffs.sh b/support/easylatex/unitTestDiffs.sh
new file mode 100644
index 0000000000..4575dc287f
--- /dev/null
+++ b/support/easylatex/unitTestDiffs.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+
+
+echo \*\*\* You should see nothing below except for lines starting with \*\*\*:
+
+for f in testFiles/*.txt
+do
+ f=`perl -e '$_ = $ARGV[0]; s/\.txt//; s/.*\///; print;' $f`
+ if [ -e testFiles/$f.tex ]; then
+ rm testFiles/$f.tex;
+ fi
+ ./easylatex.pl -e testFiles/$f.txt
+
+ echo \*\*\* diff $f.tex testFiles/$f.tex.correct:
+ perl -pi -e 's/easyLatexGraph\d+/easyLatexGraph/g;' $f.tex
+ diff $f.tex testFiles/$f.tex.correct
+ #rm $f.tex
+done
+ \ No newline at end of file