]> git.k1024.org Git - debian-pyxattr.git/blob - debian/tests/run-testsuite-if-attrs-enabled
Bump standards version
[debian-pyxattr.git] / debian / tests / run-testsuite-if-attrs-enabled
1 #!/bin/sh
2
3 TESTFILE="$AUTOPKGTEST_TMP/foo"
4
5 touch "$TESTFILE"
6
7 if setfattr -n user.foo -v bar "$TESTFILE"; then
8   echo "Temporary directory '$AUTOPKGTEST_TMP' has extended attributes, running tests"
9   export TEST_DIR="$AUTOPKGTEST_TMP"
10   echo "* testing Python 3"
11   python3 tests/test_xattr.py
12 else
13   echo "Temporary directory '$AUTOPKGTEST_TMP' doesn't have extended attributes enabled"
14   echo "Skipping the tests :("
15 fi