#!/bin/sh # PCP QA Test No. 994 # Try to check permissions of package artifacts. # # See src/mkpermslist and src/permslist. # # Copyright (c) 2013 Ken McDonell. All Rights Reserved. # seq=`basename $0` echo "QA output created by $seq" # get standard environment, filters and checks . ./common.product . ./common.filter . ./common.check status=0 # success is the default! $sudo rm -rf $tmp.* $seq.full trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15 if [ ! -f src/permslist ] then echo "Arrgh .. src/permslist is missing. Need to" echo " $ cd src; ./mkpermslist" echo "in a git tree containg the PCP source and then try again." status=1 exit fi # real QA test starts here # permslist format ... # src/pmdas/mmv/GNUmakefile|1777|root|root|/var/tmp/mmv # but also need to expand PCP env vars we expect to find sed -e 's/ /\\ /g' -e 's/|/ /g'