Lines Matching +full:skip +full:- +full:config
1 # SPDX-License-Identifier: GPL-2.0
34 return '\'%s\' - %s' % (self.test.path, self.msg)
55 'config',
129 # [config]
130 # - just single instance in file
131 # - needs to specify:
132 # 'command' - perf command name
133 # 'args' - special command arguments
134 # 'ret' - Skip test if Perf doesn't exit with this value (0 by default)
135 # 'test_ret'- If set to 'true', fail test instead of skipping for 'ret' argument
136 # 'arch' - architecture specific test (optional)
139 # 'auxv' - Truthy statement that is evaled in the scope of the auxv map. When false,
141 # 'kernel_since' - Inclusive kernel version from which the test will start running. Only the
143 # 'kernel_until' - Exclusive kernel version from which the test will stop running. (optional)
145 # - one or multiple instances in file
146 # - expected values assignments
157 self.command = parser.get('config', 'command')
158 self.args = parser.get('config', 'args')
161 self.ret = parser.get('config', 'ret')
165 self.test_ret = parser.getboolean('config', 'test_ret', fallback=False)
168 self.arch = parser.get('config', 'arch')
173 self.auxv = parser.get('config', 'auxv', fallback=None)
174 self.kernel_since = parse_version(parser.get('config', 'kernel_since', fallback=None))
175 self.kernel_until = parse_version(parser.get('config', 'kernel_until', fallback=None))
182 if name.find("event") == -1:
202 value = int(items[-1], 16)
205 value = int(items[-1], 0)
207 value = items[-1]
289 raise Notest(self, "auxv skip")
292 raise Notest(self, "old kernel skip")
295 raise Notest(self, "new kernel skip")
298 cmd = "PERF_TEST_ATTR=%s %s %s -o %s/perf.data %s" % (tempdir,
325 log.debug(" ->OK")
327 log.debug(" ->FAIL");
331 # we did not any matching event - fail
365 if group_fd == '-1':
390 # do the expectation - results matching - both ways
428 -d dir # tests dir
429 -p path # perf binary
430 -t test # single test
431 -v # verbose level
437 parser.add_option("-t", "--test",
439 parser.add_option("-d", "--test-dir",
441 parser.add_option("-p", "--perf",
443 parser.add_option("-v", "--verbose",
449 return -1
454 print('FAILED no -d option specified')
455 sys.exit(-1)
465 sys.exit(-1)