mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-29 03:51:17 +00:00
This script will check output generated by virtestmock against a white list. All non matching records found are printed out. So far, the white list is rather sparse at the moment. This test should be ran only after all other tests finished, and should cleanup the temporary file before their execution. Because I'm unable to reflect these requirements in Makefile.am correctly, I've introduced new target 'check-access' under which this test is available. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
24 lines
724 B
Plaintext
24 lines
724 B
Plaintext
# This is a whitelist that allows accesses to files not in our
|
|
# build directory nor source directory. The records are in the
|
|
# following format:
|
|
#
|
|
# $path: $progname: $testname
|
|
#
|
|
# All these three are evaluated as perl RE. So to allow /dev/sda
|
|
# and /dev/sdb, you can just '/dev/sd[a-b]', or to allow
|
|
# /proc/$pid/status you can '/proc/\d+/status' and so on.
|
|
# Moreover, $progname and $testname can be empty, in which which
|
|
# case $path is allowed for all tests.
|
|
|
|
/bin/cat: sysinfotest
|
|
/bin/dirname: sysinfotest: x86 sysinfo
|
|
/bin/sleep: commandtest
|
|
/bin/true: commandtest
|
|
/dev/null
|
|
/dev/urandom
|
|
/etc/hosts
|
|
/proc/\d+/status
|
|
|
|
# This is just a dummy example, DO NOT USE IT LIKE THAT!
|
|
.*: nonexistent-test-touching-everything
|