fix integration tests
This commit is contained in:
parent
a514f400ae
commit
11d9dd939b
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue