From: Ben Gras Date: Wed, 3 Feb 2010 14:18:25 +0000 (+0000) Subject: check for perl, don't assume Run is executable. X-Git-Tag: v3.1.6~7 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=a008951e02a6f39b84cc651555c1a3d2f92f0764;p=minix.git check for perl, don't assume Run is executable. --- diff --git a/test/benchmarks/unixbench-5.1.2/run.sh b/test/benchmarks/unixbench-5.1.2/run.sh index 2259753bf..4c3b4219b 100755 --- a/test/benchmarks/unixbench-5.1.2/run.sh +++ b/test/benchmarks/unixbench-5.1.2/run.sh @@ -1,4 +1,8 @@ #!/bin/sh export CC=cc export MINIX=1 -./Run +if perl -e 'exit 0' +then perl -w Run +else echo "perl not installed. please install perl to run unixbench." >&2 + exit 1 +fi