summaryrefslogtreecommitdiffstats
path: root/base/base_nacl.gyp
diff options
context:
space:
mode:
authorhidehiko <hidehiko@chromium.org>2015-06-08 19:50:57 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-09 02:51:34 +0000
commit8fc7c823b9dd2b7890c96438f347383aa713c1d6 (patch)
treeceeaed6a3be8aac576fd337b45c9d12a47d956fd /base/base_nacl.gyp
parent92478e96a57d4f52032a9be47132e9455d9dd160 (diff)
downloadchromium_src-8fc7c823b9dd2b7890c96438f347383aa713c1d6.zip
chromium_src-8fc7c823b9dd2b7890c96438f347383aa713c1d6.tar.gz
chromium_src-8fc7c823b9dd2b7890c96438f347383aa713c1d6.tar.bz2
Non-SFI mode: Implement test launcher for nacl_helper_nonsfi_unittests.
This CL implements a test launcher customized for nacl_helper_nonsfi_unittests. - Existing nacl_helper_nonsfi_unittests is renamed to nacl_helper_nonsfi_unittests_main. - The new test launcher is built with a toolchain for the target architecture rather than PNaCl toolchain. - XmlUnitTestResultPrinter is now extracted into a separate file. TEST=Ran bots (with and without editing testing/buildbots scripts). Run locally. BUG=358465 Review URL: https://codereview.chromium.org/1154313003 Cr-Commit-Position: refs/heads/master@{#333430}
Diffstat (limited to 'base/base_nacl.gyp')
-rw-r--r--base/base_nacl.gyp25
1 files changed, 25 insertions, 0 deletions
diff --git a/base/base_nacl.gyp b/base/base_nacl.gyp
index 40005d2..7e7d34f 100644
--- a/base/base_nacl.gyp
+++ b/base/base_nacl.gyp
@@ -83,6 +83,7 @@
'base_switches.h',
# For PathExists and ReadFromFD.
+ 'files/file_util.cc',
'files/file_util_posix.cc',
# For MessageLoopForIO based on libevent.
@@ -112,6 +113,30 @@
'../third_party/libevent/libevent_nacl_nonsfi.gyp:event_nacl_nonsfi',
],
},
+ {
+ 'target_name': 'test_support_base_nacl_nonsfi',
+ 'type': 'none',
+ 'variables': {
+ 'nacl_untrusted_build': 1,
+ 'nlib_target': 'libtest_support_base_nacl_nonsfi.a',
+ 'build_glibc': 0,
+ 'build_newlib': 0,
+ 'build_irt': 0,
+ 'build_pnacl_newlib': 0,
+ 'build_nonsfi_helper': 1,
+
+ 'sources': [
+ 'test/gtest_util.cc',
+ 'test/launcher/unit_test_launcher_nacl_nonsfi.cc',
+ 'test/gtest_xml_unittest_result_printer.cc',
+ 'test/test_switches.cc',
+ ],
+ },
+ 'dependencies': [
+ 'base_nacl_nonsfi',
+ '../testing/gtest_nacl.gyp:gtest_nacl',
+ ],
+ },
],
}],
],