-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path_test_fuzz2.sh
More file actions
44 lines (40 loc) · 1.16 KB
/
_test_fuzz2.sh
File metadata and controls
44 lines (40 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
# Test all fuzz scripts using the venv Python (which has atheris)
PYTHON=/workspaces/meow-decoder/.venv/bin/python
export MEOW_TEST_MODE=1
export MEOW_CRYPTO_BACKEND=rust
mkdir -p fuzz/corpus/manifest fuzz/corpus/fountain fuzz/crashes
scripts=(
"fuzz/fuzz_manifest.py fuzz/corpus/manifest"
"fuzz/fuzz_fountain.py fuzz/corpus/fountain"
"fuzz/fuzz_crypto.py fuzz/corpus/manifest"
"fuzz/fuzz_windows_guard.py"
"fuzz/fuzz_mouse_gesture.py"
"fuzz/fuzz_tamper_detection.py"
"fuzz/fuzz_adversarial_stego.py"
"fuzz/fuzz_ratchet.py"
"fuzz/fuzz_manifest_signing.py"
"fuzz/fuzz_pq_ratchet_beacon.py"
"fuzz/fuzz_master_ratchet.py"
"fuzz/fuzz_schrodinger.py"
"fuzz/fuzz_crypto_backend.py"
"fuzz/fuzz_shamir.py"
"fuzz/fuzz_memory_guard.py"
"fuzz/fuzz_dual_stream.py"
"fuzz/fuzz_stego_multilayer.py"
)
FAILURES=0
for cmd in "${scripts[@]}"; do
echo "=== $PYTHON $cmd ==="
timeout 5s $PYTHON $cmd 2>&1 | head -10
RC=$?
if [ $RC -eq 0 ] || [ $RC -eq 124 ]; then
echo "RC=$RC OK"
else
echo "RC=$RC FAIL ← WOULD BREAK CI"
FAILURES=$((FAILURES+1))
fi
echo ""
done
echo "============================="
echo "Failures: $FAILURES"