1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00

fix integration tests

This commit is contained in:
dark64 2021-09-26 16:52:51 +02:00
parent a514f400ae
commit 11d9dd939b

View file

@ -410,14 +410,14 @@ mod integration {
for p in glob("./examples/book/rng_tutorial/*").expect("Failed to read glob pattern") {
let path = p.unwrap();
std::fs::copy(path.clone(), tmp_base.join(path.file_name().unwrap())).unwrap();
std::fs::hard_link(path.clone(), tmp_base.join(path.file_name().unwrap())).unwrap();
}
let stdlib = std::fs::canonicalize("../zokrates_stdlib/stdlib").unwrap();
assert_cli::Assert::command(&[
"./test.sh",
env!("CARGO_BIN_EXE_zokrates"),
"../target/release/zokrates",
stdlib.to_str().unwrap(),
])
.current_dir(tmp_base)
@ -433,14 +433,14 @@ mod integration {
for p in glob("./examples/book/sha256_tutorial/*").expect("Failed to read glob pattern") {
let path = p.unwrap();
std::fs::copy(path.clone(), tmp_base.join(path.file_name().unwrap())).unwrap();
std::fs::hard_link(path.clone(), tmp_base.join(path.file_name().unwrap())).unwrap();
}
let stdlib = std::fs::canonicalize("../zokrates_stdlib/stdlib").unwrap();
assert_cli::Assert::command(&[
"./test.sh",
env!("CARGO_BIN_EXE_zokrates"),
"../target/release/zokrates",
stdlib.to_str().unwrap(),
])
.current_dir(tmp_base)