diff options
| author | peter <peter@pmikkelsen.com> | 2026-09-20 20:58:10 +0000 |
|---|---|---|
| committer | peter <peter@pmikkelsen.com> | 2026-09-20 20:58:10 +0000 |
| commit | aa51adcfc9a79c606aa4435dc64dd5f160efbde1 (patch) | |
| tree | b0e50185da9e93e38cf7e651eb92592bd57ea23a /tests/scripts | |
| parent | 83bdc0e59232434fc30f94e2fc3a22e81989e4dd (diff) | |
Start working on migrating to autoconf/automake instead of cmake
FossilOrigin-Name: d870487495106763d2a4e416f1ddbf4c795081a6b77100d34063591e385692e0
Diffstat (limited to 'tests/scripts')
| -rwxr-xr-x | tests/scripts/bad/10.aplwc | 4 | ||||
| -rwxr-xr-x | tests/scripts/bad/11.aplwc | 2 | ||||
| -rwxr-xr-x | tests/scripts/bad/12.aplwc | 4 | ||||
| -rwxr-xr-x | tests/scripts/bad/13.aplwc | 2 | ||||
| -rwxr-xr-x | tests/scripts/bad/14.aplwc | 2 | ||||
| -rwxr-xr-x | tests/scripts/bad/15.aplwc | 4 | ||||
| -rwxr-xr-x | tests/scripts/bad/2.sh | 2 | ||||
| -rwxr-xr-x | tests/scripts/bad/3.sh | 2 | ||||
| -rwxr-xr-x | tests/scripts/bad/4.aplwc | 2 | ||||
| -rwxr-xr-x | tests/scripts/bad/4.sh | 2 | ||||
| -rwxr-xr-x | tests/scripts/bad/5.aplwc | 2 | ||||
| -rwxr-xr-x | tests/scripts/bad/5.sh | 2 | ||||
| -rwxr-xr-x | tests/scripts/bad/6.sh | 2 | ||||
| -rwxr-xr-x | tests/scripts/bad/7.aplwc | 4 | ||||
| -rwxr-xr-x | tests/scripts/bad/7.sh | 2 | ||||
| -rwxr-xr-x | tests/scripts/bad/8.aplwc | 2 | ||||
| -rwxr-xr-x | tests/scripts/bad/9.aplwc | 2 | ||||
| -rwxr-xr-x | tests/scripts/good/1.aplwc | 2 | ||||
| -rwxr-xr-x | tests/scripts/good/2.aplwc | 2 | ||||
| -rwxr-xr-x | tests/scripts/good/2.sh | 2 | ||||
| -rwxr-xr-x | tests/scripts/good/3.aplwc | 4 | ||||
| -rwxr-xr-x | tests/scripts/good/3.sh | 2 | ||||
| -rwxr-xr-x | tests/scripts/good/4.sh | 2 | ||||
| -rwxr-xr-x | tests/scripts/good/5.sh | 2 | ||||
| -rwxr-xr-x | tests/scripts/good/6.sh | 2 | ||||
| -rwxr-xr-x | tests/scripts/good/7.sh | 2 | ||||
| -rwxr-xr-x | tests/scripts/simfail.sh | 4 |
27 files changed, 35 insertions, 31 deletions
diff --git a/tests/scripts/bad/10.aplwc b/tests/scripts/bad/10.aplwc index ae7d5f7..a82aa53 100755 --- a/tests/scripts/bad/10.aplwc +++ b/tests/scripts/bad/10.aplwc @@ -1,3 +1,3 @@ -#!/usr/bin/env aplwc-repl +#!/usr/bin/env aplwc -:module
\ No newline at end of file +:module diff --git a/tests/scripts/bad/11.aplwc b/tests/scripts/bad/11.aplwc index 3de20cd..837ac9b 100755 --- a/tests/scripts/bad/11.aplwc +++ b/tests/scripts/bad/11.aplwc @@ -1,3 +1,3 @@ -#!/usr/bin/env aplwc-repl +#!/usr/bin/env aplwc :module 123 diff --git a/tests/scripts/bad/12.aplwc b/tests/scripts/bad/12.aplwc index 471643b..99e3f91 100755 --- a/tests/scripts/bad/12.aplwc +++ b/tests/scripts/bad/12.aplwc @@ -1,3 +1,3 @@ -#!/usr/bin/env aplwc-repl +#!/usr/bin/env aplwc -:symbol plus
\ No newline at end of file +:symbol plus diff --git a/tests/scripts/bad/13.aplwc b/tests/scripts/bad/13.aplwc index 50bdb9f..cdd33ef 100755 --- a/tests/scripts/bad/13.aplwc +++ b/tests/scripts/bad/13.aplwc @@ -1,3 +1,3 @@ -#!/usr/bin/env aplwc-repl +#!/usr/bin/env aplwc :symbol plus + + diff --git a/tests/scripts/bad/14.aplwc b/tests/scripts/bad/14.aplwc index 6b609ee..1e6f29f 100755 --- a/tests/scripts/bad/14.aplwc +++ b/tests/scripts/bad/14.aplwc @@ -1,3 +1,3 @@ -#!/usr/bin/env aplwc-repl +#!/usr/bin/env aplwc :peter diff --git a/tests/scripts/bad/15.aplwc b/tests/scripts/bad/15.aplwc index 0662ccd..fe16903 100755 --- a/tests/scripts/bad/15.aplwc +++ b/tests/scripts/bad/15.aplwc @@ -1,3 +1,3 @@ -#!/usr/bin/env aplwc-repl +#!/usr/bin/env aplwc -'
\ No newline at end of file +' diff --git a/tests/scripts/bad/2.sh b/tests/scripts/bad/2.sh index 73321be..4c7516e 100755 --- a/tests/scripts/bad/2.sh +++ b/tests/scripts/bad/2.sh @@ -1,3 +1,3 @@ #!/bin/sh -aplwc-repl -x -? +aplwc -x -? diff --git a/tests/scripts/bad/3.sh b/tests/scripts/bad/3.sh index ff0e033..bebca76 100755 --- a/tests/scripts/bad/3.sh +++ b/tests/scripts/bad/3.sh @@ -1,3 +1,3 @@ #!/bin/sh -aplwc-repl -x some-file-which-does-not-exist +aplwc -x some-file-which-does-not-exist diff --git a/tests/scripts/bad/4.aplwc b/tests/scripts/bad/4.aplwc index 8934275..1dc7666 100755 --- a/tests/scripts/bad/4.aplwc +++ b/tests/scripts/bad/4.aplwc @@ -1,3 +1,3 @@ -#!/usr/bin/env aplwc-repl +#!/usr/bin/env aplwc ∇ foo diff --git a/tests/scripts/bad/4.sh b/tests/scripts/bad/4.sh index 0c48eaf..ae70b35 100755 --- a/tests/scripts/bad/4.sh +++ b/tests/scripts/bad/4.sh @@ -1,3 +1,3 @@ #!/bin/sh -aplwc-repl -x f1 f2 +aplwc -x f1 f2 diff --git a/tests/scripts/bad/5.aplwc b/tests/scripts/bad/5.aplwc index 26b3140..b727d2c 100755 --- a/tests/scripts/bad/5.aplwc +++ b/tests/scripts/bad/5.aplwc @@ -1,4 +1,4 @@ -#!/usr/bin/env aplwc-repl +#!/usr/bin/env aplwc ∇ foo ' diff --git a/tests/scripts/bad/5.sh b/tests/scripts/bad/5.sh index 8411e21..a2635a5 100755 --- a/tests/scripts/bad/5.sh +++ b/tests/scripts/bad/5.sh @@ -1,3 +1,3 @@ #!/bin/sh -aplwc-repl -x /dev/stdin +aplwc -x /dev/stdin diff --git a/tests/scripts/bad/6.sh b/tests/scripts/bad/6.sh index 2d9a94c..21fcc38 100755 --- a/tests/scripts/bad/6.sh +++ b/tests/scripts/bad/6.sh @@ -1,4 +1,4 @@ #!/bin/sh export APLWC_SIMULATE_FAILURE_PRINT_COUNT=1 -aplwc-repl -x 3>&- +aplwc -x 3>&- diff --git a/tests/scripts/bad/7.aplwc b/tests/scripts/bad/7.aplwc index ae9dcf3..cd50d41 100755 --- a/tests/scripts/bad/7.aplwc +++ b/tests/scripts/bad/7.aplwc @@ -1,3 +1,3 @@ -#!/usr/bin/env aplwc-repl +#!/usr/bin/env aplwc -:symbol
\ No newline at end of file +:symbol diff --git a/tests/scripts/bad/7.sh b/tests/scripts/bad/7.sh index 189a5f0..8bf9d13 100755 --- a/tests/scripts/bad/7.sh +++ b/tests/scripts/bad/7.sh @@ -1,4 +1,4 @@ #!/bin/sh export APLWC_SIMULATE_FAILURE_AT=100 -aplwc-repl -x /dev/stdin +aplwc -x /dev/stdin diff --git a/tests/scripts/bad/8.aplwc b/tests/scripts/bad/8.aplwc index c2610e0..573edec 100755 --- a/tests/scripts/bad/8.aplwc +++ b/tests/scripts/bad/8.aplwc @@ -1,3 +1,3 @@ -#!/usr/bin/env aplwc-repl +#!/usr/bin/env aplwc :symbol 123 diff --git a/tests/scripts/bad/9.aplwc b/tests/scripts/bad/9.aplwc index 469cc0b..e4ca077 100755 --- a/tests/scripts/bad/9.aplwc +++ b/tests/scripts/bad/9.aplwc @@ -1,3 +1,3 @@ -#!/usr/bin/env aplwc-repl +#!/usr/bin/env aplwc :symbol plus 123 diff --git a/tests/scripts/good/1.aplwc b/tests/scripts/good/1.aplwc index e101d02..7a86f8f 100755 --- a/tests/scripts/good/1.aplwc +++ b/tests/scripts/good/1.aplwc @@ -1,4 +1,4 @@ -#!/usr/bin/env aplwc-repl +#!/usr/bin/env aplwc ∇ run ⎕←40 + 2 diff --git a/tests/scripts/good/2.aplwc b/tests/scripts/good/2.aplwc index e60e717..b6b5e63 100755 --- a/tests/scripts/good/2.aplwc +++ b/tests/scripts/good/2.aplwc @@ -1,4 +1,4 @@ -#!/usr/bin/env aplwc-repl +#!/usr/bin/env aplwc ∇ run foo 123 diff --git a/tests/scripts/good/2.sh b/tests/scripts/good/2.sh index 9bb0268..e0d41f3 100755 --- a/tests/scripts/good/2.sh +++ b/tests/scripts/good/2.sh @@ -2,4 +2,4 @@ set -e -echo "1+2" | aplwc-repl +echo "1+2" | aplwc diff --git a/tests/scripts/good/3.aplwc b/tests/scripts/good/3.aplwc index 7a6c0c5..50f8ca5 100755 --- a/tests/scripts/good/3.aplwc +++ b/tests/scripts/good/3.aplwc @@ -1,3 +1,3 @@ -#!/usr/bin/env aplwc-repl +#!/usr/bin/env aplwc -:export plus minus foo
\ No newline at end of file +:export plus minus foo diff --git a/tests/scripts/good/3.sh b/tests/scripts/good/3.sh index 4a86c11..93f52d6 100755 --- a/tests/scripts/good/3.sh +++ b/tests/scripts/good/3.sh @@ -2,7 +2,7 @@ set -e -cat <<EOF | aplwc-repl +cat <<EOF | aplwc 1+2 3+4 EOF diff --git a/tests/scripts/good/4.sh b/tests/scripts/good/4.sh index b075ac7..c3c6160 100755 --- a/tests/scripts/good/4.sh +++ b/tests/scripts/good/4.sh @@ -2,7 +2,7 @@ set -e -cat <<EOF | aplwc-repl +cat <<EOF | aplwc 'abc' 123 EOF diff --git a/tests/scripts/good/5.sh b/tests/scripts/good/5.sh index 28a4734..60c6860 100755 --- a/tests/scripts/good/5.sh +++ b/tests/scripts/good/5.sh @@ -1,4 +1,4 @@ #!/bin/sh export APLWC_SIMULATE_FAILURE_AT=one -aplwc-repl -x +aplwc -x diff --git a/tests/scripts/good/6.sh b/tests/scripts/good/6.sh index 822ff68..a5d8bfc 100755 --- a/tests/scripts/good/6.sh +++ b/tests/scripts/good/6.sh @@ -1,4 +1,4 @@ #!/bin/sh export APLWC_SIMULATE_FAILURE_AT= -aplwc-repl -x +aplwc -x diff --git a/tests/scripts/good/7.sh b/tests/scripts/good/7.sh index d59b189..7f2794d 100755 --- a/tests/scripts/good/7.sh +++ b/tests/scripts/good/7.sh @@ -2,4 +2,4 @@ set -e -echo "'abc'" | aplwc-repl +echo "'abc'" | aplwc diff --git a/tests/scripts/simfail.sh b/tests/scripts/simfail.sh index fe64a25..c10a7cb 100755 --- a/tests/scripts/simfail.sh +++ b/tests/scripts/simfail.sh @@ -5,6 +5,10 @@ set -e export APLWC_SIMULATE_FAILURE_PRINT_COUNT=1 N=$($1 3>&1 1>/dev/null 2>/dev/null) n=1 +if [ -z "$N" ]; then + N=0 +fi + export APLWC_SIMULATE_FAILURE_PRINT_COUNT=0 while [ "$n" -le "$N" ] |