Lines Matching +full:skip +full:- +full:config

1 # SPDX-License-Identifier: GPL-2.0
40 return '\'%s\' - %s' % (self.test.path, self.msg)
61 'config',
135 # [config]
136 # - just single instance in file
137 # - needs to specify:
138 # 'command' - perf command name
139 # 'args' - special command arguments
140 # 'ret' - Skip test if Perf doesn't exit with this value (0 by default)
141 # 'test_ret'- If set to 'true', fail test instead of skipping for 'ret' argument
142 # 'arch' - architecture specific test (optional)
145 # 'auxv' - Truthy statement that is evaled in the scope of the auxv map. When false,
147 # 'kernel_since' - Inclusive kernel version from which the test will start running. Only the
149 # 'kernel_until' - Exclusive kernel version from which the test will stop running. (optional)
151 # - one or multiple instances in file
152 # - expected values assignments
163 self.command = parser.get('config', 'command')
164 self.args = parser.get('config', 'args')
167 self.ret = parser.get('config', 'ret')
171 self.test_ret = parser.getboolean('config', 'test_ret', fallback=False)
174 self.arch = parser.get('config', 'arch')
179 self.auxv = parser.get('config', 'auxv', fallback=None)
180 self.kernel_since = parse_version(parser.get('config', 'kernel_since', fallback=None))
181 self.kernel_until = parse_version(parser.get('config', 'kernel_until', fallback=None))
188 if name.find("event") == -1:
208 value = int(items[-1], 16)
211 value = int(items[-1], 0)
213 value = items[-1]
295 raise Notest(self, "auxv skip")
298 raise Notest(self, "old kernel skip")
301 raise Notest(self, "new kernel skip")
304 cmd = "PERF_TEST_ATTR=%s %s %s -o %s/perf.data %s" % (tempdir,
331 log.debug(" ->OK")
333 log.debug(" ->FAIL");
337 # we did not any matching event - fail
371 if group_fd == '-1':
396 # do the expectation - results matching - both ways
434 -d dir # tests dir
435 -p path # perf binary
436 -t test # single test
437 -v # verbose level
443 parser.add_option("-t", "--test",
445 parser.add_option("-d", "--test-dir",
447 parser.add_option("-p", "--perf",
449 parser.add_option("-v", "--verbose",
455 return -1
460 print('FAILED no -d option specified')
461 sys.exit(-1)
471 sys.exit(-1)