projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tests: include json script shunit2 based testing
[project/libubox.git]
/
tests
/
shunit2
/
CMakeLists.txt
diff --git a/tests/shunit2/CMakeLists.txt
b/tests/shunit2/CMakeLists.txt
new file mode 100644
(file)
index 0000000..
74c2134
--- /dev/null
+++ b/
tests/shunit2/CMakeLists.txt
@@ -0,0
+1,7
@@
+ADD_TEST(
+ NAME shunit2
+ COMMAND tests.sh
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+)
+
+SET_PROPERTY(TEST shunit2 APPEND PROPERTY ENVIRONMENT "TEST_JSON_SCRIPT=$<TARGET_FILE:test-json-script>")