Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/12600
Change subject: systemc: Merge stderr and stdout when running tests.
......................................................................
systemc: Merge stderr and stdout when running tests.
The golden output for tests doesn't distinguish between stderr and
stdout, and by only comparing against stdout we have to throw away
errors which would be good to verify we get right. Also the tests
sometimes send output to stderr for no apparent reason, requiring
manually patching the tests.
This change adds filters for two messages which used to go to stderr
in gem5 but now show up in the diffs, one that just says the simulation
is starting, and the other for warns of unimplemented functionality.
The second warning should be turned on at some point so we make sure
everything the tests touch works and they don't just work by
coincidence, but for now it introduces a lot of noise among otherwise
passing tests.
Change-Id: I3b14f7807af561a79d6e0ca87aff1ab6051be596
---
M src/systemc/tests/verify.py
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/src/systemc/tests/verify.py b/src/systemc/tests/verify.py
index 19cca05..1283322 100755
--- a/src/systemc/tests/verify.py
+++ b/src/systemc/tests/verify.py
@@ -152,7 +152,7 @@
cmd.extend(timeout_cmd)
cmd.extend([
test.full_path(),
- '-red', os.path.abspath(test.m5out_dir()),
+ '-rd', os.path.abspath(test.m5out_dir()),
'--listener-mode=off',
'--quiet',
config_path,
@@ -225,17 +225,13 @@
warning_filt(540),
warning_filt(569),
warning_filt(571),
- error_filt(514),
- error_filt(515),
- error_filt(525),
- error_filt(541),
- error_filt(542),
- error_filt(543),
info_filt(804),
in_file_filt,
)
test_filt = merge_filts(
r'^Global frequency set at \d* ticks per second\n',
+ r'^info: Entering event queue @ \d*\. Starting
simulation\.\.\.\n',
+ r'warn: [^(]+\([^)]*\)( \[with [^]]*\])? not implemented\.\n',
info_filt(804),
in_file_filt,
)
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/12600
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I3b14f7807af561a79d6e0ca87aff1ab6051be596
Gerrit-Change-Number: 12600
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev