From 1be39b85504e6d3c892a31313de3763a55e18dcd Mon Sep 17 00:00:00 2001
From: Loic Dachary <ldachary@redhat.com>
Date: Mon, 15 Dec 2014 12:29:51 +0100
Subject: [PATCH] tests: fail if gf_methods is not found

---
 Examples/test_all_gfs.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/Examples/test_all_gfs.sh b/Examples/test_all_gfs.sh
index a03ee9c..b78dd6b 100755
--- a/Examples/test_all_gfs.sh
+++ b/Examples/test_all_gfs.sh
@@ -1,4 +1,4 @@
-#
+#!/bin/bash
 #
 # Copyright (c) 2013, James S. Plank and Kevin Greenan
 # All rights reserved.
@@ -42,6 +42,11 @@ k=12
 m=3
 seed=1370
 
+if ! test -x ${GF_METHODS} ; then
+    ${GF_METHODS}
+    exit 1
+fi
+
 # Test all w=8
 ${GF_METHODS} 8 -B -L | awk -F: '{ if ($1 == "w=8") print $2; }' |
 while read method; do
--
libgit2 0.21.2

