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