Commit 0e3d4149 authored by Maria Matejka's avatar Maria Matejka
Browse files

Testing: added an option for benchmark version of the test

parent fdb0a4da
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ static int do_die;
static int no_fork;
static int no_timeout;
static int is_terminal;		/* Whether stdout is a live terminal or pipe redirect */
int benchmark;			/* Whether we shall run the benchmark test version */

volatile sig_atomic_t async_config_flag;		/* Asynchronous reconfiguration/dump scheduled */
volatile sig_atomic_t async_dump_flag;
@@ -71,9 +72,13 @@ bt_init(int argc, char *argv[])
  bt_test_id = NULL;
  is_terminal = isatty(fileno(stdout));

  while ((c = getopt(argc, argv, "lcdftv")) >= 0)
  while ((c = getopt(argc, argv, "blcdftv")) >= 0)
    switch (c)
    {
      case 'b':
	benchmark = 1;
	break;

      case 'l':
	list_tests = 1;
	break;
+1 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

#include "nest/bird.h"

extern int benchmark;

extern int bt_result;
extern int bt_suite_result;