Skip to content

Commit

Permalink
Make sure everything runs out of the root directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottslaughter committed Jul 26, 2024
1 parent c88654f commit b6aa519
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions experiment/setup.sh → experiment/common/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions experiment/do_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 4 additions & 1 deletion experiment/sapling/do_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions experiment/sapling/run_all_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b6aa519

Please sign in to comment.