@@ -4,44 +4,15 @@ set -euo pipefail
44# Runs coreutils tests via lind_run
55# See FINDINGS.md for details
66
7- echo " This script demonstrated running coreutils tests via lind_run wrappers."
8- echo " Key finding: Test infrastructure needs native filesystem access."
9- echo " See FINDINGS.md for complete analysis and test results."
10-
117LIND_WASM_ROOT=" ${LIND_WASM_ROOT:- $HOME / lind-wasm} "
12- COREUTILS_ROOT=" $HOME /lind-wasm-apps/coreutils"
138CWASM_DIR=" $HOME /lind-wasm-apps/build/bin/coreutils/wasm32-wasi"
149LIND_RUN=" $LIND_WASM_ROOT /scripts/lind_run"
1510
16- echo " "
17- echo " === Coreutils Test Suite via Lind ==="
18- echo " Approach: Create wrapper scripts that call lind_run for each binary"
19- echo " "
20- echo " Status: Demonstrates wrapper approach and identifies limitations"
21- echo " Results: 1 PASS, 16 FAIL, 6 SKIP"
22- echo " "
23- echo " Errors found:"
24- echo " 1. ioctl not supported (ls fails)"
25- echo " 2. Test infrastructure needs native filesystem"
26- echo " 3. mktemp cannot create temp dirs in sandbox"
27- echo " "
28- echo " See FINDINGS.md for complete analysis"
11+ echo " === Running Coreutils WASM Binaries via Lind ==="
2912
30- LIND_WASM_ROOT= " ${LIND_WASM_ROOT :- $HOME / lind-wasm} "
31- COREUTILS_ROOT= " $HOME /lind-wasm-apps/coreutils "
32- CWASM_DIR= " $HOME /lind-wasm-apps/build/ bin/coreutils/wasm32-wasi "
33- LIND_RUN= " $LIND_WASM_ROOT /scripts/lind_run "
13+ for bin in " $CWASM_DIR " / * .cwasm ; do
14+ echo " Running $bin ... "
15+ " $LIND_RUN " " $ bin" || echo " ⚠️ $bin failed "
16+ done
3417
35- echo " "
36- echo " === Coreutils Test Suite via Lind ==="
37- echo " Approach: Create wrapper scripts that call lind_run for each binary"
38- echo " "
39- echo " Status: Demonstrates wrapper approach and identifies limitations"
40- echo " Results: 1 PASS, 16 FAIL, 6 SKIP"
41- echo " "
42- echo " Errors found:"
43- echo " 1. ioctl not supported (ls fails)"
44- echo " 2. Test infrastructure needs native filesystem"
45- echo " 3. mktemp cannot create temp dirs in sandbox"
46- echo " "
47- echo " See FINDINGS.md for complete analysis"
18+ echo " Done. See FINDINGS.md for detailed results."
0 commit comments