This repository was archived by the owner on Jul 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
16 lines (16 loc) · 1.26 KB
/
run.sh
File metadata and controls
16 lines (16 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
export ANT_HOME=$1
export PATH=$PATH:$ANT_HOME/bin/
ant
read -p "Ant build finish, press [Enter] to start runner class"
export CLASSPATH=.:./encode/encoder.jar
javac Runner.java
java Runner
read -p "Runner show finish, press [Enter] to start unit test"
cd encode/build/
java -cp .:../../encode/encoder.jar:../../src/lib/junit-4.11.jar:../../src/lib/hamcrest-core-1.3.jar org.junit.runner.JUnitCore ie.gmit.test.TestHuffmanTree
java -cp .:../../encode/encoder.jar:../../src/lib/junit-4.11.jar:../../src/lib/hamcrest-core-1.3.jar org.junit.runner.JUnitCore ie.gmit.test.TestEncoderException
java -cp .:../../encode/encoder.jar:../../src/lib/junit-4.11.jar:../../src/lib/hamcrest-core-1.3.jar org.junit.runner.JUnitCore ie.gmit.test.TestEncoderReliability
java -cp .:../../encode/encoder.jar:../../src/lib/junit-4.11.jar:../../src/lib/hamcrest-core-1.3.jar org.junit.runner.JUnitCore ie.gmit.test.TestEncoderSpecificEfficiency
java -cp .:../../encode/encoder.jar:../../src/lib/junit-4.11.jar:../../src/lib/hamcrest-core-1.3.jar org.junit.runner.JUnitCore ie.gmit.test.TestFactoryCommand
java -cp .:../../encode/encoder.jar:../../src/lib/junit-4.11.jar:../../src/lib/hamcrest-core-1.3.jar org.junit.runner.JUnitCore ie.gmit.test.TestFactoryPoly
read -p "Test finish, press [Enter] to exist"