[Reproducible-builds] [misc] 01/07: test-reproducibility: make sure that required commands are available

Jérémy Bobbio lunar at moszumanska.debian.org
Sun Aug 31 19:09:56 UTC 2014


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository misc.

commit f2f03c7a36d93fbe6395d5b66d0316ca3be5a760
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Sun Aug 31 17:56:18 2014 +0000

    test-reproducibility: make sure that required commands are available
---
 test-reproducibility/test-reproducibility | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/test-reproducibility/test-reproducibility b/test-reproducibility/test-reproducibility
index 7ae345e..6809758 100755
--- a/test-reproducibility/test-reproducibility
+++ b/test-reproducibility/test-reproducibility
@@ -2,7 +2,13 @@
 
 set -e
 
-COMMAND="$@"
+for cmd in faketime proot sudo unshare; do
+	if ! type "$cmd" >/dev/null 2>&1; then
+		echo "$cmd is missing." >&2
+		exit 254
+	fi
+done
+
 NOW="$(date +%s)"
 
 TEST_REPRODUCIBILITY_TMPDIR="$(mktemp -d)"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git



More information about the Reproducible-builds mailing list