]> git.k1024.org Git - debian-pylibacl.git/blob - debian/tests/run-testsuite-if-acls-enabled
Finalise changelog for 0.5.3-1 release
[debian-pylibacl.git] / debian / tests / run-testsuite-if-acls-enabled
1 #!/bin/sh
2
3 TESTFILE="$ADTTMP/foo"
4
5 touch "$TESTFILE"
6
7 if setfacl -m u:root:r "$TESTFILE"; then
8   echo "Temporary directory '$ADTTMP' has ACLs enabled, running tests"
9   export TEST_DIR="$ADTTMP"
10   echo "* testing Python 2"
11   python2 test/test_acls.py
12   echo "* testing Python 2 debug package"
13   python2-dbg test/test_acls.py
14   echo "* testing Python 3"
15   python3 test/test_acls.py
16   echo "* testing Python 3 debug package"
17   python3-dbg test/test_acls.py
18 else
19   echo "Temporary directory '$ADTTMP' doesn't have extended attributes enabled"
20   echo "Skipping the tests :("
21 fi