changeset 21130:9d7619605e5e

* glpk.m: Make tests conditional on HAVE_GLPK.
author John W. Eaton <jwe@octave.org>
date Thu, 21 Jan 2016 18:12:34 -0500
parents 228b65504557
children 54527108599a
files scripts/optimization/glpk.m
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/optimization/glpk.m	Thu Jan 21 12:54:17 2016 -0800
+++ b/scripts/optimization/glpk.m	Thu Jan 21 18:12:34 2016 -0500
@@ -599,7 +599,7 @@
 endfunction
 
 
-%!test
+%!testif HAVE_GLPK
 %! sense = -1;
 %! c = [10, 6, 4]';
 %! A = [1, 1, 1; 10, 4, 5; 2, 2, 6];
@@ -617,7 +617,7 @@
 %!   assert (A(i,:) * xmin <= b(i))
 %! endfor
 
-%!test
+%!testif HAVE_GLPK
 %! sense = 1;
 %! c = [-1, -1]';
 %! A = [-2, 5; 2, -2];
@@ -635,7 +635,7 @@
 %! endfor
 
 
-%!test
+%!testif HAVE_GLPK
 %! sense = 1;
 %! c = [0, 0, 0, -1, -1]';
 %! A = [-2, 0, 0, 1, 0; 0, 1, 0, 0, 2; 0, 0, 1, 3, 2];