diff options
-rwxr-xr-x | tests/paxmodule/paxmodtest.sh | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/paxmodule/paxmodtest.sh b/tests/paxmodule/paxmodtest.sh index 074de6c..b820d5e 100755 --- a/tests/paxmodule/paxmodtest.sh +++ b/tests/paxmodule/paxmodtest.sh @@ -51,6 +51,44 @@ for pf in "p" "P" "-"; do done done +for pf in "p" "P" "-"; do + for ef in "e" "E" "-"; do + for mf in "m" "M" "-"; do + for rf in "r" "R" "-"; do + for sf in "s" "S" "-"; do + + pflags="${pf}${ef}${mf}${rf}${sf}" + if [ "${verbose}" != 0 ] ;then + echo "SET TO :" ${pflags} + fi + + flags="${pf/-/Pp}${ef/-/Ee}${mf/-/Mm}${rf/-/Rr}${sf/-/Ss}" + ${PYPAXCTL} -s "${flags}" ${TESTFILE} >/dev/null 2>&1 + + sflags=$(${PAXCTLNG} -v ${TESTFILE}) + sflags=$(echo ${sflags} | awk '{print $3}') + + if [ "${verbose}" != 0 ] ;then + echo "GOT :" ${sflags} + fi + + if [ "${pflags}" != "${sflags}" ]; then + (( count = count + 1 )) + if [ "${verbose}" != 0 ] ;then + echo "Mismatch: ${pflags} ${sflags}" + fi + fi + + if [ "${verbose}" != 0 ] ;then + echo + fi + + done + done + done + done +done + echo " Mismatches = ${count}" echo echo "================================================================================" |