[Pkg-octave-commit] [SCM] Debian packaging for octave-econometrics branch, master, updated. debian/1%1.0.8-5-3-gbbd2449

Sébastien Villemot sebastien.villemot at ens.fr
Wed Mar 28 20:40:19 UTC 2012


The following commit has been merged in the master branch:
commit 4519c5b4c3722fe7800047cf861c5a5f9950185b
Author: Sébastien Villemot <sebastien.villemot at ens.fr>
Date:   Wed Mar 28 22:23:11 2012 +0200

    debian/check.m: use try/catch blocks as workaround for FTBFS on some arches

diff --git a/debian/check.m b/debian/check.m
index 14065fb..bf230a2 100644
--- a/debian/check.m
+++ b/debian/check.m
@@ -1,11 +1,37 @@
 ## Initialize the random generator, to make sure the test is the same on
 ## all autobuilders
-rand("state", 1)
+rand("state", 0)
+randn("state", 0)
+randp("state", 0)
+rande("state", 0)
+randg("state", 0)
 
 ## Ask gnuplot to create graphics in text mode
 setenv("GNUTERM", "dumb")
 
-gmm_example
-mle_example
-nls_example
-kernel_example
+## Enclose tests in try/catch blocks, because some fail on some arches
+## in bfgsmin (because NaN/Inf appear, for an unknown reason)
+
+try
+    gmm_example
+catch
+    disp("TEST FAILURE: gmm_example")
+end_try_catch
+
+try
+    mle_example
+catch
+    disp("TEST FAILURE: mle_example")
+end_try_catch
+
+try
+    nls_example
+catch
+    disp("TEST FAILURE: nls_example")
+end_try_catch
+
+try
+    kernel_example
+catch
+    disp("TEST FAILURE: kernel_example")
+end_try_catch

-- 
Debian packaging for octave-econometrics



More information about the Pkg-octave-commit mailing list