python-pefile/pefile-tests.sh
Gerd Hoffmann 15581747be rebase to release 2024.8.26
Resolves: RHEL-69802
2024-12-03 12:35:39 +01:00

16 lines
329 B
Bash

#!/bin/bash
# config
COMMIT="508909cfd2e7"
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