From e936829ebbd97ed2e6f8c5f595b414c0982f2e4d Mon Sep 17 00:00:00 2001 From: Paul Dreik Date: Sun, 9 Jun 2019 18:41:02 +0200 Subject: [PATCH] move the fuzzers into the test/ subdirectory --- CMakeLists.txt | 3 ++- {fuzzing => test/fuzzing}/.gitignore | 0 {fuzzing => test/fuzzing}/CMakeLists.txt | 0 {fuzzing => test/fuzzing}/README.md | 0 {fuzzing => test/fuzzing}/build.sh | 2 +- {fuzzing => test/fuzzing}/chrono_duration.cpp | 0 .../crash-fac4815d876741406888d09d39a7a1f7b5b3747d | 0 .../id:000039,sig:06,src:000757,op:flip4,pos:3 | 0 ...ed-from-06482b2d2400247fc68a498f3b75d494a31e1191 | 0 ...ed-from-35a226029aaab8624ad3c9fefa8515227ac7c5cd | Bin ...ed-from-7e98543e5070cb98869b6d73a090dea26042c503 | Bin ...ed-from-80959d333aa694912611dedd59357430057a0387 | Bin ...ed-from-8166484b39aaef77757ec2c94b6f7a94039cdafd | Bin ...ed-from-987478524c704c2dfb7aabbd62b58655a1f2038f | 0 ...ed-from-c394f9f5f407b42fb75e37906c925887e9395bed | 0 {fuzzing => test/fuzzing}/named_arg.cpp | 0 {fuzzing => test/fuzzing}/one_arg.cpp | 0 {fuzzing => test/fuzzing}/sprintf.cpp | 0 {fuzzing => test/fuzzing}/two_args.cpp | 0 19 files changed, 3 insertions(+), 2 deletions(-) rename {fuzzing => test/fuzzing}/.gitignore (100%) rename {fuzzing => test/fuzzing}/CMakeLists.txt (100%) rename {fuzzing => test/fuzzing}/README.md (100%) rename {fuzzing => test/fuzzing}/build.sh (98%) rename {fuzzing => test/fuzzing}/chrono_duration.cpp (100%) rename {fuzzing => test/fuzzing}/crashes/chrono_duration/crash-fac4815d876741406888d09d39a7a1f7b5b3747d (100%) rename {fuzzing => test/fuzzing}/crashes/chrono_duration/id:000039,sig:06,src:000757,op:flip4,pos:3 (100%) rename {fuzzing => test/fuzzing}/crashes/chrono_duration/minimized-from-06482b2d2400247fc68a498f3b75d494a31e1191 (100%) rename {fuzzing => test/fuzzing}/crashes/chrono_duration/minimized-from-35a226029aaab8624ad3c9fefa8515227ac7c5cd (100%) rename {fuzzing => test/fuzzing}/crashes/chrono_duration/minimized-from-7e98543e5070cb98869b6d73a090dea26042c503 (100%) rename {fuzzing => test/fuzzing}/crashes/chrono_duration/minimized-from-80959d333aa694912611dedd59357430057a0387 (100%) rename {fuzzing => test/fuzzing}/crashes/chrono_duration/minimized-from-8166484b39aaef77757ec2c94b6f7a94039cdafd (100%) rename {fuzzing => test/fuzzing}/crashes/chrono_duration/minimized-from-987478524c704c2dfb7aabbd62b58655a1f2038f (100%) rename {fuzzing => test/fuzzing}/crashes/chrono_duration/minimized-from-c394f9f5f407b42fb75e37906c925887e9395bed (100%) rename {fuzzing => test/fuzzing}/named_arg.cpp (100%) rename {fuzzing => test/fuzzing}/one_arg.cpp (100%) rename {fuzzing => test/fuzzing}/sprintf.cpp (100%) rename {fuzzing => test/fuzzing}/two_args.cpp (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0258be6f0ff8..9181c1ac806b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -266,8 +266,9 @@ if (FMT_TEST) add_subdirectory(test) endif () +# control fuzzing independent of the unit tests if (FMT_FUZZ) - add_subdirectory(fuzzing) + add_subdirectory(test/fuzzing) endif () set(gitignore ${PROJECT_SOURCE_DIR}/.gitignore) diff --git a/fuzzing/.gitignore b/test/fuzzing/.gitignore similarity index 100% rename from fuzzing/.gitignore rename to test/fuzzing/.gitignore diff --git a/fuzzing/CMakeLists.txt b/test/fuzzing/CMakeLists.txt similarity index 100% rename from fuzzing/CMakeLists.txt rename to test/fuzzing/CMakeLists.txt diff --git a/fuzzing/README.md b/test/fuzzing/README.md similarity index 100% rename from fuzzing/README.md rename to test/fuzzing/README.md diff --git a/fuzzing/build.sh b/test/fuzzing/build.sh similarity index 98% rename from fuzzing/build.sh rename to test/fuzzing/build.sh index 23fe31804e20..af46f19f6ac4 100755 --- a/fuzzing/build.sh +++ b/test/fuzzing/build.sh @@ -13,7 +13,7 @@ set -e me=$(basename $0) -root=$(readlink -f "$(dirname "$0")/..") +root=$(readlink -f "$(dirname "$0")/../..") echo $me: root=$root diff --git a/fuzzing/chrono_duration.cpp b/test/fuzzing/chrono_duration.cpp similarity index 100% rename from fuzzing/chrono_duration.cpp rename to test/fuzzing/chrono_duration.cpp diff --git a/fuzzing/crashes/chrono_duration/crash-fac4815d876741406888d09d39a7a1f7b5b3747d b/test/fuzzing/crashes/chrono_duration/crash-fac4815d876741406888d09d39a7a1f7b5b3747d similarity index 100% rename from fuzzing/crashes/chrono_duration/crash-fac4815d876741406888d09d39a7a1f7b5b3747d rename to test/fuzzing/crashes/chrono_duration/crash-fac4815d876741406888d09d39a7a1f7b5b3747d diff --git a/fuzzing/crashes/chrono_duration/id:000039,sig:06,src:000757,op:flip4,pos:3 b/test/fuzzing/crashes/chrono_duration/id:000039,sig:06,src:000757,op:flip4,pos:3 similarity index 100% rename from fuzzing/crashes/chrono_duration/id:000039,sig:06,src:000757,op:flip4,pos:3 rename to test/fuzzing/crashes/chrono_duration/id:000039,sig:06,src:000757,op:flip4,pos:3 diff --git a/fuzzing/crashes/chrono_duration/minimized-from-06482b2d2400247fc68a498f3b75d494a31e1191 b/test/fuzzing/crashes/chrono_duration/minimized-from-06482b2d2400247fc68a498f3b75d494a31e1191 similarity index 100% rename from fuzzing/crashes/chrono_duration/minimized-from-06482b2d2400247fc68a498f3b75d494a31e1191 rename to test/fuzzing/crashes/chrono_duration/minimized-from-06482b2d2400247fc68a498f3b75d494a31e1191 diff --git a/fuzzing/crashes/chrono_duration/minimized-from-35a226029aaab8624ad3c9fefa8515227ac7c5cd b/test/fuzzing/crashes/chrono_duration/minimized-from-35a226029aaab8624ad3c9fefa8515227ac7c5cd similarity index 100% rename from fuzzing/crashes/chrono_duration/minimized-from-35a226029aaab8624ad3c9fefa8515227ac7c5cd rename to test/fuzzing/crashes/chrono_duration/minimized-from-35a226029aaab8624ad3c9fefa8515227ac7c5cd diff --git a/fuzzing/crashes/chrono_duration/minimized-from-7e98543e5070cb98869b6d73a090dea26042c503 b/test/fuzzing/crashes/chrono_duration/minimized-from-7e98543e5070cb98869b6d73a090dea26042c503 similarity index 100% rename from fuzzing/crashes/chrono_duration/minimized-from-7e98543e5070cb98869b6d73a090dea26042c503 rename to test/fuzzing/crashes/chrono_duration/minimized-from-7e98543e5070cb98869b6d73a090dea26042c503 diff --git a/fuzzing/crashes/chrono_duration/minimized-from-80959d333aa694912611dedd59357430057a0387 b/test/fuzzing/crashes/chrono_duration/minimized-from-80959d333aa694912611dedd59357430057a0387 similarity index 100% rename from fuzzing/crashes/chrono_duration/minimized-from-80959d333aa694912611dedd59357430057a0387 rename to test/fuzzing/crashes/chrono_duration/minimized-from-80959d333aa694912611dedd59357430057a0387 diff --git a/fuzzing/crashes/chrono_duration/minimized-from-8166484b39aaef77757ec2c94b6f7a94039cdafd b/test/fuzzing/crashes/chrono_duration/minimized-from-8166484b39aaef77757ec2c94b6f7a94039cdafd similarity index 100% rename from fuzzing/crashes/chrono_duration/minimized-from-8166484b39aaef77757ec2c94b6f7a94039cdafd rename to test/fuzzing/crashes/chrono_duration/minimized-from-8166484b39aaef77757ec2c94b6f7a94039cdafd diff --git a/fuzzing/crashes/chrono_duration/minimized-from-987478524c704c2dfb7aabbd62b58655a1f2038f b/test/fuzzing/crashes/chrono_duration/minimized-from-987478524c704c2dfb7aabbd62b58655a1f2038f similarity index 100% rename from fuzzing/crashes/chrono_duration/minimized-from-987478524c704c2dfb7aabbd62b58655a1f2038f rename to test/fuzzing/crashes/chrono_duration/minimized-from-987478524c704c2dfb7aabbd62b58655a1f2038f diff --git a/fuzzing/crashes/chrono_duration/minimized-from-c394f9f5f407b42fb75e37906c925887e9395bed b/test/fuzzing/crashes/chrono_duration/minimized-from-c394f9f5f407b42fb75e37906c925887e9395bed similarity index 100% rename from fuzzing/crashes/chrono_duration/minimized-from-c394f9f5f407b42fb75e37906c925887e9395bed rename to test/fuzzing/crashes/chrono_duration/minimized-from-c394f9f5f407b42fb75e37906c925887e9395bed diff --git a/fuzzing/named_arg.cpp b/test/fuzzing/named_arg.cpp similarity index 100% rename from fuzzing/named_arg.cpp rename to test/fuzzing/named_arg.cpp diff --git a/fuzzing/one_arg.cpp b/test/fuzzing/one_arg.cpp similarity index 100% rename from fuzzing/one_arg.cpp rename to test/fuzzing/one_arg.cpp diff --git a/fuzzing/sprintf.cpp b/test/fuzzing/sprintf.cpp similarity index 100% rename from fuzzing/sprintf.cpp rename to test/fuzzing/sprintf.cpp diff --git a/fuzzing/two_args.cpp b/test/fuzzing/two_args.cpp similarity index 100% rename from fuzzing/two_args.cpp rename to test/fuzzing/two_args.cpp