From 9ca7d3e400e6bfdb43169075187508a401d33e6d Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sat, 26 Aug 2017 22:57:07 +0200 Subject: cosmetic: test for osmo-auc-gen: print error for missing binary Change-Id: I98c23ae6378a16cf3b76c90d4ea0dfcf61ff3033 --- tests/osmo-auc-gen/osmo-auc-gen_test.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/osmo-auc-gen') diff --git a/tests/osmo-auc-gen/osmo-auc-gen_test.sh b/tests/osmo-auc-gen/osmo-auc-gen_test.sh index 7842638a..132d9c39 100755 --- a/tests/osmo-auc-gen/osmo-auc-gen_test.sh +++ b/tests/osmo-auc-gen/osmo-auc-gen_test.sh @@ -1,6 +1,12 @@ #!/bin/sh osmo_auc_gen="$1" +if [ -z "$osmo_auc_gen" ]; then + echo 'Error: pass a path to the osmo-auc-gen binary as argument:' + echo ' ./osmo-auc-gen_test.sh /path/to/osmo-auc-gen' + exit 1 +fi + set -e # run the osmo-auc-gen binary verbosely without showing its absolute path -- cgit v1.2.3