Skip to content

Commit

Permalink
tests: add setup and run scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
P403n1x87 committed Sep 4, 2023
1 parent c5bc17c commit 76c0245
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

set -e

PY=${1:-}
if [ -n "$PY" ]; then
shift
fi

source /tmp/austin-test/bin/activate
ulimit -c unlimited
export LD_LIBRARY_PATH="/Users/gabriele/Projects/libunwind/src/.libs/"
AUSTIN_TESTS_PYTHON_VERSIONS=$PY pytest "$@"
deactivate
12 changes: 12 additions & 0 deletions test/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

set -e

if [ -d "/tmp/austin-test" ]; then
rm -rf /tmp/austin-test
fi

python3.10 -m venv /tmp/austin-test
source /tmp/austin-test/bin/activate
pip install -r test/requirements.txt
deactivate

0 comments on commit 76c0245

Please sign in to comment.