]> gitweb.michael.orlitzky.com - charm-bypass.git/commitdiff
run-tests.sh: new minimal test suite
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 8 Nov 2023 23:29:49 +0000 (18:29 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 8 Nov 2023 23:29:49 +0000 (18:29 -0500)
run-tests.sh [new file with mode: 0755]

diff --git a/run-tests.sh b/run-tests.sh
new file mode 100755 (executable)
index 0000000..cf2d33e
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# html-tidy5 does not yet support the minlength attributes
+# that we use on our daily security code inputs,
+#
+#  https://github.com/htacg/tidy-html5/issues/1101
+#
+# so we use sed to preprocess them out before calling tidy.
+#
+sed -e 's/minlength="[0-9]*"//g' index.html | tidy > /dev/null