-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_tests.sh
More file actions
executable file
·35 lines (28 loc) · 797 Bytes
/
run_tests.sh
File metadata and controls
executable file
·35 lines (28 loc) · 797 Bytes
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
#!/bin/bash
# Imposta un flag per verificare se qualche test fallisce
TEST_FAILED=0
# Funzione per eseguire un singolo test e mostrare i risultati
run_test() {
local executable=$1
echo "Eseguendo test per $executable..."
if ./$executable; then
echo "✅ Test per $executable completati con successo."
else
echo "❌ Test per $executable falliti."
TEST_FAILED=1
fi
}
# Esegui i test per QuantumSim
run_test "QuantumSim"
# Esegui i test per QasmParser
run_test "QasmParser"
# Esegui i test per CtoQasm
run_test "CtoQasm"
# Mostra un riepilogo finale
if [ $TEST_FAILED -eq 0 ]; then
echo "✅ Tutti i test sono stati eseguiti con successo!"
exit 0
else
echo "❌ Alcuni test sono falliti. Verificare i dettagli sopra."
exit 1
fi