Commit 1be39b85504e6d3c892a31313de3763a55e18dcd

Authored by Loic Dachary
1 parent 3785ed26
Exists in master

tests: fail if gf_methods is not found

If the gf_methods was not found, the test would silently succeed doing
nothing. Check for existence and fail if it is not in the path.

Signed-off-by: Loic Dachary <loic@dachary.org>
Showing 1 changed file with 6 additions and 1 deletions   Show diff stats
Examples/test_all_gfs.sh
1   -#
  1 +#!/bin/bash
2 2 #
3 3 # Copyright (c) 2013, James S. Plank and Kevin Greenan
4 4 # All rights reserved.
... ... @@ -42,6 +42,11 @@ k=12
42 42 m=3
43 43 seed=1370
44 44  
  45 +if ! test -x ${GF_METHODS} ; then
  46 + ${GF_METHODS}
  47 + exit 1
  48 +fi
  49 +
45 50 # Test all w=8
46 51 ${GF_METHODS} 8 -B -L | awk -F: '{ if ($1 == "w=8") print $2; }' |
47 52 while read method; do
... ...