Data Structures | Defines | Typedefs | Functions | Variables

Regression.h File Reference

A brief file description. More...

#include "libts.h"
#include "Regex.h"
Include dependency graph for Regression.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  RegressionTest

Defines

#define REGRESSION_TEST_PASSED   1
#define REGRESSION_TEST_INPROGRESS   0
#define REGRESSION_TEST_FAILED   -1
#define REGRESSION_TEST_NOT_RUN   -2
#define REGRESSION_TEST_NONE   0
#define REGRESSION_TEST_QUICK   1
#define REGRESSION_TEST_NIGHTLY   2
#define REGRESSION_TEST_EXTENDED   3
#define REGRESSION_TEST_FATAL   4
#define REGRESSION_OPT_EXCLUSIVE   (1 << 0)
#define REGRESSION_TEST(_f)
#define EXCLUSIVE_REGRESSION_TEST(_f)
#define SignalError(_buf, _already)

Typedefs

typedef void TestFunction (RegressionTest *t, int type, int *status)

Functions

int rprintf (RegressionTest *t, const char *format,...)
int rperf (RegressionTest *t, const char *tag, double val)
char * regression_status_string (int status)

Variables

int regression_level

Detailed Description

A brief file description.

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file Regression.h.


Define Documentation

#define EXCLUSIVE_REGRESSION_TEST (   _f  ) 
Value:
void RegressionTest_##_f(RegressionTest * t, int atype, int *pstatus); \
RegressionTest regressionTest_##_f(#_f,&RegressionTest_##_f, REGRESSION_OPT_EXCLUSIVE);\
void RegressionTest_##_f

Definition at line 93 of file Regression.h.

#define REGRESSION_OPT_EXCLUSIVE   (1 << 0)

Definition at line 62 of file Regression.h.

Referenced by RegressionTest::RegressionTest().

#define REGRESSION_TEST (   _f  ) 
Value:
void RegressionTest_##_f(RegressionTest * t, int atype, int *pstatus); \
RegressionTest regressionTest_##_f(#_f,&RegressionTest_##_f, 0);\
void RegressionTest_##_f

Definition at line 88 of file Regression.h.

#define REGRESSION_TEST_EXTENDED   3

Definition at line 57 of file Regression.h.

Referenced by cache_disk_replacement_stability().

#define REGRESSION_TEST_FAILED   -1
#define REGRESSION_TEST_FATAL   4

Definition at line 59 of file Regression.h.

#define REGRESSION_TEST_INPROGRESS   0
#define REGRESSION_TEST_NIGHTLY   2

Definition at line 56 of file Regression.h.

#define REGRESSION_TEST_NONE   0

Definition at line 54 of file Regression.h.

#define REGRESSION_TEST_NOT_RUN   -2
#define REGRESSION_TEST_PASSED   1
#define REGRESSION_TEST_QUICK   1

Definition at line 55 of file Regression.h.

#define SignalError (   _buf,
  _already 
)
Value:
{                                                                       \
  if(_already == false) pmgmt->signalManager(MGMT_SIGNAL_CONFIG_ERROR, _buf); \
  _already = true;                                                      \
  Warning("%s", _buf);                                                  \
}                                                                       \

Definition at line 104 of file Regression.h.

Referenced by ControlMatcher< Data, Result >::BuildTableFromString(), ParentRecord::DefaultInit(), and remap_parse_config_bti().


Typedef Documentation

typedef void TestFunction(RegressionTest *t, int type, int *status)

Definition at line 66 of file Regression.h.


Function Documentation

char* regression_status_string ( int  status  ) 
int rperf ( RegressionTest t,
const char *  tag,
double  val 
)

Definition at line 196 of file Regression.cc.

References RegressionTest::name.

Referenced by Regression().

int rprintf ( RegressionTest t,
const char *  format,
  ... 
)

Variable Documentation

Definition at line 40 of file Regression.cc.

Referenced by run_RegressionTest(), and start_test().