aboutsummaryrefslogtreecommitdiff
path: root/src/vdf/tests/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/vdf/tests/CMakeLists.txt')
-rw-r--r--src/vdf/tests/CMakeLists.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/vdf/tests/CMakeLists.txt b/src/vdf/tests/CMakeLists.txt
new file mode 100644
index 0000000..c055c64
--- /dev/null
+++ b/src/vdf/tests/CMakeLists.txt
@@ -0,0 +1,22 @@
+
+add_executable(vdf_reparse reparse.c)
+target_link_libraries(vdf_reparse vdf)
+
+add_test(NAME vdf_reparse_run
+ COMMAND
+ vdf_reparse ${CMAKE_CURRENT_SOURCE_DIR}/files/registry.vdf reparsed_registry.vdf
+ )
+
+add_test(NAME vdf_reparse_compare
+ COMMAND
+ ${CMAKE_COMMAND} -E compare_files --ignore-eol ${CMAKE_CURRENT_SOURCE_DIR}/files/registry.vdf reparsed_registry.vdf
+ )
+
+add_executable(vdf_index index.c)
+target_link_libraries(vdf_index vdf)
+
+add_test(NAME vdf_index_test
+ COMMAND
+ vdf_index ${CMAKE_CURRENT_SOURCE_DIR}/files/registry.vdf HKCU Software Valve Steam steamglobal language
+ )
+