#!/bin/bash

set -e;

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"

BPFTRACE_RUNTIME_TEST_EXECUTABLE=${BPFTRACE_RUNTIME_TEST_EXECUTABLE:-$DIR/../src/};
export BPFTRACE_RUNTIME_TEST_EXECUTABLE;

python3 main.py $@

#!/bin/bash

set -e;

pushd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1

BPFTRACE_RUNTIME_TEST_EXECUTABLE=${BPFTRACE_RUNTIME_TEST_EXECUTABLE:-../src/};
export BPFTRACE_RUNTIME_TEST_EXECUTABLE;

python3 main.py $@

Allow runtime tests to be ran from any directory
Allow runtime tests to be ran from any directory

When trying to run the runtime tests from any directory other than
`tests`  it fails:

```
~/bpftrace$ sudo ./tests/runtime-tests.sh
python3: can't open file 'main.py': [Errno 2] No such file or directory
```

This fixes that
