Download und unpack the krypto-algorithms-2014-06-18.zip into a directory of your choice. All following paths are related to the base directory of the
distribution. First, you should adapt the MS-DOS-Batch setup-java-home.bat
or rather the Bash-script setup-java-home.sh
by entering
the correct location of your Java-Runtime. The Scala program was tested with a JDK 8
(1.8.0_05) from Oracle on Windows and with a OpenJDK-7-distribution (1.7.0_55) on Linux Ubuntu 12.04. Second, you may
run the test specification by entering the command run-test-specification(.sh)
within a shell. All mentioned scripts assume that your working directory is the project directory.
After several seconds the program should report:
$ ./run-test-specification.sh ... Run completed in 8 seconds, 17 milliseconds. Total number of tests run: 22 Suites: completed 10, aborted 0 Tests: succeeded 22, failed 0, canceled 0, ignored 0, pending 0 All tests passed.
You may open the log file log/TestTracer.log
and review the recorded execution of the test specification. Search for '* INFO *'
to move the cursor to the printouts of the several test suites.
Enter run-batch(.sh)
to process the tasks defined within batch/krypto-batch.xml
. The execution time depends
on the given tasks. The initially defined batch needs several seconds to completion on my laptop:
$ ./run-batch.sh java version "1.7.0_55" OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1~0.12.04.2) OpenJDK Server VM (build 24.51-b03, mixed mode) ... 14 Tasks processed in 4.481 seconds.