Download task_027/tests/test.sh from Lego-X/UXInteract: direct link, hf CLI and curl.
- Browser
- Download file 805 Bytes
-
https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_027/tests/test.sh
- Command line
-
hf download hf://datasets/Lego-X/UXInteract/task_027/tests/test.sh
-
curl -L -o test.sh https://huggingface.co/datasets/Lego-X/UXInteract/resolve/main/task_027/tests/test.sh
805 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"; } | |
| export NODE_PATH="${NODE_PATH:-$(npm root -g 2>/dev/null)}" | |
| export PYTHONHASHSEED=1 | |
| unset HTTP_PROXY HTTPS_PROXY ALL_PROXY http_proxy https_proxy all_proxy | |
| echo 0 > "$LOG_DIR/reward.txt" | |
| rm -f -- cut_price_stats.csv price_bin_stats.csv report.html top_10_diamonds.csv | |
| if python3 "$TEST_DIR/analysis_entry.py" && | |
| python3 "$TEST_DIR/validate_outputs.py" && | |
| timeout 150s python3 "$TEST_DIR/validate_enhanced.py" && | |
| timeout 90s node "$TEST_DIR/validate_aaav_dynamic.js" && | |
| timeout 90s node "$TEST_DIR/review_report.js" && | |
| python3 "$TEST_DIR/review_report.py"; then | |
| echo 1 > "$LOG_DIR/reward.txt" | |
| fi | |