You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-pefile/SOURCES/pefile-tests.sh

16 lines
329 B

#!/bin/bash
# config
COMMIT="64524fa8a041"
REMOTE="https://github.com/erocarrera/pefile-tests"
# clone repo and run tests
TESTDIR="$(mktemp --directory ${TMPDIR-/var/tmp}/test-XXXXXXXX)"
trap 'cd /; rm -rf "$TESTDIR"' EXIT
cd "$TESTDIR"
set -ex
git clone $REMOTE repo
cd repo
git checkout "$COMMIT"
pytest tests/pefile_test.py