Lines Matching +full:- +full:m
27 ./scripts/explode_asserts.py $$< -o $$@
31 -include tests/*.d
35 $(CC) $(CFLAGS) $^ $(LFLAGS) -o $@
50 'LFS_BLOCK_CYCLES': -1,
97 PASS = '\033[32m✓\033[0m'
98 FAIL = '\033[31m✗\033[0m'
217 print('truncate --size=0', disk)
223 # simulate power-loss after n cycles?
231 ncmd.extend(['-ex', 'r'])
233 ncmd.extend(['-ex', 'up 2'])
236 '-ex', 'b %s:%d' % (self.suite.path, self.code_lineno),
237 '-ex', 'r'])
238 ncmd.extend(['--args'] + cmd)
266 m = re.match(
270 if m and assert_ is None:
272 with open(m.group(1)) as f:
273 lineno = int(m.group(2))
274 line = (next(it.islice(f, lineno-1, None))
277 'path': m.group(1),
280 'message': m.group(3)}
303 uninit = (self.defines.get('LFS_ERASE_VALUE', None) == -1)
306 '--leak-check=full',
307 ] + (['--undef-value-errors=no'] if uninit else []) + [
308 ] + (['--track-origins=yes'] if not uninit else []) + [
309 '--error-exitcode=4',
310 '--error-limit=no',
311 ] + (['--num-callers=1'] if not verbose else []) + [
312 '-q'] + exec
353 self.name = self.name[:-len('.toml')]
450 # also track non-unique defines
456 # track all perms and non-unique defines
524 mk.write('%s: override CFLAGS += -D%s=%r\n' % (
538 mk.write('\t./scripts/explode_asserts.py $| -o $@\n')
627 cmd = (['make', '-f', 'Makefile'] +
628 list(it.chain.from_iterable(['-f', m] for m in makefiles)) +
648 m = re.match(
652 if m and not args.get('verbose', False):
654 with open(m.group(1)) as f:
655 lineno = int(m.group(2))
656 line = next(it.islice(f, lineno-1, None)).strip('\n')
658 "\033[01m{path}:{lineno}:\033[01;35mwarning:\033[m "
660 path=m.group(1), line=line, lineno=lineno,
661 message=m.group(3)))
670 sys.exit(-3)
707 "\033[01m{path}:{lineno}:\033[01;31mfailure:\033[m "
713 stdout = perm.result.stdout[:-1]
716 for line in stdout[-5:]:
720 "\033[01m{path}:{lineno}:\033[01;31massert:\033[m "
752 parser.add_argument('-D', action='append', default=[],
754 parser.add_argument('-v', '--verbose', action='store_true',
756 parser.add_argument('-k', '--keep-going', action='store_true',
758 parser.add_argument('-p', '--persist', choices=['erase', 'noerase'],
761 parser.add_argument('-b', '--build', action='store_true',
763 parser.add_argument('-g', '--gdb', choices=['init', 'main', 'assert'],
766 parser.add_argument('--no-internal', action='store_true',
768 parser.add_argument('-n', '--normal', action='store_true',
770 parser.add_argument('-r', '--reentrant', action='store_true',
771 help="Run reentrant tests with simulated power-loss.")
772 parser.add_argument('-V', '--valgrind', action='store_true',
773 help="Run non-leaky tests under valgrind to check for memory leaks.")
774 parser.add_argument('-e', '--exec', default=[], type=lambda e: e.split(' '),
776 parser.add_argument('-d', '--disk',