-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
38 lines (24 loc) · 830 Bytes
/
Copy pathrun.sh
File metadata and controls
38 lines (24 loc) · 830 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
#!/bin/bash
RUN="/software/sun-jdk-1.6.0-latest-el6-x86_64/bin/java"
HAMCREST="./libs/hamcrest-core-1.3.jar"
JUNIT="./libs/junit-4.11.jar"
EKMEANS="./libs/ekmeans-0.3.jar"
OUTDIR="./bin"
CLASSPATH=".:$OUTDIR:$HAMCREST:$JUNIT"
EXTRA=""
MAINCLASS="uiuc/cs463sp14/mp1/MP1Test"
if [ ! -d "$OUTDIR" ]; then
echo "Class files directory does not exist: run 'compile.sh' first, exiting...";
exit 1;
fi
cmd=`echo "$RUN" "$EXTRA" -classpath "$CLASSPATH" "$MAINCLASS"`
echo "Run command: \"$cmd\" ";
echo "--------------------------";
$cmd
echo "--------------------------"; echo "";
TESTCLASS="uiuc/cs463sp14/mp1/test/MP1TestRunner"
cmd=`echo "$RUN" "$EXTRA" -classpath "$CLASSPATH" "$TESTCLASS"`
echo "Tests run command: \"$cmd\" ";
echo "--------------------------";
$cmd
echo "--------------------------"; echo "";