diff options
author | Steven Knight <knight@baldmt.com> | 2004-04-25 19:47:31 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-04-25 19:47:31 (GMT) |
commit | ae9f03ddef2d4a346bd49e10e8b033ddbf7b852a (patch) | |
tree | 8d8a4602fe35bf6d30f890c083280157cd8487da /test/SConsignFile.py | |
parent | bd74d2939db1d55119af3faf56a89f07722d487a (diff) | |
download | SCons-ae9f03ddef2d4a346bd49e10e8b033ddbf7b852a.zip SCons-ae9f03ddef2d4a346bd49e10e8b033ddbf7b852a.tar.gz SCons-ae9f03ddef2d4a346bd49e10e8b033ddbf7b852a.tar.bz2 |
Have SConsignFile() use a dblite.py module by default, so we can control the behavior. (Ralf W. Grosse-Kunstleve)
Diffstat (limited to 'test/SConsignFile.py')
-rw-r--r-- | test/SConsignFile.py | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/test/SConsignFile.py b/test/SConsignFile.py index c919c79..46d0954 100644 --- a/test/SConsignFile.py +++ b/test/SConsignFile.py @@ -60,12 +60,7 @@ test.write(['work1', 'subdir', 'f4.in'], "work1/subdir/f4.in\n") test.run(chdir = 'work1') -def any_dbm_file(prefix): - return os.path.exists(prefix) \ - or os.path.exists(prefix + '.dat') \ - or os.path.exists(prefix + '.dir') - -test.fail_test(not any_dbm_file(test.workpath('work1', '.sconsign.dbm'))) +test.must_exist(test.workpath('work1', '.sconsign.dblite')) test.must_not_exist(test.workpath('work1', '.sconsign')) test.must_not_exist(test.workpath('work1', 'subdir', '.sconsign')) @@ -76,7 +71,7 @@ test.must_match(['work1', 'subdir', 'f4.out'], "work1/subdir/f4.in\n") test.up_to_date(chdir = 'work1', arguments = '.') -test.fail_test(not any_dbm_file(test.workpath('work1', '.sconsign.dbm'))) +test.must_exist(test.workpath('work1', '.sconsign.dblite')) test.must_not_exist(test.workpath('work1', '.sconsign')) test.must_not_exist(test.workpath('work1', 'subdir', '.sconsign')) @@ -99,8 +94,7 @@ test.write(['work2', 'subdir', 'f8.in'], "work2/subdir/f8.in\n") test.run(chdir = 'work2') -test.fail_test(not any_dbm_file(test.workpath('work2', 'my_sconsign'))) -test.fail_test(any_dbm_file(test.workpath('work2', '.sconsign.dbm'))) +test.must_exist(test.workpath('work2', 'my_sconsign.dblite')) test.must_not_exist(test.workpath('work2', '.sconsign')) test.must_not_exist(test.workpath('work2', 'subdir', '.sconsign')) @@ -111,8 +105,7 @@ test.must_match(['work2', 'subdir', 'f8.out'], "work2/subdir/f8.in\n") test.up_to_date(chdir = 'work2', arguments = '.') -test.fail_test(not any_dbm_file(test.workpath('work2', 'my_sconsign'))) -test.fail_test(any_dbm_file(test.workpath('work2', '.sconsign.dbm'))) +test.must_exist(test.workpath('work2', 'my_sconsign.dblite')) test.must_not_exist(test.workpath('work2', '.sconsign')) test.must_not_exist(test.workpath('work2', 'subdir', '.sconsign')) |