Skip to content

Instantly share code, notes, and snippets.

@vimncent
Created April 21, 2017 00:07
Show Gist options
  • Save vimncent/64092c73f7625ec7661d53ce85f50545 to your computer and use it in GitHub Desktop.
Save vimncent/64092c73f7625ec7661d53ce85f50545 to your computer and use it in GitHub Desktop.
Graph Shell Script
#!/bin/bash
echo "Compiling source code"
javac SSAD.java
echo "Running test"
for i in `seq 1 1 $1`; do
java -jar SSADGen.jar Graph${i}.txt profResults${i}.txt
java SSAD Graph${i}.txt log${i}.txt
java -jar LogComparator.jar profResults${i}.txt log${i}.txt | tail -n 1
done
exit 0
@vimncent
Copy link
Author

vimncent commented Apr 21, 2017

Here's an example:

$ sh test.sh 100

Also, as a warning for every case, 3 files get created: the graph file, the prof results log file, and your log file, so be wary of running too many test cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment