Add first tests
Change-Id: I8ddf4ab2a912ecf4d042049e00c8adfef7599a89
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3e5bccc..205319b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -29,3 +29,11 @@
target_link_libraries(${myname} ${COLLOCATORDB} ${ROCKSDB} ${ADDITIONAL_LIBS})
endif ()
endforeach (mysourcefile ${APP_SOURCES})
+
+enable_testing()
+find_program(BASH_PROGRAM bash)
+if (BASH_PROGRAM)
+ add_test(type-3-test ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/tests/test-type-3.sh)
+else ()
+ message(SEND_ERROR "Cannot find bash, needed for testing")
+endif ()