diff options
| author | peter <peter@pmikkelsen.com> | 2026-08-31 20:34:17 +0000 |
|---|---|---|
| committer | peter <peter@pmikkelsen.com> | 2026-08-31 20:34:17 +0000 |
| commit | 30af5b777682a5c81fe40081667d58f804571914 (patch) | |
| tree | 89754d05a405b1d379ccb05fe10818a1bbee9bb9 /tests | |
| parent | 8b0beb9e6a57c1d4f1e7b0b06523dd0fc538771a (diff) | |
A bit of work on testing/code coverage
FossilOrigin-Name: 50618f8fdb318b9c799e140f1ef644541382e348db8737a3e7c68af2836f7e83
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/scripts/bad/1.sh | 3 | ||||
| -rwxr-xr-x | tests/scripts/good/1.sh | 3 | ||||
| -rwxr-xr-x | tests/scripts/good/2.sh | 5 | ||||
| -rwxr-xr-x | tests/scripts/good/3.sh | 8 | ||||
| -rwxr-xr-x | tests/scripts/good/4.sh | 8 |
5 files changed, 27 insertions, 0 deletions
diff --git a/tests/scripts/bad/1.sh b/tests/scripts/bad/1.sh new file mode 100755 index 0000000..2bb8d86 --- /dev/null +++ b/tests/scripts/bad/1.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +exit 1 diff --git a/tests/scripts/good/1.sh b/tests/scripts/good/1.sh new file mode 100755 index 0000000..c52d3c2 --- /dev/null +++ b/tests/scripts/good/1.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +exit 0 diff --git a/tests/scripts/good/2.sh b/tests/scripts/good/2.sh new file mode 100755 index 0000000..9bb0268 --- /dev/null +++ b/tests/scripts/good/2.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +set -e + +echo "1+2" | aplwc-repl diff --git a/tests/scripts/good/3.sh b/tests/scripts/good/3.sh new file mode 100755 index 0000000..4a86c11 --- /dev/null +++ b/tests/scripts/good/3.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +cat <<EOF | aplwc-repl +1+2 +3+4 +EOF diff --git a/tests/scripts/good/4.sh b/tests/scripts/good/4.sh new file mode 100755 index 0000000..b075ac7 --- /dev/null +++ b/tests/scripts/good/4.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +set -e + +cat <<EOF | aplwc-repl +'abc' +123 +EOF |