fuzz: unify the "fuzz-regressions" directory with the main corpus
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 7 Jul 2018 16:09:21 +0000 (18:09 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 2 Oct 2018 07:41:25 +0000 (09:41 +0200)
There isn't really much need to keep them separate. Anything which is a good
corpus entry can be used as a smoke test, and anything which which is a
regression test can just as well be inserted into the corpus.

The only functional difference from this patch (apart from different paths in
output) is that the regression tests are now zipped together with the rest of
the corpus.

$ meson configure build -Dslow-tests=true && ninja -C build test
...
307/325 fuzz-dns-packet:issue-7888:address      OK       0.06 s
308/325 fuzz-dns-packet:oss-fuzz-5465:address   OK       0.04 s
309/325 fuzz-journal-remote:crash-5a8f03d4c3a46fcded39527084f437e8e4b54b76:address  OK       0.07 s
310/325 fuzz-journal-remote:crash-96dee870ea66d03e89ac321eee28ea63a9b9aa45:address  OK       0.05 s
311/325 fuzz-journal-remote:oss-fuzz-8659:address  OK       0.05 s
312/325 fuzz-journal-remote:oss-fuzz-8686:address  OK       0.07 s
313/325 fuzz-unit-file:oss-fuzz-6884:address    OK       0.06 s
314/325 fuzz-unit-file:oss-fuzz-6885:address    OK       0.05 s
315/325 fuzz-unit-file:oss-fuzz-6886:address    OK       0.05 s
316/325 fuzz-unit-file:oss-fuzz-6892:address    OK       0.05 s
317/325 fuzz-unit-file:oss-fuzz-6897:address    OK       0.05 s
318/325 fuzz-unit-file:oss-fuzz-6897-evverx:address  OK       0.06 s
319/325 fuzz-unit-file:oss-fuzz-6908:address    OK       0.07 s
320/325 fuzz-unit-file:oss-fuzz-6917:address    OK       0.07 s
321/325 fuzz-unit-file:oss-fuzz-6977:address    OK       0.13 s
322/325 fuzz-unit-file:oss-fuzz-6977-unminimized:address  OK       0.12 s
323/325 fuzz-unit-file:oss-fuzz-7004:address    OK       0.05 s
324/325 fuzz-unit-file:oss-fuzz-8064:address    OK       0.05 s
325/325 fuzz-unit-file:oss-fuzz-8827:address    OK       0.52 s

32 files changed:
meson.build
test/fuzz-regressions/.gitattributes [deleted file]
test/fuzz/fuzz-dhcp6-client/crash-4003c06fce43a11fbd22f02584df2807ac333eae [moved from test/fuzz-regressions/fuzz-dhcp6-client/crash-4003c06fce43a11fbd22f02584df2807ac333eae with 100% similarity]
test/fuzz/fuzz-dhcp6-client/crash-6e88fcb6b85c9436bcbe05219aa8e550194645ef [moved from test/fuzz-regressions/fuzz-dhcp6-client/crash-6e88fcb6b85c9436bcbe05219aa8e550194645ef with 100% similarity]
test/fuzz/fuzz-dns-packet/issue-7888 [moved from test/fuzz-regressions/fuzz-dns-packet/issue-7888 with 100% similarity]
test/fuzz/fuzz-dns-packet/oss-fuzz-5465 [moved from test/fuzz-regressions/fuzz-dns-packet/oss-fuzz-5465 with 100% similarity]
test/fuzz/fuzz-journal-remote/crash-5a8f03d4c3a46fcded39527084f437e8e4b54b76 [moved from test/fuzz-regressions/fuzz-journal-remote/crash-5a8f03d4c3a46fcded39527084f437e8e4b54b76 with 100% similarity]
test/fuzz/fuzz-journal-remote/crash-96dee870ea66d03e89ac321eee28ea63a9b9aa45 [moved from test/fuzz-regressions/fuzz-journal-remote/crash-96dee870ea66d03e89ac321eee28ea63a9b9aa45 with 100% similarity]
test/fuzz/fuzz-journal-remote/oss-fuzz-8659 [moved from test/fuzz-regressions/fuzz-journal-remote/oss-fuzz-8659 with 100% similarity]
test/fuzz/fuzz-journal-remote/oss-fuzz-8686 [moved from test/fuzz-regressions/fuzz-journal-remote/oss-fuzz-8686 with 100% similarity]
test/fuzz/fuzz-journald-syslog/github-9795 [moved from test/fuzz-regressions/fuzz-journald-syslog/github-9795 with 100% similarity]
test/fuzz/fuzz-journald-syslog/github-9820 [moved from test/fuzz-regressions/fuzz-journald-syslog/github-9820 with 100% similarity]
test/fuzz/fuzz-journald-syslog/github-9827 [moved from test/fuzz-regressions/fuzz-journald-syslog/github-9827 with 100% similarity]
test/fuzz/fuzz-journald-syslog/github-9829 [moved from test/fuzz-regressions/fuzz-journald-syslog/github-9829 with 100% similarity]
test/fuzz/fuzz-ndisc-rs/timeout-2815b773c712fa33bea62f541dfa3017c64ea2f1 [moved from test/fuzz-regressions/fuzz-ndisc-rs/timeout-2815b773c712fa33bea62f541dfa3017c64ea2f1 with 100% similarity]
test/fuzz/fuzz-ndisc-rs/timeout-61fff7fd1e5dcc07e1b656baab29065ce634ad5b [moved from test/fuzz-regressions/fuzz-ndisc-rs/timeout-61fff7fd1e5dcc07e1b656baab29065ce634ad5b with 100% similarity]
test/fuzz/fuzz-unit-file/oss-fuzz-10007 [moved from test/fuzz-regressions/fuzz-unit-file/oss-fuzz-10007 with 100% similarity]
test/fuzz/fuzz-unit-file/oss-fuzz-6884 [moved from test/fuzz-regressions/fuzz-unit-file/oss-fuzz-6884 with 100% similarity]
test/fuzz/fuzz-unit-file/oss-fuzz-6885 [moved from test/fuzz-regressions/fuzz-unit-file/oss-fuzz-6885 with 100% similarity]
test/fuzz/fuzz-unit-file/oss-fuzz-6886 [moved from test/fuzz-regressions/fuzz-unit-file/oss-fuzz-6886 with 100% similarity]
test/fuzz/fuzz-unit-file/oss-fuzz-6892 [moved from test/fuzz-regressions/fuzz-unit-file/oss-fuzz-6892 with 100% similarity]
test/fuzz/fuzz-unit-file/oss-fuzz-6897 [moved from test/fuzz-regressions/fuzz-unit-file/oss-fuzz-6897 with 100% similarity]
test/fuzz/fuzz-unit-file/oss-fuzz-6897-evverx [moved from test/fuzz-regressions/fuzz-unit-file/oss-fuzz-6897-evverx with 100% similarity]
test/fuzz/fuzz-unit-file/oss-fuzz-6908 [moved from test/fuzz-regressions/fuzz-unit-file/oss-fuzz-6908 with 100% similarity]
test/fuzz/fuzz-unit-file/oss-fuzz-6917 [moved from test/fuzz-regressions/fuzz-unit-file/oss-fuzz-6917 with 100% similarity]
test/fuzz/fuzz-unit-file/oss-fuzz-6977 [moved from test/fuzz-regressions/fuzz-unit-file/oss-fuzz-6977 with 100% similarity]
test/fuzz/fuzz-unit-file/oss-fuzz-6977-unminimized [moved from test/fuzz-regressions/fuzz-unit-file/oss-fuzz-6977-unminimized with 100% similarity]
test/fuzz/fuzz-unit-file/oss-fuzz-7004 [moved from test/fuzz-regressions/fuzz-unit-file/oss-fuzz-7004 with 100% similarity]
test/fuzz/fuzz-unit-file/oss-fuzz-8064 [moved from test/fuzz-regressions/fuzz-unit-file/oss-fuzz-8064 with 100% similarity]
test/fuzz/fuzz-unit-file/oss-fuzz-8827 [moved from test/fuzz-regressions/fuzz-unit-file/oss-fuzz-8827 with 100% similarity]
test/fuzz/meson.build [moved from test/fuzz-regressions/meson.build with 100% similarity]
test/meson.build

index c29f622..31d73aa 100644 (file)
@@ -2847,9 +2847,7 @@ foreach tuple : sanitizers
                                 test('@0@:@1@:@2@'.format(b, c, sanitizer),
                                      env,
                                      args : [exe.full_path(),
-                                             join_paths(meson.source_root(),
-                                                        'test/fuzz-regressions',
-                                                        p)])
+                                             join_paths(meson.source_root(), 'test/fuzz', p)])
                         endif
                 endforeach
         endif
diff --git a/test/fuzz-regressions/.gitattributes b/test/fuzz-regressions/.gitattributes
deleted file mode 100644 (file)
index 7b1b3e1..0000000
+++ /dev/null
@@ -1 +0,0 @@
-/*/*       -whitespace
index 9750ff2..37034fc 100644 (file)
@@ -256,4 +256,4 @@ if conf.get('ENABLE_HWDB') == 1
         endif
 endif
 
-subdir('fuzz-regressions')
+subdir('fuzz')