-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added scripts to run the philosophers tests and colect the results
- Loading branch information
1 parent
d79dcd3
commit 5cb762a
Showing
7 changed files
with
39 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
/docs/build/ | ||
/nbproject/ | ||
settings.xml | ||
|
||
tst/results/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
# Runs all tests from 4 to $MAX. | ||
|
||
if (($# < 2)); then | ||
echo Usage: $0 MIN MAX | ||
echo where MIN and MAX are the start and end number of philosophers \(inclusive\). | ||
exit 1 | ||
fi | ||
|
||
MIN=$1 | ||
MAX=$2 | ||
|
||
DATE_STR=`date "+%d%m%y-%H%M"` | ||
RESULT_FOLDER=results/$DATE_STR | ||
mkdir -p $RESULT_FOLDER | ||
|
||
|
||
for i in `seq $MIN $MAX` | ||
do | ||
echo Running with $i philosophers | ||
date "+%H:%M:%S" | ||
./run-test.sh $i > $RESULT_FOLDER/$i-out.log 2>&1 | ||
date "+%H:%M:%S" | ||
echo DONE | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
echo Single test case with $1 philosophers. | ||
|
||
java -Xmx8g -cp BPjs-0.8.6-SNAPSHOT.jar:BPjs-0.8.6-SNAPSHOT-tests.jar:rhino-1.7.7.1.jar\ | ||
il.ac.bgu.cs.bp.bpjs.diningphil.DiningPhilMain $1 $1 |