| 1 | #!/bin/sh |
| 2 | |
| 3 | # For 2.4.2+dfsg-1 |
| 4 | GIT_COMMIT=3dd13d7fd890f662ac6c75344906ebe50524200e |
| 5 | |
| 6 | set -e |
| 7 | |
| 8 | echo "Downloading the upstream git repository..." |
| 9 | trap 'exit 77' EXIT # skip the test if we fail while downloading data |
| 10 | cd ${AUTOPKGTEST_TMP:-/tmp} |
| 11 | wget -nv https://github.com/OSPG/binwalk/archive/${GIT_COMMIT}.tar.gz -O code.tar.gz |
| 12 | tar xf code.tar.gz |
| 13 | cd binwalk-* |
| 14 | trap '' EXIT |
| 15 | |
| 16 | echo "Running the upstream tests" |
| 17 | cd testing/tests |
| 18 | mkdir -p /tmp/home |
| 19 | export HOME="/tmp/home" |
| 20 | pytest |