Download task_003/tests/test.sh from Lego-X/UXInteract: direct link, hf CLI and curl.
- Browser
- Download file 447 Bytes
-
https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_003/tests/test.sh
- Command line
-
hf download hf://datasets/Lego-X/UXInteract/task_003/tests/test.sh
-
curl -L -o test.sh https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_003/tests/test.sh
447 Bytes
| set -uo pipefail | |
| TEST_DIR="$(cd "$(dirname "$0")" && pwd)" | |
| LOG_DIR=/logs/verifier | |
| mkdir -p "$LOG_DIR" 2>/dev/null || { LOG_DIR="$PWD/logs/verifier"; mkdir -p "$LOG_DIR"; } | |
| REWARD_FILE="$LOG_DIR/reward.txt" | |
| echo 0 > "$REWARD_FILE" | |
| run() { timeout 90s node "$TEST_DIR/$1"; } | |
| PASS=1 | |
| run validate_semantics.js || PASS=0 | |
| run validate_browser_smoke.js || PASS=0 | |
| run validate_enhanced_cases.js || PASS=0 | |
| echo "$PASS" > "$REWARD_FILE" | |