__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os
-import os.path
import string
-import sys
+
import TestSCons
_python_ = TestSCons._python_
test.run(arguments = '.', stderr = None)
-test.fail_test(test.read('test1.pdf') != "This is a .dvi test.\n")
+test.must_match('test1.pdf', "This is a .dvi test.\n")
-test.fail_test(test.read('test2.pdf') != "This is a .tex test.\n")
+test.must_match('test2.pdf', "This is a .tex test.\n")
test.run(arguments = 'foo.pdf', stderr = None)
- test.fail_test(os.path.exists(test.workpath('wrapper.out')))
+ test.must_not_exist(test.workpath('wrapper.out'))
- test.fail_test(not os.path.exists(test.workpath('foo.pdf')))
+ test.must_exist(test.workpath('foo.pdf'))
test.run(arguments = 'xxx.pdf', stderr = None)
- test.fail_test(os.path.exists(test.workpath('wrapper.out')))
+ test.must_not_exist(test.workpath('wrapper.out'))
- test.fail_test(os.path.exists(test.workpath('xxx.dvi')))
+ test.must_not_exist(test.workpath('xxx.dvi'))
test.run(arguments = 'bar.pdf', stderr = None)
- test.fail_test(test.read('wrapper.out') != "dvipdf bar.dvi bar.pdf\n")
+ test.must_match('wrapper.out', "dvipdf bar.dvi bar.pdf\n")
- test.fail_test(not os.path.exists(test.workpath('bar.pdf')))
+ test.must_exist(test.workpath('bar.pdf'))
test.pass_test()
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os
-import os.path
import string
-import sys
+
import TestSCons
_python_ = TestSCons._python_
test.run(arguments = '.', stderr = None)
-test.fail_test(test.read('test1.pdf') != " -x\nThis is a .dvi test.\n")
+test.must_match('test1.pdf', " -x\nThis is a .dvi test.\n")
-test.fail_test(test.read('test2.pdf') != " -x\nThis is a .tex test.\n")
+test.must_match('test2.pdf', " -x\nThis is a .tex test.\n")
test.run(arguments = 'foo.pdf', stderr = None)
- test.fail_test(os.path.exists(test.workpath('wrapper.out')))
+ test.must_not_exist(test.workpath('wrapper.out'))
- test.fail_test(not os.path.exists(test.workpath('foo.pdf')))
+ test.must_exist(test.workpath('foo.pdf'))
test.run(arguments = 'xxx.pdf', stderr = None)
- test.fail_test(os.path.exists(test.workpath('wrapper.out')))
+ test.must_not_exist(test.workpath('wrapper.out'))
- test.fail_test(os.path.exists(test.workpath('xxx.dvi')))
+ test.must_not_exist(test.workpath('xxx.dvi'))
test.run(arguments = 'bar.pdf', stderr = None)
- test.fail_test(test.read('wrapper.out') != "dvipdf bar.dvi bar.pdf\n")
+ test.must_match('wrapper.out', "dvipdf bar.dvi bar.pdf\n")
- test.fail_test(not os.path.exists(test.workpath('bar.pdf')))
+ test.must_exist(test.workpath('bar.pdf'))
test.pass_test()
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os
-import os.path
import string
-import sys
+
import TestSCons
_python_ = TestSCons._python_
test.run(arguments = '.', stderr = None)
-test.fail_test(test.read('test1.ps') != "This is a .dvi test.\n")
+test.must_match('test1.ps', "This is a .dvi test.\n")
-test.fail_test(test.read('test2.ps') != "This is a .tex test.\n")
+test.must_match('test2.ps', "This is a .tex test.\n")
-test.fail_test(test.read('test3.ps') != "This is a .ltx test.\n")
+test.must_match('test3.ps', "This is a .ltx test.\n")
-test.fail_test(test.read('test4.ps') != "This is a .latex test.\n")
+test.must_match('test4.ps', "This is a .latex test.\n")
test.run(arguments = 'foo.dvi', stderr = None)
- test.fail_test(os.path.exists(test.workpath('wrapper.out')))
+ test.must_not_exist(test.workpath('wrapper.out'))
- test.fail_test(not os.path.exists(test.workpath('foo.dvi')))
+ test.must_exist(test.workpath('foo.dvi'))
test.run(arguments = 'bar1.ps bar2.ps bar3.ps', stderr = None)
dvips -o bar3.ps bar3.dvi
"""
- test.fail_test(test.read('wrapper.out') != expect)
+ test.must_match('wrapper.out', expect)
- test.fail_test(not os.path.exists(test.workpath('bar1.ps')))
- test.fail_test(not os.path.exists(test.workpath('bar2.ps')))
- test.fail_test(not os.path.exists(test.workpath('bar3.ps')))
+ test.must_exist(test.workpath('bar1.ps'))
+ test.must_exist(test.workpath('bar2.ps'))
+ test.must_exist(test.workpath('bar3.ps'))
test.pass_test()
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os
-import os.path
import string
-import sys
+
import TestSCons
_python_ = TestSCons._python_
test.run(arguments = '.', stderr = None)
-test.fail_test(test.read('test1.ps') != " -x\nThis is a .dvi test.\n")
+test.must_match('test1.ps', " -x\nThis is a .dvi test.\n")
-test.fail_test(test.read('test2.ps') != " -x\nThis is a .tex test.\n")
+test.must_match('test2.ps', " -x\nThis is a .tex test.\n")
-test.fail_test(test.read('test3.ps') != " -x\nThis is a .ltx test.\n")
+test.must_match('test3.ps', " -x\nThis is a .ltx test.\n")
-test.fail_test(test.read('test4.ps') != " -x\nThis is a .latex test.\n")
+test.must_match('test4.ps', " -x\nThis is a .latex test.\n")
test.run(arguments = 'foo.dvi', stderr = None)
- test.fail_test(os.path.exists(test.workpath('wrapper.out')))
+ test.must_not_exist(test.workpath('wrapper.out'))
- test.fail_test(not os.path.exists(test.workpath('foo.dvi')))
+ test.must_exist(test.workpath('foo.dvi'))
test.run(arguments = 'bar1.ps bar2.ps bar3.ps', stderr = None)
dvips -o bar3.ps bar3.dvi
"""
- test.fail_test(test.read('wrapper.out') != expect)
+ test.must_match('wrapper.out', expect)
- test.fail_test(not os.path.exists(test.workpath('bar1.ps')))
- test.fail_test(not os.path.exists(test.workpath('bar2.ps')))
- test.fail_test(not os.path.exists(test.workpath('bar3.ps')))
+ test.must_exist(test.workpath('bar1.ps'))
+ test.must_exist(test.workpath('bar2.ps'))
+ test.must_exist(test.workpath('bar3.ps'))
test.pass_test()