]> git.proxmox.com Git - mirror_libseccomp.git/commitdiff
tests: add support for $LIBSECCOMP_TSTCFG_STRESSCNT
authorPaul Moore <paul@paul-moore.com>
Thu, 16 Feb 2017 15:23:42 +0000 (10:23 -0500)
committerPaul Moore <paul@paul-moore.com>
Thu, 16 Feb 2017 20:57:36 +0000 (15:57 -0500)
Allow the fuzz tests to be configured via the
LIBSECCOMP_TSTCFG_STRESSCNT environment variable.

Signed-off-by: Paul Moore <paul@paul-moore.com>
tests/regression

index b2eb5ad6ff3718a0362993871ef9deb8fd80086b..48bd3d06801b09bacd6d2b40b08f547209742b8b 100755 (executable)
@@ -281,6 +281,10 @@ function run_test_bpf_sim_fuzz() {
        local testname=${line[0]}
        local stress_count=${line[1]}
 
+       # check for stress count configuration via environment variables
+       [[ -n $LIBSECCOMP_TSTCFG_STRESSCNT ]] && \
+               stress_count=$LIBSECCOMP_TSTCFG_STRESSCNT
+
        for i in $(get_seq 1 $stress_count); do
                local sys=$(generate_random_data)
                local -a arg=($(generate_random_data) $(generate_random_data) \