Download tasks/headless-terminal/tests/test.sh from pedrodev2026/Mini-TBench: direct link, hf CLI and curl.
- Browser
- Download file 504 Bytes
-
https://huggingface.co/datasets/pedrodev2026/Mini-TBench/resolve/main/tasks/headless-terminal/tests/test.sh
- Command line
-
hf download hf://datasets/pedrodev2026/Mini-TBench/tasks/headless-terminal/tests/test.sh
-
curl -L -o test.sh https://huggingface.co/datasets/pedrodev2026/Mini-TBench/resolve/main/tasks/headless-terminal/tests/test.sh
504 Bytes
| # Install curl | |
| apt-get update | |
| apt-get install -y vim | |
| # Check if we're in a valid working directory | |
| if [ "$PWD" = "/" ]; then | |
| echo "Error: No working directory set. Please set a WORKDIR in your Dockerfile before running this script." | |
| exit 1 | |
| fi | |
| pip install pytest==8.4.1 requests==2.32.5 pytest-json-ctrf==0.3.5 | |
| pytest --ctrf /logs/verifier/ctrf.json /tests/test_outputs.py -rA | |
| if [ $? -eq 0 ]; then | |
| echo 1 > /logs/verifier/reward.txt | |
| else | |
| echo 0 > /logs/verifier/reward.txt | |
| fi | |