Build all of the fuzzer variants

This commit is contained in:
Thomas Goyne 2016-03-28 13:15:00 -07:00
parent 510c049855
commit 45705b18d2
6 changed files with 32 additions and 6 deletions

View File

@ -1,5 +1,13 @@
add_executable(fuzzer macro(build_fuzzer_variant variant)
command_file.hpp add_executable(${variant} command_file.hpp command_file.cpp ${variant}.cpp)
command_file.cpp target_link_libraries(${variant} realm-object-store)
fuzzer.cpp) set_target_properties(${variant} PROPERTIES
target_link_libraries(fuzzer realm-object-store) EXCLUDE_FROM_ALL 1
EXCLUDE_FROM_DEFAULT_BUILD 1)
endmacro()
build_fuzzer_variant(fuzzer)
build_fuzzer_variant(fuzz-sorted-query)
build_fuzzer_variant(fuzz-unsorted-query)
build_fuzzer_variant(fuzz-sorted-linkview)
build_fuzzer_variant(fuzz-unsorted-linkview)

View File

@ -0,0 +1,3 @@
#define FUZZ_SORTED 1
#define FUZZ_LINKVIEW 1
#include "fuzzer.cpp"

View File

@ -0,0 +1,3 @@
#define FUZZ_SORTED 1
#define FUZZ_LINKVIEW 0
#include "fuzzer.cpp"

View File

@ -0,0 +1,3 @@
#define FUZZ_SORTED 0
#define FUZZ_LINKVIEW 1
#include "fuzzer.cpp"

View File

@ -0,0 +1,3 @@
#define FUZZ_SORTED 0
#define FUZZ_LINKVIEW 0
#include "fuzzer.cpp"

View File

@ -20,8 +20,14 @@
using namespace realm; using namespace realm;
#ifndef FUZZ_SORTED
#define FUZZ_SORTED 0 #define FUZZ_SORTED 0
#define FUZZ_LINKVIEW 1 #endif
#ifndef FUZZ_LINKVIEW
#define FUZZ_LINKVIEW 0
#endif
#define FUZZ_LOG 0 #define FUZZ_LOG 0
// Read from a fd until eof into a string // Read from a fd until eof into a string