diff --git a/experiment/setup.sh b/experiment/common/setup.sh similarity index 94% rename from experiment/setup.sh rename to experiment/common/setup.sh index 0ac968f..cc9a7d7 100755 --- a/experiment/setup.sh +++ b/experiment/common/setup.sh @@ -7,6 +7,9 @@ if [[ -z ${FUZZER_MACHINE} ]]; then exit 1 fi +root_dir="$(dirname "$(dirname "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")")")" +cd "$root_dir" + function build_legion_config { config_name="$1" cmake_build_type="$2" diff --git a/experiment/do_all.sh b/experiment/do_all.sh index 3c0f14c..cb12f9c 100644 --- a/experiment/do_all.sh +++ b/experiment/do_all.sh @@ -4,6 +4,10 @@ machine="$1" set -e +root_dir="$(dirname "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")")" +cd "$root_dir" + + source experiment/$machine/env.sh ./experiment/$machine/do_build.sh ./experiment/$machine/run_all_tests.sh diff --git a/experiment/sapling/do_build.sh b/experiment/sapling/do_build.sh index 96fc919..06e06eb 100644 --- a/experiment/sapling/do_build.sh +++ b/experiment/sapling/do_build.sh @@ -2,4 +2,7 @@ set -e -srun -n 1 -N 1 -c 40 -p all --exclusive --pty ./experiment/setup.sh +root_dir="$(dirname "$(dirname "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")")")" +cd "$root_dir" + +srun -n 1 -N 1 -c 40 -p all --exclusive --pty ./experiment/common/setup.sh diff --git a/experiment/sapling/run_all_tests.sh b/experiment/sapling/run_all_tests.sh index a349941..aa599f9 100755 --- a/experiment/sapling/run_all_tests.sh +++ b/experiment/sapling/run_all_tests.sh @@ -7,6 +7,9 @@ if [[ -z ${FUZZER_MACHINE} ]]; then exit 1 fi +root_dir="$(dirname "$(dirname "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")")")" +cd "$root_dir" + # Currently we give everything equal testing export FUZZER_TEST_COUNT=10000 export FUZZER_OP_COUNT=1000