2
0
mirror of https://github.com/boostorg/build.git synced 2026-01-26 06:22:26 +00:00
Files
build/test/testing_primitives.py
Dave Abrahams 2fe349e4b9 Proof-of-concept for testing
[SVN r16108]
2002-11-04 21:57:50 +00:00

34 lines
655 B
Python

#!/usr/bin/python
from BoostBuild import Tester, List
import os
from string import strip
import re
def match_re(actual,expected):
return re.match(expected,actual,re.DOTALL) != None
t = Tester(match = match_re)
t.set_tree('testing-primitives')
# We expect t5 and t7's output to be dumped to stdout
t.run_build_system(stdout=r'''.*failing t5.*failing t7''')
t.expect_addition('t2.txt')
t.expect_addition('t3.txt')
t.expect_addition('t5.out')
t.expect_addition('t6.out')
t.expect_addition('t6.txt')
t.expect_addition('t7.out')
t.expect_addition('t7.txt')
t.expect_addition('t8.out')
t.expect_nothing_more()
t.cleanup()
print 'tesing complete'