Refactored run_all_tests() function.
Refactored run_all_tests() function.

Added a run_one_test() method to enable code sharing with future test runners.
Also, the script now returns a zero code on success and non-zero code on
failure.

jomof/cmake-server-java-bindings,jomof/cmake-server-java-bindings,jomof/cmake-server-java-bindings,jomof/cmake-server-java-bindings,mbrukman/autogen,jomof/cmake-server-java-bindings,jomof/cmake-server-java-bindings,mbrukman/autogen