mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 16:35:02 +01:00
error out on failing libapparmor test_multi tests
This patch adds a check-local target to libapparmor/testsuite/Makefile.am that checks the logfile generated by the test_multi tests (libaalogparse.log) and errors out if - the logfile doesn't exist (which might mean that dejagnu isn't installed - the logfile contains 'ERROR' This isn't the best solution I can imagine, but it's the only/easiest way I found that doesn't need changing of autogenerated files. Also extend clean-local to delete libaalogparse.{log,sum} Finally, add test_multi/testcase_syslog_read.err (empty file) to avoid make check fails. Acked-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
parent
d2dc08e78c
commit
7334048e5e
2 changed files with 5 additions and 0 deletions
|
@ -15,5 +15,10 @@ test_multi_multi_LDADD = -L../src/.libs -lapparmor
|
|||
|
||||
clean-local:
|
||||
rm -rf tmp.err.* tmp.out.* site.exp site.bak test_multi/out
|
||||
rm -f libaalogparse.log libaalogparse.sum
|
||||
|
||||
check-local:
|
||||
if ! test -f libaalogparse.log ; then echo '*** libaalogparse.log not found - is dejagnu installed? ***'; exit 1; fi
|
||||
if grep ERROR libaalogparse.log ; then exit 1 ; fi
|
||||
|
||||
EXTRA_DIST = test_multi/*.in test_multi/*.out test_multi/*.err
|
||||
|
|
Loading…
Add table
Reference in a new issue