Commit 5d2190f5 authored by Maria Matejka's avatar Maria Matejka
Browse files

Testing: added an option for benchmark version of the test

parent 7c006269
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -36,6 +36,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 */

uint bt_verbose;
const char *bt_filename;
@@ -65,9 +66,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;