Major restructuring to switch build system from old scripts to GNU Automake.

This commit is contained in:
Andrew Wood
2023-08-28 10:04:39 +01:00
parent 5495e0e808
commit e99548ea8a
90 changed files with 1704 additions and 3521 deletions
+27
View File
@@ -0,0 +1,27 @@
#!/bin/sh
#
# Check that data can be just passed straight through.
# Dummy assignment for "shellcheck".
testSubject="${testSubject:-false}"
inputString="TESTING"
outputString=$(printf "%s" "${inputString}" | "${testSubject}" 2>/dev/null) || { echo "unexpected failure code"; exit 1; }
if ! test "${inputString}" = "${outputString}"; then
echo "output did not match input"
exit 1
fi
# Test again with --force.
inputString="TESTINGAGAIN"
outputString=$(printf "%s" "${inputString}" | "${testSubject}" -f 2>/dev/null) || { echo "unexpected failure code"; exit 1; }
if ! test "${inputString}" = "${outputString}"; then
echo "output did not match input when using --force"
exit 1
fi
exit 0
# EOF