]> git-server-git.apps.pok.os.sepia.ceph.com Git - jerasure.git/commitdiff
allow override of GF-Complete directory in test_all_gfs.sh
authorLoic Dachary <loic@dachary.org>
Sat, 29 Mar 2014 08:29:34 +0000 (09:29 +0100)
committerLoic Dachary <loic@dachary.org>
Sat, 29 Mar 2014 08:29:34 +0000 (09:29 +0100)
And document how to run it in the README

Signed-off-by: Loic Dachary <loic@dachary.org>
Examples/test_all_gfs.sh
README

index 03e5e9b49d95f8f0c0fdae3d642414f1f7610ae8..a9268c1d93fbddc3c2f900b4e445ae6adb1c825a 100755 (executable)
@@ -37,8 +37,7 @@
 # WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 # POSSIBILITY OF SUCH DAMAGE.
 #
-GF_COMPLETE_DIR=/usr/local/bin
-GF_METHODS=${GF_COMPLETE_DIR}/gf_methods
+GF_METHODS=${GF_COMPLETE_DIR:-/usr/local/bin}/gf_methods
 k=12
 m=3
 seed=1370
diff --git a/README b/README
index 3ba2c97d29b78b56ebff5092ab5191f53b4621bb..f48b3dc6932af8e528a29a62076597fe5b58e708 100644 (file)
--- a/README
+++ b/README
@@ -70,3 +70,17 @@ determine the default field to use, if one is not specified.
 
 If you would like to explore a using a different Galois Field implementation,
 please see the manual.
+
+------------------------------------------------------------
+
+Testing GF-Complete
+
+If the GF-Complete tools are installed in /usr/local/bin
+
+cd Examples
+./test_all_gfs.sh 
+
+If the GF-Complete tools are installed elsewhere
+
+cd Examples
+GF_COMPLETE_DIR=../../gf-complete/tools ./test_all_gfs.sh