Add log-related command-line options to unit tests.
You can now specify the following when running a unit test:
-p, --print-logs
Print the log messages as they are being generated.
-o, --log-file=FILE
Print all log messages to FILE instead of standard output
Also, when a test fails the messages no longer get dumped to standard
output. They only get dumped when specifying --print-logs.
Change-Id: Icc265734f302c27c24829409ca6f7c8fce2979d4
diff --git a/aos/build/externals.gyp b/aos/build/externals.gyp
index e72f4f7..315f0bf 100644
--- a/aos/build/externals.gyp
+++ b/aos/build/externals.gyp
@@ -129,16 +129,18 @@
'type': 'static_library',
'sources': [
'<(externals)/gtest-<(gtest_version)/src/gtest-all.cc',
- '<(externals)/gtest-<(gtest_version)/fused-src/gtest/gtest_main.cc',
+ '<(AOS)/externals/gtest/gtest_main.cc',
],
'include_dirs': [
'<(externals)/gtest-<(gtest_version)',
],
'dependencies': [
'gtest_prod',
+ '<(AOS)/common/common.gyp:queue_testutils',
],
'export_dependent_settings': [
'gtest_prod',
+ '<(AOS)/common/common.gyp:queue_testutils',
],
'cflags!': ['-Werror'],
'direct_dependent_settings': {