diff options
author | Paul Moore <paul@paul-moore.com> | 2017-02-16 10:23:42 -0500 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2017-02-16 15:57:36 -0500 |
commit | 5364bacf18b73a8a1c4d2d89b8bf50f752d53210 (patch) | |
tree | 016f4da709f33d2747e0309306f7bbc97f47ce92 | |
parent | a90977cd9f17646280848fd2da748539f61570e1 (diff) | |
download | libseccomp-5364bacf18b73a8a1c4d2d89b8bf50f752d53210.tar.gz |
tests: add support for $LIBSECCOMP_TSTCFG_STRESSCNT
Allow the fuzz tests to be configured via the
LIBSECCOMP_TSTCFG_STRESSCNT environment variable.
Signed-off-by: Paul Moore <paul@paul-moore.com>
-rwxr-xr-x | tests/regression | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/regression b/tests/regression index b2eb5ad..48bd3d0 100755 --- a/tests/regression +++ b/tests/regression @@ -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) \ |