diff options
author | Steven Knight <knight@baldmt.com> | 2008-09-24 12:08:07 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2008-09-24 12:08:07 (GMT) |
commit | af3c530b230be367f9d785598bf85e04f293cadd (patch) | |
tree | ac02f3938908173e108d7d65575d06d75dca79bb /test/MSVS/vs-7.1-files.py | |
parent | 0eaf4cac515454264cc8944c95ef844b7ccc52f2 (diff) | |
download | SCons-af3c530b230be367f9d785598bf85e04f293cadd.zip SCons-af3c530b230be367f9d785598bf85e04f293cadd.tar.gz SCons-af3c530b230be367f9d785598bf85e04f293cadd.tar.bz2 |
Split the sub-tests for cleaning MSVS project and solution files
into separate test scripts.
Diffstat (limited to 'test/MSVS/vs-7.1-files.py')
-rw-r--r-- | test/MSVS/vs-7.1-files.py | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/test/MSVS/vs-7.1-files.py b/test/MSVS/vs-7.1-files.py index f6e7136..f797a38 100644 --- a/test/MSVS/vs-7.1-files.py +++ b/test/MSVS/vs-7.1-files.py @@ -141,67 +141,4 @@ The real workspace file is here: -test.subdir('work3') - -test.write(['work3', 'SConstruct'], """\ -env=Environment(platform='win32', tools=['msvs'], MSVS_VERSION='7.1') - -testsrc = ['test1.cpp', 'test2.cpp'] -testincs = ['sdk.h'] -testlocalincs = ['test.h'] -testresources = ['test.rc'] -testmisc = ['readme.txt'] - -p = env.MSVSProject(target = 'Test.vcproj', - srcs = testsrc, - incs = testincs, - localincs = testlocalincs, - resources = testresources, - misc = testmisc, - buildtarget = 'Test.exe', - variant = 'Release', - auto_build_solution = 0) - -env.MSVSSolution(target = 'Test.sln', - slnguid = '{SLNGUID}', - projects = [p], - variant = 'Release') -""") - -test.run(chdir='work3', arguments=".") - -test.must_exist(test.workpath('work3', 'Test.vcproj')) -vcproj = test.read(['work3', 'Test.vcproj'], 'r') -expect = test.msvs_substitute(expected_vcprojfile, '7.1', 'work3', 'SConstruct', - python=python) -# don't compare the pickled data -assert vcproj[:len(expect)] == expect, test.diff_substr(expect, vcproj) - -test.must_exist(test.workpath('work3', 'Test.sln')) -sln = test.read(['work3', 'Test.sln'], 'r') -expect = test.msvs_substitute(expected_slnfile, '7.1', 'work3', 'SConstruct') -# don't compare the pickled data -assert sln[:len(expect)] == expect, test.diff_substr(expect, sln) - -test.run(chdir='work3', arguments='-c .') - -test.must_not_exist(test.workpath('work3', 'Test.vcproj')) -test.must_not_exist(test.workpath('work3', 'Test.sln')) - -test.run(chdir='work3', arguments='.') - -test.must_exist(test.workpath('work3', 'Test.vcproj')) -test.must_exist(test.workpath('work3', 'Test.sln')) - -test.run(chdir='work3', arguments='-c Test.sln') - -test.must_exist(test.workpath('work3', 'Test.vcproj')) -test.must_not_exist(test.workpath('work3', 'Test.sln')) - -test.run(chdir='work3', arguments='-c Test.vcproj') - -test.must_not_exist(test.workpath('work3', 'Test.vcproj')) - - - test.pass_test() |