]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Add "make check".
authorGuy Harris <[email protected]>
Tue, 6 Mar 2018 03:11:09 +0000 (19:11 -0800)
committerGuy Harris <[email protected]>
Tue, 6 Mar 2018 03:11:09 +0000 (19:11 -0800)
This assumes you can run tests/TESTrun.sh as a script, which means it
assumes your command interpreter will either recognize it as a shell
script and run it in a Bourne-compatible shell or will just try and
execute it and the #! header will cause it to be run by /bin/sh.

This probably won't work on Windows.

CMakeLists.txt

index 8adfef2b6de85af3153f9772189b56c33380341d..6a10295dd53430d16f3369ecfa4a65a8166f75a2 100644 (file)
@@ -1029,3 +1029,10 @@ configure_file(
 
 add_custom_target(uninstall
     COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)
+
+#
+# Tcpdump tests
+#
+add_custom_target(check
+    COMMAND ./TESTrun.sh
+    WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/tests)