commit 05318df6523d79d06c245ba86c817626117b4288 from: Sergey Bronnikov date: Fri Nov 24 15:40:15 2017 UTC removed test with zzuf zzuf is a dump fuzzer, it will be replaced by afl soon commit - c10cbd7f64526383246f56200e9ca1ead53c3300 commit + 05318df6523d79d06c245ba86c817626117b4288 blob - 6039975decf059202dac487a7ada28daeec07c52 (mode 644) blob + /dev/null --- tests/pytest/test_config.py +++ /dev/null @@ -1,34 +0,0 @@ -import pytest -import subprocess - -# PKG_REQUIRED = zzuf -ZZUF_OPT = "-s0:100 -r0.01" -NUMBER = 20 - -config = {'smtpd': '/etc/mail/smtpd.conf', - 'ntpd': '/etc/ntpd.conf', - 'ldapd': '/etc/ldapd.conf', - 'dhcpd': '/etc/dhcpd.conf', - 'npppd': '/etc/npppd/npppd.conf', - 'iked': '/etc/iked.conf'} - - -def fuzz_config(app): - zzuf_cmd = ['zzuf'] + ZZUF_OPT.split(' ') + [config[app]] - proc = subprocess.Popen(zzuf_cmd) - proc.wait() - assert proc.returncode == 0 - - -def check_config(app): - cmd = [app, '-n', '-f', config[app]] - proc = subprocess.Popen(cmd) - proc.wait() - assert proc.returncode == 0 - - -@pytest.mark.parametrize("app", ['smtpd', 'ntpd', 'ldapd', 'dhcpd', 'npppd', 'iked']) -def test_config(app): - for n in range(NUMBER): - fuzz_config(app) - check_config(app)