Skip to content

Commit 355a85c

Browse files
authored
Merge pull request #97 from nbigaouette-eai/fix-run-valgrind-script-version
Make sure TF version matches in crates' files
2 parents 15a40b0 + a45902c commit 355a85c

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

run-valgrind

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ set -e
1212

1313
cd $(dirname $(readlink -f "$0"))
1414

15-
tensorflow_version=1.1.0
15+
tensorflow_version=1.2.1
1616

1717
valgrind_log=valgrind.log
1818
truncate --size=0 "$valgrind_log"

test-all

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
set -e
44

5+
# Make sure the Tensorflow version in the -sys build script matches the one in
6+
# the run-valgrind script.
7+
version_build_script=`grep "const VERSION" tensorflow-sys/build.rs | sed 's|.*"\([0-9\.]*\)";|\1|g'`
8+
version_run_valgrind=`grep "tensorflow_version=" run-valgrind | sed "s|.*=\(.*\)|\1|g"`
9+
if [[ "${version_build_script}" != "${version_run_valgrind}" ]]; then
10+
echo "ERROR: Tensorflow version specified in build script does not match the one in the"
11+
echo " valgrind run script."
12+
echo " tensorflow-sys/build.rs: ${version_build_script}"
13+
echo " run-valgrind: ${version_run_valgrind}"
14+
exit 1
15+
fi
16+
517
cargo test -vv -j 2 --features tensorflow_unstable
618
cargo run --example regression
719
cargo run --features tensorflow_unstable --example expressions

0 commit comments

Comments
 (0)