Commit 0975d3f9 authored by Morten Welinder's avatar Morten Welinder

Tests: speed up t8050-valgrind-sstest.pl

parent 4a112f1e
2016-08-21 Morten Welinder <terra@gnome.org>
* src/sstest.c (options): Add --fast option.
* src/value.c (value_get_as_gstring): Let a negative
decimal_digits mean "shortest round-tripping string".
......
Gnumeric 1.12.33
Morten:
* Speed up sstest part of test suite.
--------------------------------------------------------------------------
Gnumeric 1.12.32
......
......@@ -35,8 +35,16 @@
#include <errno.h>
static gboolean sstest_show_version = FALSE;
static gboolean sstest_fast = FALSE;
static GOptionEntry const sstest_options [] = {
{
"fast", 'f',
0, G_OPTION_ARG_NONE, &sstest_fast,
N_("Run fewer iterations"),
NULL
},
{
"version", 'V',
0, G_OPTION_ARG_NONE, &sstest_show_version,
......@@ -2473,8 +2481,8 @@ static void
test_random (void)
{
const char *test_name = "test_random";
const int N = 20000;
const int High_N = 200000;
const int N = sstest_fast ? 2000 : 20000;
const int High_N = N * 10;
const char *single = g_getenv ("SSTEST_RANDOM");
mark_test_start (test_name);
......
2016-08-21 Morten Welinder <terra@gnome.org>
* t8050-valgrind-sstest.pl: Use the --fast option for sstest.
This is slow enough as it is.
2016-08-20 Morten Welinder <terra@gnome.org>
* Release 1.12.32
......
......@@ -12,4 +12,4 @@ chomp $pango;
&GnumericTest::report_skip ("Pango version $pango is buggy")
if $pango eq '1.24.2';
&test_valgrind ("$sstest all >/dev/null 2>&1", 1);
&test_valgrind ("$sstest --fast all >/dev/null 2>&1", 1);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment