File: zephyr_run_doctests

package info (click to toggle)
zephyr 3.1.2-1.1
  • links: PTS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 4,836 kB
  • sloc: ansic: 41,382; sh: 10,723; makefile: 872; python: 438; yacc: 250; lisp: 127
file content (12 lines) | stat: -rwxr-xr-x 179 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/python

import sys, doctest

failures, tests = doctest.testfile("zephyr_tests.txt")

print failures, 'failures out of', tests, 'tests.'
if failures:
    sys.exit(1)