lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master efe3f6e 1/4: Add a test for a script that is


From: Greg Chicares
Subject: [lmi-commits] [lmi] master efe3f6e 1/4: Add a test for a script that is used in production
Date: Mon, 13 May 2019 21:46:20 -0400 (EDT)

branch: master
commit efe3f6ea87f0ab612a10109bf8f9a3bb22f4a280
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Add a test for a script that is used in production
---
 nychthemeral_test.sh | 32 +++++++++++++++++++++++++++++++-
 1 file changed, 31 insertions(+), 1 deletion(-)

diff --git a/nychthemeral_test.sh b/nychthemeral_test.sh
index 11f9fae..f127b0d 100755
--- a/nychthemeral_test.sh
+++ b/nychthemeral_test.sh
@@ -129,8 +129,9 @@ nychthemeral_clutter='
 /^  *[1-9][0-9]* source lines/d
 /^  *[1-9][0-9]* marked defects/d
 /^# xrc tests/d
-/^# schema tests/d
 /^# test all valid emission types/d
+/^# schema tests/d
+/^# test mst --> xst conversion/d
 /^$/d
 '
 
@@ -210,6 +211,35 @@ printf '\n# schema tests\n\n'
 /opt/lmi/src/lmi/test_schemata.sh 2>&1 \
   | tee "$log_dir"/schemata | sed -e "$schemata_clutter"
 
+printf '\n# test mst --> xst conversion\n\n'
+
+# All unique characters found in '*.mst' as of 2019-05-13.
+cat >eraseme.mst <<'EOF'
+ !"#$%&'()*+,-./
+0123456789
+:;<=>?@
+ABCDEFGHIJKLMNOPRSTUVWXYZ
+[]^_
+abcdefghijklmnopqrstuvwxyz
+{}
+EOF
+
+printf '%b' "\
+\\0337\\0336\\0335\\0334\\0333\\0332\\0331\\0330\\0327\\0326\
+\\0325\\0324\\0323\\0322\\0321\\0320\\0365\\0317\\0316\\0315\
+\\0314\\0313\\0312\\0311\\0310\\0307\\0306\\0365\\0305\\0304\
+\\0303\\0302\\0301\\0300\\0277\\0365\\0276\\0275\\0274\\0273\
+\\0272\\0271\\0270\\0267\\0266\\0265\\0264\\0263\\0262\\0261\
+\\0260\\0257\\0255\\0254\\0253\\0252\\0251\\0250\\0247\\0246\
+\\0245\\0365\\0244\\0242\\0241\\0240\\0365\\0236\\0235\\0234\
+\\0233\\0232\\0231\\0230\\0227\\0226\\0225\\0224\\0223\\0222\
+\\0221\\0220\\0217\\0216\\0215\\0214\\0213\\0212\\0211\\0210\
+\\0207\\0206\\0205\\0365\\0204\\0202\\0365\
+" >eraseme.touchstone
+
+srcdir=. datadir=. /opt/lmi/src/lmi/mst_to_xst.sh
+cmp eraseme.xst eraseme.touchstone
+
 # Clean up stray output. (The zsh '(N)' glob qualifier turns on
 # null_glob for a single expansion.)
 for z in "$throwaway_dir"/*(N); do rm "$z"; done



reply via email to

[Prev in Thread] Current Thread [Next in Thread]