- Timestamp:
- Sep 6, 2007, 9:18:50 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/testrun_1.sh
r68 r122 311 311 file=${BASE}/a/a/a/z 312 312 dir=${BASE}/b 313 [Misc] 314 IgnoreMissing=${BASE}/a/[[:alnum:]]+/[[:alnum:]]+\$ 315 IgnoreAdded=${BASE}/a/(b|c)/[[:alnum:]]+\$ 313 316 " 314 317 … … 321 324 chmod 0555 "${BASE}/a" # bad 322 325 chmod 0555 "${BASE}/b" # ok 326 327 rm "${BASE}/a/c/z" 328 touch "${BASE}/a/c/zz2" 323 329 } 324 330 … … 326 332 chk_testdata_7 () { 327 333 tmp=`grep CRIT $LOGFILE | wc -l` 328 if [ $tmp -ne 3 ]; then 329 [ -z "$verbose" ] || log_msg_fail "policy count"; 334 if [ $tmp -ne 4 ]; then 335 [ -z "$verbose" ] || log_msg_fail "policy count"; 336 return 1 337 fi 338 egrep "ERROR.*POLICY MISSING.*${BASE}/a/c/z" $LOGFILE >/dev/null 2>&1 339 if [ $? -eq 0 ]; then 340 [ -z "$verbose" ] || log_msg_fail "${BASE}/a/c/z"; 341 return 1 342 fi 343 egrep "CRIT.*POLICY ADDED.*${BASE}/a/c/zz2" $LOGFILE >/dev/null 2>&1 344 if [ $? -eq 0 ]; then 345 [ -z "$verbose" ] || log_msg_fail "${BASE}/a/c/zz2"; 330 346 return 1 331 347 fi
Note:
See TracChangeset
for help on using the changeset viewer.