File: run-testsuite-if-acls-enabled

package info (click to toggle)
python-pylibacl 0.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 276 kB
  • ctags: 243
  • sloc: ansic: 1,517; python: 352; makefile: 57; sh: 21
file content (21 lines) | stat: -rwxr-xr-x 573 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

TESTFILE="$ADTTMP/foo"

touch "$TESTFILE"

if setfacl -m u:root:r "$TESTFILE"; then
  echo "Temporary directory '$ADTTMP' has ACLs enabled, running tests"
  export TEST_DIR="$ADTTMP"
  echo "* testing Python 2"
  python2 test/test_acls.py
  echo "* testing Python 2 debug package"
  python2-dbg test/test_acls.py
  echo "* testing Python 3"
  python3 test/test_acls.py
  echo "* testing Python 3 debug package"
  python3-dbg test/test_acls.py
else
  echo "Temporary directory '$ADTTMP' doesn't have extended attributes enabled"
  echo "Skipping the tests :("
fi