File tree 1 file changed +3
-2
lines changed 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 7
7
8
8
BASE_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) /.." && pwd) "
9
9
MANIFEST_PATH=" ${BASE_DIR} /Cargo.toml"
10
+ BUILD_DIR=" ."
10
11
11
12
VERSION=" $1 "
12
13
TARGET=" $2 "
@@ -43,12 +44,12 @@ cross_compile_tests() {
43
44
# ask cargo what test files it generated:
44
45
# https://github.com/rust-lang/cargo/issues/1924
45
46
find_binaries () {
46
- target_base_dir=" target /${TARGET} /debug"
47
+ target_base_dir=" ${BUILD_DIR} /${TARGET} /debug"
47
48
48
49
# find [[test]] sections and print the first line and
49
50
# hack it to what we want from there. Also "nix" for
50
51
# tests that are implicitly prsent
51
- for test_base in $( awk ' /\[\[test\]\]/{getline; print}' Cargo.toml | \
52
+ for test_base in $( awk ' /\[\[test\]\]/{getline; print}' " ${MANIFEST_PATH} " | \
52
53
cut -d ' =' -f2 | \
53
54
tr -d ' "' | \
54
55
tr ' -' ' _' | \
You can’t perform that action at this time.
0 commit comments