Searched refs:flag (Results 1 - 25 of 48) sorted by relevance

12

/gem5/ext/googletest/googletest/test/
H A Dgtest_env_var_test_.cc53 void PrintFlag(const char* flag) { argument
54 if (strcmp(flag, "break_on_failure") == 0) {
59 if (strcmp(flag, "catch_exceptions") == 0) {
64 if (strcmp(flag, "color") == 0) {
69 if (strcmp(flag, "death_test_style") == 0) {
74 if (strcmp(flag, "death_test_use_fork") == 0) {
79 if (strcmp(flag, "filter") == 0) {
84 if (strcmp(flag, "output") == 0) {
89 if (strcmp(flag, "print_time") == 0) {
94 if (strcmp(flag, "repea
109 cout << "Invalid flag name " << flag local
[all...]
H A Dgtest_env_var_test.py64 def GetFlag(flag):
68 if flag is not None:
69 args += [flag]
73 def TestFlag(flag, test_val, default_val):
74 """Verifies that the given flag is affected by the corresponding env var."""
76 env_var = 'GTEST_' + flag.upper()
78 AssertEq(test_val, GetFlag(flag))
80 AssertEq(default_val, GetFlag(flag))
85 """Tests that environment variable should affect the corresponding flag."""
103 """Tests that $XML_OUTPUT_FILE affects the output flag
[all...]
H A Dgtest_list_tests_unittest.py32 """Unit test for Google Test's --gtest_list_tests flag.
35 --gtest_list_tests flag. This script tests such functionality
48 # The command line flag for enabling/disabling listing all tests.
127 """Tests using the --gtest_list_tests flag to list all tests."""
134 flag_value: value of the --gtest_list_tests flag;
135 None if the flag should not be present.
138 other_flag: a different flag to be passed to command
140 None if the flag should not be present.
144 flag = ''
147 flag
[all...]
H A Dgtest_help_test.py32 """Tests the --help flag of Google C++ Testing Framework.
81 def RunWithFlag(flag):
82 """Runs gtest_help_test_ with the given flag.
87 flag: the command-line flag to pass to gtest_help_test_, or None.
90 if flag is None:
93 command = [PROGRAM_PATH, flag]
99 """Tests the --help flag and its equivalent forms."""
101 def TestHelpFlag(self, flag):
102 """Verifies correct behavior when help flag i
[all...]
H A Dgtest_break_on_failure_unittest.py36 --gtest_break_on_failure flag. This script tests such functionality
55 # The command line flag for enabling/disabling the break-on-failure mode.
95 the --gtest_break_on_failure flag to turn assertion failures into
106 flag_value: value of the --gtest_break_on_failure flag;
107 None if the flag should not be present.
120 flag = ''
122 flag = '--%s=0' % BREAK_ON_FAILURE_FLAG
124 flag = '--%s' % BREAK_ON_FAILURE_FLAG
127 if flag:
128 command.append(flag)
[all...]
H A Dgtest_throw_on_failure_test.py46 # The command line flag for enabling/disabling the throw-on-failure mode.
90 flag_value: value of the --gtest_break_on_failure flag;
91 None if the flag should not be present.
103 flag = ''
105 flag = '--%s=0' % THROW_ON_FAILURE
107 flag = '--%s' % THROW_ON_FAILURE
110 if flag:
111 command.append(flag)
144 """Tests using the --gtest_throw_on_failure flag."""
H A Dgtest_test_utils.py79 # Initially maps a flag to its default value. After
80 # _ParseAndStripGTestFlags() is called, maps a flag to its actual value.
96 for flag in _flag_map:
98 if flag.upper() in os.environ:
99 _flag_map[flag] = os.environ[flag.upper()]
101 # The command line flag overrides the environment variable.
104 prefix = '--' + flag + '='
106 _flag_map[flag] = argv[i][len(prefix):]
110 # We don't increment i in case we just found a --gtest_* flag
[all...]
H A Dgtest-death-test_test.cc1036 static void RunReturningDeathTest(bool* flag) { argument
1038 *flag = true;
1051 bool flag = false; local
1053 EXPECT_DEATH(flag = true, "");
1054 EXPECT_FALSE(flag);
1066 bool flag = false; local
1068 EXPECT_DEATH(flag = true, "");
1069 EXPECT_FALSE(flag);
1081 bool flag = false; local
1083 EXPECT_DEATH(flag
1097 bool flag = false; local
1113 bool flag = false; local
[all...]
/gem5/src/mem/slicc/ast/
H A DIsValidPtrExprAST.py33 def __init__(self, slicc, variable, flag):
36 self.flag = flag
46 if self.flag:
/gem5/ext/googletest/googlemock/src/
H A Dgmock.cc38 // control the flag values, like what Google Test does.
53 // Parses a string as a command line flag. The string should have the
57 // Returns the value of the flag, or NULL if the parsing failed.
59 const char* flag,
61 // str and flag must not be NULL.
62 if (str == NULL || flag == NULL) return NULL;
64 // The flag must start with "--gmock_".
65 const std::string flag_str = std::string("--gmock_") + flag;
69 // Skips the flag name.
78 // flag nam
58 ParseGoogleMockFlagValue(const char* str, const char* flag, bool def_optional) argument
91 ParseGoogleMockBoolFlag(const char* str, const char* flag, bool* value) argument
110 ParseGoogleMockStringFlag(const char* str, const char* flag, String* value) argument
[all...]
/gem5/src/python/m5/
H A Ddebug.py43 flag = flags[name]
44 children = [c for c in flag.kids() ]
46 print(" %s: %s" % (name, flag.desc()))
52 flag = flags[name]
53 children = [c for c in flag.kids() ]
55 print(" %s: %s" % (name, flag.desc()))
70 for name, flag in _m5.debug.allFlags().items():
71 self._dict[name] = flag
H A Dmain.py144 help="Sets the flags for debug output (-FLAG disables a flag)")
391 for flag in options.debug_flags:
393 if flag.startswith('-'):
394 flag = flag[1:]
397 if flag not in debug.flags:
398 print("invalid debug flag '%s'" % flag, file=sys.stderr)
402 debug.flags[flag].disable()
404 debug.flags[flag]
[all...]
/gem5/src/cpu/
H A Dstatic_inst.cc137 for (unsigned int flag = IsNop; flag < Num_Flags; flag++) {
138 if (flags[flag]) {
142 outs << FlagsStrings[flag];
/gem5/util/tlm/examples/common/
H A Dcli_parser.cc50 " -d <flag> -- set a gem5 debug flag\n"
51 " (-<flag> clears a flag)\n"
88 std::string flag(argv[arg_ptr]);
90 debugFlags.push_back(flag);
122 for (auto& flag : debugFlags) {
123 ss << flag << ' '; local
/gem5/src/systemc/tests/systemc/compliance_1666/test234/
H A Dtest234.cpp31 bool flag, flag2; local
34 : flag(false), flag2(false)
47 flag = true;
49 flag = false;
71 sc_assert( flag );
/gem5/src/mem/ruby/network/
H A DMessageBuffer.py43 randomization flag is True)")
/gem5/util/tlm/src/
H A Dsim_control.cc117 std::string flag; local
118 while (std::getline(ss, flag, ' ')) {
119 if (flag.at(0) == '-') {
120 flag.erase(0, 1); // remove the '-'
121 clearDebugFlag(flag.c_str());
124 setDebugFlag(flag.c_str());
/gem5/util/systemc/gem5_within_systemc/
H A Dsc_gem5_control.hh140 /** Set/clear a gem5 debug flag */
141 virtual void setDebugFlag(const char *flag);
142 virtual void clearDebugFlag(const char *flag);
H A Dsc_gem5_control.cc168 Gem5Control::setDebugFlag(const char *flag) argument
170 ::setDebugFlag(flag);
174 Gem5Control::clearDebugFlag(const char *flag) argument
176 ::clearDebugFlag(flag);
/gem5/ext/systemc/src/sysc/tracing/
H A Dsc_trace_file_base.h72 // Also trace transitions between delta cycles if flag is true.
73 virtual void delta_cycles(bool flag);
H A Dsc_trace_file_base.cpp178 sc_trace_file_base::delta_cycles( bool flag )
180 trace_delta_cycles_ = flag;
/gem5/src/mem/ruby/system/
H A DRubySystem.py40 buffer set its own flag to enable/disable randomization)");
/gem5/ext/googletest/googletest/src/
H A Dgtest-death-test.cc103 "It is not recommended to use this flag w/o valgrind though it will "
104 "work in 99% of the cases. Once valgrind is fixed, this flag will "
113 "the '|' characters. This flag is specified if and only if the current "
137 // death_test_style flag.
254 // AbortReason, DeathTestOutcome, and flag characters above.
266 const InternalRunDeathTestFlag* const flag = local
268 if (flag != NULL) {
269 FILE* parent = posix::FDOpen(flag->write_fd(), "w");
437 char flag; local
445 bytes_read = posix::Read(read_fd(), &flag,
697 const InternalRunDeathTestFlag* const flag = local
1120 const InternalRunDeathTestFlag* const flag = local
1175 const InternalRunDeathTestFlag* const flag = local
[all...]
/gem5/ext/testlib/
H A Dconfig.py49 Program arguments/flag arguments are available from the config as attributes.
345 for flag, regex in positional_tags:
346 if flag == 'exclude_tags':
348 elif flag == 'include_tags':
351 raise ValueError('Unsupported flag.')
367 Class represents a cli argument/flag for a argparse parser.
381 for flag in flags:
382 if not flag.startswith('-'):
384 "with a character '-'" % flag)
386 if flag
[all...]
/gem5/ext/sst/
H A Dgem5.cc109 for (auto flag : flags) {
110 dbg.output(CALL_INFO, " Setting Debug Flag [%s]\n", flag);
111 setDebugFlag(flag);

Completed in 17 milliseconds

12