Rust: Integrate cargo test into cmake
@@ -29,6 +29,10 @@ if (CARGO_EXECUTABLE)
ALL
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/elektra-sys/target/release/libelektra_sys.rlib")
+ add_test (NAME test_cargo_elektra_sys
+ COMMAND ${CARGO_EXECUTABLE} test
+ WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/elektra-sys")
+
else ()
exclude_binding (rust,
"cargo not found")
