33 lines · 911 B · Shell
RawDownload
#!/usr/bin/env bash## Native C Command Build/Install Validation## Builds and installs the maintained C command set against the WASI toolchain.# This legacy script name is kept for existing callers; it is not a broad GNU# runtime conformance suite.## Usage:#   ./scripts/test-gnu.sh# set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"PROJECT_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"COMMANDS_DIR="$PROJECT_DIR/target/wasm32-wasip1/release/commands" # Check standalone binaries existif [ ! -d "$COMMANDS_DIR" ]; then    echo "Error: Commands directory not found at $COMMANDS_DIR"    echo "Run 'make wasm' first."    exit 1fi echo "=== Native C Command Build/Install Validation ==="echo "Commands dir: $COMMANDS_DIR ($( ls -1 "$COMMANDS_DIR" | wc -l ) binaries)"echo "" make -C "$PROJECT_DIR/c" programs install echo ""echo "=== Native C command build/install validation PASSED ==="