diff options
author | Tyler Hicks <tyhicks@canonical.com> | 2017-10-18 06:16:56 +0000 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2017-11-01 12:50:19 -0400 |
commit | 8f37ea87b2dd291be7a6561f32474561519df1e7 (patch) | |
tree | 8286c750a517d36492e479027defb131e4ccde4b /tests/regression | |
parent | 3b22b153c70ef00044fb309d9a9fecc12b777e98 (diff) | |
download | libseccomp-8f37ea87b2dd291be7a6561f32474561519df1e7.tar.gz |
tests: test suite infrastructure changes for SCMP_ACT_LOG
The basics needed to handle tests that use the new SCMP_ACT_LOG
action.
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tests/regression')
-rwxr-xr-x | tests/regression | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/regression b/tests/regression index 1e799f7..2a7a502 100755 --- a/tests/regression +++ b/tests/regression @@ -729,6 +729,7 @@ function run_test_live() { rc_trap=161 rc_trace=162 rc_errno=163 + rc_log=164 ;; mips|mipsel|mips64|mips64n32|mipsel64|mipsel64n32) rc_kill=140 @@ -736,6 +737,7 @@ function run_test_live() { rc_trap=161 rc_trace=162 rc_errno=163 + rc_log=164 ;; *) print_result $testnumstr "ERROR" "arch $arch not supported" @@ -760,6 +762,9 @@ function run_test_live() { elif [[ $line_act == "ERRNO" && $rc -eq $rc_errno ]]; then print_result $1 "SUCCESS" "" stats_success=$(($stats_success+1)) + elif [[ $line_act == "LOG" && $rc -eq $rc_log ]]; then + print_result $1 "SUCCESS" "" + stats_success=$(($stats_success+1)) else print_result $1 "FAILURE" "$line_test rc=$rc" stats_failure=$(($stats_failure+1)) |