diff options
author | Steven Knight <knight@baldmt.com> | 2005-06-25 16:03:54 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2005-06-25 16:03:54 (GMT) |
commit | db1a036e0fab2c761844c66b24e7bc3dfc21a165 (patch) | |
tree | cb651025caf743418b223345b1433ab32fb9bc99 /test | |
parent | 545c671e9b931c72dd82bac1943868052fa84b95 (diff) | |
download | SCons-db1a036e0fab2c761844c66b24e7bc3dfc21a165.zip SCons-db1a036e0fab2c761844c66b24e7bc3dfc21a165.tar.gz SCons-db1a036e0fab2c761844c66b24e7bc3dfc21a165.tar.bz2 |
Add a --raw option to the sconsign script.
Diffstat (limited to 'test')
-rw-r--r-- | test/sconsign/script.py | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/test/sconsign/script.py b/test/sconsign/script.py index 2c54e40..24bcc70 100644 --- a/test/sconsign/script.py +++ b/test/sconsign/script.py @@ -111,7 +111,7 @@ test.write(['work1', 'sub2', 'inc2.h'], r"""\ #define STRING2 "inc2.h" """) -test.run(chdir = 'work1', arguments = '--debug=stacktrace --implicit-cache .') +test.run(chdir = 'work1', arguments = '--implicit-cache .') test.run_sconsign(arguments = "work1/sub1/.sconsign", stdout = """\ @@ -121,6 +121,14 @@ hello.obj: \S+ None \d+ \d+ hello.c: \S+ """) +test.run_sconsign(arguments = "--raw work1/sub1/.sconsign", + stdout = """\ +hello.exe: {'bsig': '\S+', 'size': \d+, 'timestamp': \d+} + hello.obj: \S+ +hello.obj: {'bsig': '\S+', 'size': \d+, 'timestamp': \d+} + hello.c: \S+ +""") + test.run_sconsign(arguments = "-v work1/sub1/.sconsign", stdout = """\ hello.exe: @@ -315,6 +323,22 @@ hello.obj: \S+ None \d+ \d+ inc2.h: \S+ """) +test.run_sconsign(arguments = "--raw work2/.sconsign", + stdout = """\ +=== sub1: +hello.exe: {'bsig': '\S+', 'size': \d+, 'timestamp': \d+} + hello.obj: \S+ +hello.obj: {'bsig': '\S+', 'size': \d+, 'timestamp': \d+} + hello.c: \S+ +=== sub2: +hello.exe: {'bsig': '\S+', 'size': \d+, 'timestamp': \d+} + hello.obj: \S+ +hello.obj: {'bsig': '\S+', 'size': \d+, 'timestamp': \d+} + hello.c: \S+ + inc1.h: \S+ + inc2.h: \S+ +""") + test.run_sconsign(arguments = "-v work2/.sconsign", stdout = """\ === sub1: @@ -477,11 +501,6 @@ time.sleep(1) test.run(chdir = 'work2', arguments = '. --max-drift=1') -expect = """\ -=== sub1: -hello.c: None \S+ \d+ \d+ -""" - test.run_sconsign(arguments = "-e hello.exe -e hello.obj -d sub1 -f dblite work2/my_sconsign", stdout = """\ === sub1: |