Skip to content

Commit

Permalink
Fix the reproducible-build test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Aug 27, 2016
1 parent dca01f9 commit e468ede
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/test/run-make/reproducible-build/Makefile
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
-include ../tools.mk
all:
$(RUSTC) reproducible-build-aux.rs
mv libreproducible_build_aux.rlib first.rlib
mv "$(TMPDIR)/libreproducible_build_aux.rlib" "$(TMPDIR)/first.rlib"
$(RUSTC) reproducible-build-aux.rs
cp libreproducible_build_aux.rlib second.rlib
cmp "first.rlib" "second.rlib" || exit 1
cp "$(TMPDIR)/libreproducible_build_aux.rlib" "$(TMPDIR)/second.rlib"
cmp "$(TMPDIR)/first.rlib" "$(TMPDIR)/second.rlib" || exit 1
$(RUSTC) reproducible-build.rs -o"$(TMPDIR)/reproducible-build1"
$(RUSTC) reproducible-build.rs -o"$(TMPDIR)/reproducible-build2"
cmp "$(TMPDIR)/reproducible-build1" "$(TMPDIR)/reproducible-build2" || exit 1
$(RUSTC) reproducible-build-aux.rs -g
mv libreproducible_build_aux.rlib first.rlib
mv "$(TMPDIR)/libreproducible_build_aux.rlib" "$(TMPDIR)/first.rlib"
$(RUSTC) reproducible-build-aux.rs -g
cp libreproducible_build_aux.rlib second.rlib
cp "$(TMPDIR)/libreproducible_build_aux.rlib" "$(TMPDIR)/second.rlib"
cmp "$(TMPDIR)/first.rlib" "$(TMPDIR)/second.rlib" || exit 1
$(RUSTC) reproducible-build.rs -g -o"$(TMPDIR)/reproducible-build1-debug"
$(RUSTC) reproducible-build.rs -g -o"$(TMPDIR)/reproducible-build2-debug"
cmp "$(TMPDIR)/reproducible-build1-debug" "$(TMPDIR)/reproducible-build2-debug" || exit 1
$(RUSTC) reproducible-build-aux.rs -O
mv libreproducible_build_aux.rlib first.rlib
mv "$(TMPDIR)/libreproducible_build_aux.rlib" "$(TMPDIR)/first.rlib"
$(RUSTC) reproducible-build-aux.rs -O
cp libreproducible_build_aux.rlib second.rlib
cp "$(TMPDIR)/libreproducible_build_aux.rlib" "$(TMPDIR)/second.rlib"
cmp "$(TMPDIR)/first.rlib" "$(TMPDIR)/second.rlib" || exit 1
$(RUSTC) reproducible-build.rs -O -o"$(TMPDIR)/reproducible-build1-opt"
$(RUSTC) reproducible-build.rs -O -o"$(TMPDIR)/reproducible-build2-opt"
cmp "$(TMPDIR)/reproducible-build1-opt" "$(TMPDIR)/reproducible-build2-opt" || exit 1

0 comments on commit e468ede

Please sign in to comment.