diff options
| author | Steven Knight <knight@baldmt.com> | 2004-10-06 02:38:36 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2004-10-06 02:38:36 (GMT) |
| commit | 79e688ca5ed799cfce8c28a907d45452f1bf2255 (patch) | |
| tree | 93fa1c253b6011ceed4627faca764f5368e723a5 /test | |
| parent | 0bb9aa9c2de6d79ded51f0d3dd3c9c1e5fb2b635 (diff) | |
| download | SCons-79e688ca5ed799cfce8c28a907d45452f1bf2255.zip SCons-79e688ca5ed799cfce8c28a907d45452f1bf2255.tar.gz SCons-79e688ca5ed799cfce8c28a907d45452f1bf2255.tar.bz2 | |
Test improvement. (Kevin Quick)
Diffstat (limited to 'test')
| -rw-r--r-- | test/midl.py | 104 |
1 files changed, 52 insertions, 52 deletions
diff --git a/test/midl.py b/test/midl.py index a0ff5dd..cf80044 100644 --- a/test/midl.py +++ b/test/midl.py @@ -379,66 +379,66 @@ test.write('src/resource.h',''' test.run(arguments=os.path.join('build','bar.dll')) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build','BarPCH.pch')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build','BarPCH.obj')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build','bar.tlb')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build','bar.h')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build','bar_i.c')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build','bar_p.c')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build','bar_data.c')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build','BarObject.obj')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build','bar.obj')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build','bar.res')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build','bar.dll')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build','bar.lib')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build','bar.exp')))) +test.must_exist(['build','BarPCH.pch']) +test.must_exist(['build','BarPCH.obj']) +test.must_exist(['build','bar.tlb']) +test.must_exist(['build','bar.h']) +test.must_exist(['build','bar_i.c']) +test.must_exist(['build','bar_p.c']) +test.must_exist(['build','bar_data.c']) +test.must_exist(['build','BarObject.obj']) +test.must_exist(['build','bar.obj']) +test.must_exist(['build','bar.res']) +test.must_exist(['build','bar.dll']) +test.must_exist(['build','bar.lib']) +test.must_exist(['build','bar.exp']) test.run(arguments='-c .') -test.fail_test(os.path.exists(test.workpath(os.path.join('build','BarPCH.pch')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build','BarPCH.obj')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build','bar.tlb')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build','bar.h')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build','bar_i.c')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build','bar_p.c')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build','bar_data.c')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build','BarObject.obj')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build','bar.obj')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build','bar.res')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build','bar.dll')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build','bar.lib')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build','bar.exp')))) +test.must_not_exist(['build','BarPCH.pch']) +test.must_not_exist(['build','BarPCH.obj']) +test.must_not_exist(['build','bar.tlb']) +test.must_not_exist(['build','bar.h']) +test.must_not_exist(['build','bar_i.c']) +test.must_not_exist(['build','bar_p.c']) +test.must_not_exist(['build','bar_data.c']) +test.must_not_exist(['build','BarObject.obj']) +test.must_not_exist(['build','bar.obj']) +test.must_not_exist(['build','bar.res']) +test.must_not_exist(['build','bar.dll']) +test.must_not_exist(['build','bar.lib']) +test.must_not_exist(['build','bar.exp']) test.run(arguments=os.path.join('build2','bar.dll')) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build2','BarPCH.pch')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build2','BarPCH.obj')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build2','bar.tlb')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build2','bar.h')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build2','bar_i.c')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build2','bar_p.c')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build2','bar_data.c')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build2','BarObject.obj')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build2','bar.obj')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build2','bar.res')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build2','bar.dll')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build2','bar.lib')))) -test.fail_test(not os.path.exists(test.workpath(os.path.join('build2','bar.exp')))) +test.must_exist(['build2','BarPCH.pch']) +test.must_exist(['build2','BarPCH.obj']) +test.must_exist(['build2','bar.tlb']) +test.must_exist(['build2','bar.h']) +test.must_exist(['build2','bar_i.c']) +test.must_exist(['build2','bar_p.c']) +test.must_exist(['build2','bar_data.c']) +test.must_exist(['build2','BarObject.obj']) +test.must_exist(['build2','bar.obj']) +test.must_exist(['build2','bar.res']) +test.must_exist(['build2','bar.dll']) +test.must_exist(['build2','bar.lib']) +test.must_exist(['build2','bar.exp']) test.run(arguments='-c .') -test.fail_test(os.path.exists(test.workpath(os.path.join('build2','BarPCH.pch')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build2','BarPCH.obj')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build2','bar.tlb')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build2','bar.h')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build2','bar_i.c')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build2','bar_p.c')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build2','bar_data.c')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build2','BarObject.obj')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build2','bar.obj')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build2','bar.res')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build2','bar.dll')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build2','bar.lib')))) -test.fail_test(os.path.exists(test.workpath(os.path.join('build2','bar.exp')))) +test.must_not_exist(['build2','BarPCH.pch']) +test.must_not_exist(['build2','BarPCH.obj']) +test.must_not_exist(['build2','bar.tlb']) +test.must_not_exist(['build2','bar.h']) +test.must_not_exist(['build2','bar_i.c']) +test.must_not_exist(['build2','bar_p.c']) +test.must_not_exist(['build2','bar_data.c']) +test.must_not_exist(['build2','BarObject.obj']) +test.must_not_exist(['build2','bar.obj']) +test.must_not_exist(['build2','bar.res']) +test.must_not_exist(['build2','bar.dll']) +test.must_not_exist(['build2','bar.lib']) +test.must_not_exist(['build2','bar.exp']) test.pass_test() |
