diff options
Diffstat (limited to 'awk/rawk/scratch/simple_test_runner.sh')
-rwxr-xr-x | awk/rawk/scratch/simple_test_runner.sh | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/awk/rawk/scratch/simple_test_runner.sh b/awk/rawk/scratch/simple_test_runner.sh new file mode 100755 index 0000000..35ac6a3 --- /dev/null +++ b/awk/rawk/scratch/simple_test_runner.sh @@ -0,0 +1,48 @@ +#!/bin/bash + +echo "๐งช Simple rawk v2.0.0 Test Runner" +echo "==================================" + +# Test 1: Basic functionality +echo "" +echo "๐ Test 1: Basic Functionality" +echo "Running: test_basic.rawk" +output=$(echo "test input" | awk -f ../rawk_block_based.awk test_basic.rawk | awk -f - 2>&1) +exit_code=$? +echo "Exit code: $exit_code" +echo "Output:" +echo "$output" +echo "" + +# Test 2: Simple standard library +echo "๐ Test 2: Simple Standard Library" +echo "Running: simple_stdlib_test.rawk" +output=$(echo "test input" | awk -f ../rawk_block_based.awk simple_stdlib_test.rawk | awk -f - 2>&1) +exit_code=$? +echo "Exit code: $exit_code" +echo "Output:" +echo "$output" +echo "" + +# Test 3: Standard library (the problematic one) +echo "๐ง Test 3: Full Standard Library" +echo "Running: test_stdlib.rawk" +output=$(echo "test input" | awk -f ../rawk_block_based.awk test_stdlib.rawk | awk -f - 2>&1) +exit_code=$? +echo "Exit code: $exit_code" +echo "Output:" +echo "$output" +echo "" + +# Test 4: Error handling +echo "โ Test 4: Error Handling" +echo "Running: test_errors.rawk (should fail)" +output=$(awk -f ../rawk_block_based.awk test_errors.rawk 2>&1) +exit_code=$? +echo "Exit code: $exit_code" +echo "Output:" +echo "$output" +echo "" + +echo "==================================" +echo "Test runner completed!" \ No newline at end of file |