aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2023-01-07 18:57:48 +0000
committerBen Harris <bjh21@bjh21.me.uk>2023-01-12 22:21:34 +0000
commit53a1faa0d758c86c5bc77808c4265129d627be1b (patch)
tree20a4abd70ad18ddbb188ea4a0c333ff268779ecd /CMakeLists.txt
parent9478efe32ea5aa6577d11fe45df81b49199780cd (diff)
downloadpuzzles-53a1faa0d758c86c5bc77808c4265129d627be1b.zip
puzzles-53a1faa0d758c86c5bc77808c4265129d627be1b.tar.gz
puzzles-53a1faa0d758c86c5bc77808c4265129d627be1b.tar.bz2
puzzles-53a1faa0d758c86c5bc77808c4265129d627be1b.tar.xz
Add a fuzzing harness for Puzzles
This just feeds save files into the loading code, but because of how Puzzles is structured that actually exercises most of its parsers.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9e8d96f..5e7992c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -275,4 +275,9 @@ cliprogram(penrose-vector-test penrose.c COMPILE_DEFINITIONS TEST_VECTORS)
cliprogram(sort-test sort.c COMPILE_DEFINITIONS SORT_TEST)
cliprogram(tree234-test tree234.c COMPILE_DEFINITIONS TEST)
+write_generated_games_header()
+cliprogram(fuzzpuzz fuzzpuzz.c list.c ${puzzle_sources}
+ COMPILE_DEFINITIONS COMBINED)
+target_include_directories(fuzzpuzz PRIVATE ${generated_include_dir})
+
build_extras()