#!/bin/bash # Install required packages if [ "$1" != '--non-interactive' ]; then ./resources/install_dependencies.sh fi # Create the Makefile using cmake, from a clean build directory cd code_boost/src/build/ if [ ${PWD##*/} = 'build' ]; then # Only delete everything if we are in a folder called 'build'. rm -rf ./* else echo "Error: The 'build' directory was not found." exit fi cmake .. if [ -f Makefile ]; then make else echo "Error: 'cmake' did not finish successfully." exit fi if [ $? -eq 0 ]; then cp libpcapreader.so ../../../code/ID2TLib/ cp libbotnetcomm.so ../../../code/ID2TLib/ else echo "Error: 'make' did not finish successfully." exit fi cd ../../../ # Create the ID2T script cat >./id2t <./run_tests </dev/null coverage3 html coverage3 report -m EOF # Create the test script cat >./test_efficiency <