diff options
author | Pjotr Prins | 2021-08-25 13:59:01 +0200 |
---|---|---|
committer | Pjotr Prins | 2021-08-25 13:59:01 +0200 |
commit | 54b19503e3a4a999b9e16d0d83d536e859f8657c (patch) | |
tree | 63fd229c52eaa989c38f2b7a24c85124cb2c900f | |
parent | 145fa09bcd78e46d21bd06771f01174e46ea875e (diff) | |
download | pangemma-54b19503e3a4a999b9e16d0d83d536e859f8657c.tar.gz |
Tests: fix RNG and add debug info by default
-rw-r--r-- | test/dev_tests.rb | 1 | ||||
-rwxr-xr-x | test/lengthy_test_suite.sh | 2 | ||||
-rw-r--r-- | test/lib/test-helpers.rb | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/test/dev_tests.rb b/test/dev_tests.rb index 49068dc..11f4167 100644 --- a/test/dev_tests.rb +++ b/test/dev_tests.rb @@ -7,6 +7,7 @@ class TestQuick < MiniTest::Test include TestHelpers def setup + ENV['GSL_RNG_SEED']=100.to_s end def test_linear_model diff --git a/test/lengthy_test_suite.sh b/test/lengthy_test_suite.sh index 6e11793..5a067eb 100755 --- a/test/lengthy_test_suite.sh +++ b/test/lengthy_test_suite.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/sh # # Long running tests go here diff --git a/test/lib/test-helpers.rb b/test/lib/test-helpers.rb index 672a2c2..a409626 100644 --- a/test/lib/test-helpers.rb +++ b/test/lib/test-helpers.rb @@ -2,7 +2,7 @@ module TestHelpers # Runs gemma and returns true if successful def gemma(opts) - assert system("./bin/gemma #{opts}") + assert system("./bin/gemma -debug -check #{opts}") end def read(fn, line=0) |