summaryrefslogtreecommitdiff
path: root/test/sconsign
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-06-25 16:03:54 +0000
committerSteven Knight <knight@baldmt.com>2005-06-25 16:03:54 +0000
commit01878e78547c411543d8afb3bd150d090f07447d (patch)
treecb651025caf743418b223345b1433ab32fb9bc99 /test/sconsign
parentc7027ef1090fc224c9b519dfb2b6928cb3a3512e (diff)
downloadscons-01878e78547c411543d8afb3bd150d090f07447d.tar.gz
Add a --raw option to the sconsign script.
Diffstat (limited to 'test/sconsign')
-rw-r--r--test/sconsign/script.py31
1 files changed, 25 insertions, 6 deletions
diff --git a/test/sconsign/script.py b/test/sconsign/script.py
index 2c54e401..24bcc70c 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: