-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_run_tests2.sh
More file actions
23 lines (18 loc) · 903 Bytes
/
_run_tests2.sh
File metadata and controls
23 lines (18 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# No set -e, let all commands run
OUTPUT=/workspaces/meow-decoder/_test_output.txt
echo "STARTED" > "$OUTPUT"
echo "===== COMMAND 1: cargo test -p crypto_core =====" >> "$OUTPUT"
cd /workspaces/meow-decoder
cargo test -p crypto_core 2>&1 | tail -10 >> "$OUTPUT" 2>&1
echo "EXIT_CODE_1=$?" >> "$OUTPUT"
echo "" >> "$OUTPUT"
echo "===== COMMAND 2: pytest selected tests =====" >> "$OUTPUT"
MEOW_TEST_MODE=1 /usr/local/bin/python -m pytest tests/test_crypto_enforcement.py tests/test_pq_crypto.py tests/test_pq_crypto_real.py tests/test_audit_fixes.py -v 2>&1 | tail -40 >> "$OUTPUT" 2>&1
echo "EXIT_CODE_2=$?" >> "$OUTPUT"
echo "" >> "$OUTPUT"
echo "===== COMMAND 3: pytest -q (all tests) =====" >> "$OUTPUT"
MEOW_TEST_MODE=1 /usr/local/bin/python -m pytest -q 2>&1 | tail -20 >> "$OUTPUT" 2>&1
echo "EXIT_CODE_3=$?" >> "$OUTPUT"
echo "" >> "$OUTPUT"
echo "===== DONE =====" >> "$OUTPUT"