-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bash
More file actions
executable file
·40 lines (31 loc) · 763 Bytes
/
Copy pathrun.bash
File metadata and controls
executable file
·40 lines (31 loc) · 763 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
36
37
38
39
40
#!/bin/bash
# Check if command line args were provided
if [[ $# -eq 0 ]]
then
echo "Please provide the number of times a test should be run"
exit 0
fi
# Recompile solution
make
# Run tests
echo ""
echo "Running mutual_exclusion..."
./exec tests/mutual_exclusion.txt $1
echo ""
echo "Running hold_wait.txt..."
./exec tests/hold_wait.txt 100
echo ""
echo "Running semaphore_ok..."
./exec tests/semaphore_ok.txt $1
echo ""
echo "Running stupid_deadlock..."
./exec tests/stupid_deadlock.txt $1
echo ""
echo "Running simple_deadlock..."
./exec tests/simple_deadlock.txt $1
echo ""
echo "Running circular_deadlock..."
./exec tests/circular_deadlock.txt $1
echo ""
echo "Running semaphore_deadlock..."
./exec tests/semaphore_deadlock.txt $1