File: run-testsuite-if-attrs-enabled

package info (click to toggle)
python-pyxattr 0.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 228 kB
  • sloc: ansic: 954; python: 483; makefile: 103; sh: 16
file content (17 lines) | stat: -rwxr-xr-x 498 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

TESTFILE="$AUTOPKGTEST_TMP/foo"

touch "$TESTFILE"

if setfattr -n user.foo -v bar "$TESTFILE"; then
  echo "Temporary directory '$AUTOPKGTEST_TMP' has extended attributes, running tests"
  export TEST_DIR="$AUTOPKGTEST_TMP"
  echo "* testing Python 3"
  python3 tests/test_xattr.py
  echo "* testing Python 3 debug package"
  python3-dbg tests/test_xattr.py
else
  echo "Temporary directory '$AUTOPKGTEST_TMP' doesn't have extended attributes enabled"
  echo "Skipping the tests :("
fi