aboutsummaryrefslogtreecommitdiffhomepage
path: root/zluda_inject/tests/inject.rs
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2021-11-28 23:51:41 +0100
committerAndrzej Janik <[email protected]>2021-11-28 23:51:41 +0100
commit3558a0a65cc5e6ae4df8ae4c1d95c6003d50af05 (patch)
treed60c5d964b778412c684568e2ca5d307e83fe92a /zluda_inject/tests/inject.rs
parent0104814ac315fe363a451c4ac2fb3b38fca1dca3 (diff)
downloadZLUDA-3558a0a65cc5e6ae4df8ae4c1d95c6003d50af05.tar.gz
ZLUDA-3558a0a65cc5e6ae4df8ae4c1d95c6003d50af05.zip
Add integration tests for injector
Diffstat (limited to 'zluda_inject/tests/inject.rs')
-rw-r--r--zluda_inject/tests/inject.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/zluda_inject/tests/inject.rs b/zluda_inject/tests/inject.rs
new file mode 100644
index 0000000..f63186a
--- /dev/null
+++ b/zluda_inject/tests/inject.rs
@@ -0,0 +1,13 @@
+use std::{env, io, process::Command};
+
+#[test]
+fn direct_cuinit() -> io::Result<()> {
+ let helpers_dir = env!("HELPERS_OUT_DIR");
+ let mut main_exe = Command::new(format!(
+ "{}{}direct_cuinit.exe",
+ helpers_dir,
+ std::path::MAIN_SEPARATOR
+ ));
+ assert!(main_exe.status()?.success());
+ Ok(())
+}