scons: Separate debug flags from debug-format flags
Debug flags are flags that aid with debugging by printing relevant information when enabled. Debug-formatting flags define how the debug flags will print the information. Although a viability, this patch does not support declaring compound format flags. As a side effect, now debug flags and debug-formatting flags are printed in different lists, when using --debug-help. Change-Id: Ieae68745276218cf4e9c1d37d7bf3bd1f19709ae Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/39076 Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Daniel Carvalho
parent
58ccc6287e
commit
4ff5fa567b
@@ -60,6 +60,17 @@ TEST(DebugFlagDeathTest, UniqueNames)
|
||||
EXPECT_EQ(expected, actual);
|
||||
}
|
||||
|
||||
/** Test format attribute. */
|
||||
TEST(DebugFlagTest, IsFormat)
|
||||
{
|
||||
Debug::SimpleFlag flag_a("FlagIsFormatTestA", "", true);
|
||||
EXPECT_TRUE(flag_a.isFormat());
|
||||
Debug::SimpleFlag flag_b("FlagIsFormatTestB", "", false);
|
||||
EXPECT_FALSE(flag_b.isFormat());
|
||||
Debug::SimpleFlag flag_c("FlagIsFormatTestC", "");
|
||||
EXPECT_FALSE(flag_c.isFormat());
|
||||
}
|
||||
|
||||
/** Test enabling and disabling simple flags, as well as the global enabler. */
|
||||
TEST(DebugSimpleFlagTest, Enabled)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user