gem5  v21.1.0.2
Functions
debug.test.cc File Reference
#include <gtest/gtest.h>
#include "base/debug.hh"
#include "base/gtest/logging.hh"

Go to the source code of this file.

Functions

 TEST (DebugFlagTest, NameDesc)
 Test assignment of names and descriptions. More...
 
 TEST (DebugFlagDeathTest, UniqueNames)
 Test that names are unique. More...
 
 TEST (DebugFlagTest, IsFormat)
 Test format attribute. More...
 
 TEST (DebugSimpleFlagTest, Enabled)
 Test enabling and disabling simple flags, as well as the global enabler. More...
 
 TEST (DebugCompoundFlagTest, Enabled)
 Tests that manipulate the enablement status of the compound flag to change the corresponding status of the kids. More...
 
 TEST (DebugFlagTest, ConversionOperator)
 Test that the conversion operator matches the enablement status. More...
 
 TEST (DebugCompoundFlagTest, EnabledKids)
 Tests that manipulate the kids to change the enablement status of the compound flag. More...
 
 TEST (DebugFlagTest, FindFlag)
 Search for existent and non-existent flags. More...
 
 TEST (DebugFlagTest, ChangeFlag)
 Test changing flag enabled. More...
 
 TEST (DebugFlagTest, SetClearDebugFlag)
 Test changing flag enabled with aux functions. More...
 
 TEST (DebugFlagTest, NoDumpDebugFlags)
 Test dumping no enabled debug flags. More...
 
 TEST (DebugFlagTest, DumpDebugFlags)
 Test dumping enabled debug flags with a larger set of flags. More...
 

Function Documentation

◆ TEST() [1/12]

TEST ( DebugCompoundFlagTest  ,
Enabled   
)

Tests that manipulate the enablement status of the compound flag to change the corresponding status of the kids.

Definition at line 106 of file debug.test.cc.

References gem5::debug::Flag::globalDisable(), gem5::debug::Flag::globalEnable(), and gem5::debug::Flag::tracing().

◆ TEST() [2/12]

TEST ( DebugCompoundFlagTest  ,
EnabledKids   
)

Tests that manipulate the kids to change the enablement status of the compound flag.

Definition at line 155 of file debug.test.cc.

References gem5::debug::SimpleFlag::disable(), gem5::debug::SimpleFlag::enable(), gem5::debug::Flag::globalEnable(), and gem5::debug::Flag::tracing().

◆ TEST() [3/12]

TEST ( DebugFlagDeathTest  ,
UniqueNames   
)

Test that names are unique.

Definition at line 54 of file debug.test.cc.

References expected, and gem5::gtestLogOutput.

◆ TEST() [4/12]

TEST ( DebugFlagTest  ,
ChangeFlag   
)

Test changing flag enabled.

Definition at line 211 of file debug.test.cc.

References gem5::debug::changeFlag(), gem5::debug::Flag::globalEnable(), and gem5::debug::Flag::tracing().

◆ TEST() [5/12]

TEST ( DebugFlagTest  ,
ConversionOperator   
)

Test that the conversion operator matches the enablement status.

Definition at line 140 of file debug.test.cc.

References gem5::debug::SimpleFlag::disable(), gem5::debug::SimpleFlag::enable(), gem5::debug::Flag::globalEnable(), and gem5::debug::Flag::tracing().

◆ TEST() [6/12]

TEST ( DebugFlagTest  ,
DumpDebugFlags   
)

Test dumping enabled debug flags with a larger set of flags.

Definition at line 277 of file debug.test.cc.

References gem5::dumpDebugFlags(), gem5::debug::SimpleFlag::enable(), gem5::debug::Flag::globalEnable(), gem5::X86ISA::os, gem5::output(), and gem5::debug::Flag::tracing().

◆ TEST() [7/12]

TEST ( DebugFlagTest  ,
FindFlag   
)

Search for existent and non-existent flags.

Definition at line 188 of file debug.test.cc.

References gem5::debug::Flag::enable(), gem5::debug::findFlag(), gem5::debug::Flag::globalEnable(), and gem5::debug::Flag::tracing().

◆ TEST() [8/12]

TEST ( DebugFlagTest  ,
IsFormat   
)

Test format attribute.

Definition at line 66 of file debug.test.cc.

References gem5::debug::SimpleFlag::isFormat().

◆ TEST() [9/12]

TEST ( DebugFlagTest  ,
NameDesc   
)

Test assignment of names and descriptions.

Definition at line 37 of file debug.test.cc.

References gem5::debug::Flag::desc(), and gem5::debug::Flag::name().

◆ TEST() [10/12]

TEST ( DebugFlagTest  ,
NoDumpDebugFlags   
)

Test dumping no enabled debug flags.

Definition at line 263 of file debug.test.cc.

References gem5::dumpDebugFlags(), gem5::debug::Flag::globalEnable(), gem5::gtestLogOutput, gem5::output(), and gem5::debug::Flag::tracing().

◆ TEST() [11/12]

TEST ( DebugFlagTest  ,
SetClearDebugFlag   
)

Test changing flag enabled with aux functions.

Definition at line 237 of file debug.test.cc.

References gem5::clearDebugFlag(), gem5::debug::Flag::globalEnable(), gem5::setDebugFlag(), and gem5::debug::Flag::tracing().

◆ TEST() [12/12]

TEST ( DebugSimpleFlagTest  ,
Enabled   
)

Test enabling and disabling simple flags, as well as the global enabler.

Definition at line 77 of file debug.test.cc.

References gem5::debug::SimpleFlag::disable(), gem5::debug::SimpleFlag::enable(), gem5::debug::Flag::globalDisable(), gem5::debug::Flag::globalEnable(), and gem5::debug::Flag::tracing().


Generated on Tue Sep 21 2021 12:26:26 for gem5 by doxygen 1.8.17