#!/bin/bash
function executeCommand {
    $@
    rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
    echo "Exit code[" $@ "]: $rc"
}

executeCommand "mkdir -p build"
executeCommand "cd build"
executeCommand "export CMAKE_LIBRARY_PATH=$CMAKE_LIBRARY_PATH:/framework-dependencies/lib"
executeCommand "export CMAKE_INCLUDE_PATH=$CMAKE_INCLUDE_PATH:/framework-dependencies/include"
executeCommand "source /root-system/bin/thisroot.sh"
executeCommand "cmake .."
executeCommand "source thisframework.sh"
executeCommand "make all tests -j4"
executeCommand "cd tests"
executeCommand "./run_tests.pl -f xml"
executeCommand "chmod a+x parseXML.py"
executeCommand "./parseXML.py"
#!/bin/bash
function executeCommand {
    $@
    rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
    echo "Exit code[" $@ "]: $rc"
}
executeCommand "git clone --single-branch --branch cmake https://github.com/grey277/Unpacker2.git"
executeCommand "mkdir -p Unpacker2/build"
executeCommand "cd Unpacker2/build"
executeCommand "cmake .."
executeCommand "cmake --build ."
executeCommand "make install"
executeCommand "cd ../.."
executeCommand "mkdir -p build"
executeCommand "cd build"
executeCommand "export CMAKE_LIBRARY_PATH=$CMAKE_LIBRARY_PATH:/framework-dependencies/lib"
executeCommand "export CMAKE_INCLUDE_PATH=$CMAKE_INCLUDE_PATH:/framework-dependencies/include"
executeCommand "source /root-system/bin/thisroot.sh"
executeCommand "cmake .."
executeCommand "source thisframework.sh"
executeCommand "make all tests -j4"
executeCommand "cd tests"
executeCommand "./run_tests.pl -f xml"
executeCommand "chmod a+x parseXML.py"
executeCommand "./parseXML.py"
Modify test to download and install Unpacker2
Modify test to download and install Unpacker2
