[packages/chromium-browser/DEVEL] move test cleanup to remove_tests(), cleanup unittest files

glen glen at pld-linux.org
Fri Jan 4 22:44:48 CET 2013


commit da3dfa9f9ce46472030d6512a4c528526327662b
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Jan 3 23:59:44 2013 +0200

    move test cleanup to remove_tests(), cleanup unittest files

 clean-source.sh | 363 +++++++++++++++++++++++++++++---------------------------
 1 file changed, 188 insertions(+), 175 deletions(-)
---
diff --git a/clean-source.sh b/clean-source.sh
index 21fdcb9..e701476 100755
--- a/clean-source.sh
+++ b/clean-source.sh
@@ -9,8 +9,6 @@ eval "$@"
 # Strip tarball from some big directories not needed on the linux platform
 # https://code.google.com/p/chromium/wiki/LinuxPackaging
 # initial list from src/tools/export_tarball/export_tarball.py
-# some scanned with find -name tests -o -name test -o -name test_data
-# and find -iname *test*
 # also removed non-linux files: find -name win -o -name mac -o name android
 # find -type d -name 'android' -o -name 'chromeos' -o -name 'cros'
 # suffix with _ those that we can't remove (just yet) because of the gclient
@@ -22,21 +20,13 @@ remove_nonessential_dirs() {
 	ash/resources/default_100_percent/cros_ \
 	ash/resources/default_200_percent/cros_ \
 	ash/system/chromeos \
-	ash/test \
 	base/android \
-	base/android/javatests/src/org/chromium/base/test \
 	base/chromeos \
 	base/mac_ \
-	base/test \
 	base/win_ \
 	breakpad/src/client/mac \
-	breakpad/src/client/mac/tests \
-	breakpad/src/client/windows/tests \
 	breakpad/src/common/android \
-	breakpad/src/common/android/testing \
-	breakpad/src/common/linux/tests \
 	breakpad/src/common/mac \
-	breakpad/src/common/tests \
 	breakpad/src/tools/mac \
 	build/android \
 	build/mac \
@@ -54,25 +44,18 @@ remove_nonessential_dirs() {
 	chrome/app/theme/touch_140_percent/win \
 	chrome/app/theme/touch_180_percent/win \
 	chrome/browser/android \
-	chrome/browser/chromeos/bluetooth/test \
 	chrome/browser/chromeos/cros \
 	chrome/browser/chromeos_ \
 	chrome/browser/component/web_contents_delegate_android_ \
-	chrome/browser/component_updater/test \
 	chrome/browser/history/android \
 	chrome/browser/mac \
-	chrome/browser/printing/cloud_print/test \
 	chrome/browser/resources/about_welcome_android \
 	chrome/browser/resources/chromeos_ \
-	chrome/browser/resources/gaia_auth/test \
 	chrome/browser/resources/ntp_android \
 	chrome/browser/resources/options/chromeos_ \
 	chrome/browser/resources/shared/css/chromeos \
 	chrome/browser/resources/shared/js/chromeos_ \
-	chrome/browser/resources/tracing/tests \
-	chrome/browser/sync/test \
 	chrome/browser/ui/android \
-	chrome/browser/ui/tests \
 	chrome/browser/ui/webui/chromeos \
 	chrome/browser/ui/webui/ntp/android \
 	chrome/browser/ui/webui/options/chromeos \
@@ -80,52 +63,31 @@ remove_nonessential_dirs() {
 	chrome/common/mac \
 	chrome/installer/mac \
 	chrome/installer/mac/third_party/xz/config/mac \
-	chrome/installer/test \
-	chrome/test/chromeos \
-	chrome/test/data/firefox2_nss_mac \
-	chrome/test/data/safe_browsing/old \
-	chrome/test/logging/win \
-	chrome/test/pyautolib/chromeos \
-	chrome/test/webdriver/test \
 	chrome/third_party/wtl/ \
 	chrome/tools/build/chromeos \
 	chrome/tools/build/mac \
 	chrome/tools/build/win \
-	chrome/tools/test \
-	chrome/tools/test/reference_build \
 	chrome_frame \
-	chrome_frame/test \
-	chrome_frame/tools/test \
 	chromeos \
 	cloud_print/service/win \
 	cloud_print/virtual_driver/win \
 	content/app/android \
 	content/browser/android \
-	content/browser/worker_host/test \
 	content/common/android \
 	content/common/mac_ \
 	content/public/android \
 	content/public/browser/android \
-	content/public/test \
 	content/renderer/android \
 	content/shell/android \
 	content/shell/mac \
-	content/test \
-	content/test/data/layout_tests/LayoutTests/http/tests \
-	content/test/data/layout_tests/LayoutTests/http/tests/websocket/tests \
-	content/test/data/layout_tests/LayoutTests/platform/chromium-win/http/tests \
-	courgette/testdata \
 	data \
 	gears \
 	google_update \
-	gpu/command_buffer/tests \
 	gpu/demos \
 	media/audio/android \
 	media/audio/mac \
 	media/audio/win \
 	media/base/android \
-	media/test \
-	media/tools/layout_tests/test_data \
 	media/video/capture/mac \
 	media/video/capture/win \
 	media/webm/chromeos \
@@ -137,68 +99,34 @@ remove_nonessential_dirs() {
 	native_client/src/trusted/desc/win \
 	native_client/src/trusted/nonnacl_util/win \
 	native_client/src/trusted/platform_qualify/win \
-	native_client/src/trusted/service_runtime/testdata \
 	native_client/src/trusted/service_runtime/win_ \
-	native_client/src/trusted/validator/x86/testing \
-	native_client/tests \
-	native_client/tools/tests \
 	native_client/tools/trusted_cross_toolchains \
 	native_client_sdk \
-	native_client_sdk/src/build_tools/tests \
-	native_client_sdk/src/libraries/c_salt/test \
 	native_client_sdk/src/libraries/win \
 	net/android \
-	net/test \
 	o3d \
 	o3d/documentation \
 	o3d/samples \
-	o3d/tests \
 	ppapi/native_client/src/trusted/plugin/win \
-	ppapi/native_client/tests \
-	ppapi/tests \
-	printing/test \
 	remoting/host/installer/mac \
 	remoting/host/installer/win \
 	remoting/host/mac \
 	remoting/host/setup/win \
 	remoting/host/win \
 	rlz/mac \
-	rlz/test \
 	rlz/win \
-	sandbox/linux/seccomp-legacy/tests \
-	sandbox/linux/tests \
-	sandbox/tests \
-	sandbox/win/tests \
 	sandbox/win_ \
 	sdch/mac \
-	seccompsandbox/tests \
 	skia/config/win \
-	sync/internal_api/public/test \
-	sync/internal_api/test \
-	sync/test \
-	testing/android \
-	testing/gmock/scripts/test \
-	testing/gmock/test \
-	testing/gtest/scripts/test \
-	testing/gtest/test \
-	third_party/WebKit/LayoutTests \
-	third_party/WebKit/Source/JavaScriptCore/API/tests \
-	third_party/WebKit/Source/JavaScriptCore/qt/tests \
-	third_party/WebKit/Source/JavaScriptCore/tests \
 	third_party/WebKit/Source/Platform/chromium/public/android \
 	third_party/WebKit/Source/Platform/chromium/public/mac \
 	third_party/WebKit/Source/Platform/chromium/public/win \
-	third_party/WebKit/Source/ThirdParty/gtest/scripts/test \
-	third_party/WebKit/Source/ThirdParty/gtest/test \
-	third_party/WebKit/Source/ThirdParty/gyp/test \
-	third_party/WebKit/Source/ThirdParty/qunit/test \
 	third_party/WebKit/Source/WTF/wtf/mac \
 	third_party/WebKit/Source/WTF/wtf/threads/win \
 	third_party/WebKit/Source/WTF/wtf/win \
 	third_party/WebKit/Source/WebCore/WebCore.gyp/mac \
 	third_party/WebKit/Source/WebCore/accessibility/mac \
 	third_party/WebKit/Source/WebCore/accessibility/win \
-	third_party/WebKit/Source/WebCore/bindings/scripts/test \
 	third_party/WebKit/Source/WebCore/editing/android \
 	third_party/WebKit/Source/WebCore/editing/mac \
 	third_party/WebKit/Source/WebCore/history/android \
@@ -231,7 +159,6 @@ remove_nonessential_dirs() {
 	third_party/WebKit/Source/WebCore/platform/wx/wxcode/win \
 	third_party/WebKit/Source/WebCore/plugins/mac \
 	third_party/WebKit/Source/WebCore/plugins/win \
-	third_party/WebKit/Source/WebCore/testing_ \
 	third_party/WebKit/Source/WebKit/chromium/public/android \
 	third_party/WebKit/Source/WebKit/chromium/public/mac_ \
 	third_party/WebKit/Source/WebKit/chromium/public/platform/android \
@@ -241,11 +168,7 @@ remove_nonessential_dirs() {
 	third_party/WebKit/Source/WebKit/chromium/src/android \
 	third_party/WebKit/Source/WebKit/chromium/src/mac \
 	third_party/WebKit/Source/WebKit/chromium/src/win \
-	third_party/WebKit/Source/WebKit/chromium/tests \
-	third_party/WebKit/Source/WebKit/efl/tests \
-	third_party/WebKit/Source/WebKit/gtk/tests \
 	third_party/WebKit/Source/WebKit/mac \
-	third_party/WebKit/Source/WebKit/qt/tests \
 	third_party/WebKit/Source/WebKit/win \
 	third_party/WebKit/Source/WebKit2/Platform/CoreIPC/mac \
 	third_party/WebKit/Source/WebKit2/Platform/CoreIPC/win \
@@ -262,10 +185,7 @@ remove_nonessential_dirs() {
 	third_party/WebKit/Source/WebKit2/Shared/win \
 	third_party/WebKit/Source/WebKit2/UIProcess/API/C/mac \
 	third_party/WebKit/Source/WebKit2/UIProcess/API/C/win \
-	third_party/WebKit/Source/WebKit2/UIProcess/API/efl/tests \
-	third_party/WebKit/Source/WebKit2/UIProcess/API/gtk/tests \
 	third_party/WebKit/Source/WebKit2/UIProcess/API/mac \
-	third_party/WebKit/Source/WebKit2/UIProcess/API/qt/tests \
 	third_party/WebKit/Source/WebKit2/UIProcess/Launcher/mac \
 	third_party/WebKit/Source/WebKit2/UIProcess/Launcher/win \
 	third_party/WebKit/Source/WebKit2/UIProcess/Plugins/mac \
@@ -293,29 +213,13 @@ remove_nonessential_dirs() {
 	third_party/WebKit/Source/WebKit2/WebProcess/win \
 	third_party/WebKit/Source/WebKit2/mac \
 	third_party/WebKit/Source/WebKit2/win \
-	third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/mac \
-	third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/win \
-	third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/mac \
-	third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/win \
 	third_party/WebKit/Tools/DumpRenderTree/mac \
 	third_party/WebKit/Tools/DumpRenderTree/win \
-	third_party/WebKit/Tools/Scripts/webkitpy/test \
-	third_party/WebKit/Tools/TestWebKitAPI/Tests/TestWebKitAPI/mac \
-	third_party/WebKit/Tools/TestWebKitAPI/Tests/WebKit/win \
-	third_party/WebKit/Tools/TestWebKitAPI/Tests/WebKit2/mac \
-	third_party/WebKit/Tools/TestWebKitAPI/Tests/WebKit2/win \
-	third_party/WebKit/Tools/TestWebKitAPI/Tests/mac \
-	third_party/WebKit/Tools/TestWebKitAPI/mac \
-	third_party/WebKit/Tools/TestWebKitAPI/win \
 	third_party/angle/samples/gles2_book \
-	third_party/angle/tests \
 	third_party/boost \
 	third_party/bsdiff \
 	third_party/bspatch \
-	third_party/cacheinvalidation/files/src/google/cacheinvalidation/test \
 	third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/external/client/android \
-	third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/testing \
-	third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/testing/android \
 	third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/ticl/android \
 	third_party/cld/encodings/compact_lang_det/win_ \
 	third_party/cros_system_api_ \
@@ -326,50 +230,31 @@ remove_nonessential_dirs() {
 	third_party/ffmpeg/chromium/config/Chromium/mac \
 	third_party/ffmpeg/chromium/config/Chromium/win \
 	third_party/ffmpeg/chromium/include/win \
-	third_party/ffmpeg/tests \
 	third_party/fuzzymatch \
 	third_party/gles2_book \
 	third_party/gles_book_examples \
 	third_party/gold \
-	third_party/harfbuzz/tests \
 	third_party/hunspell/dictionaries \
-	third_party/hunspell/tests \
 	third_party/hunspell_dictionaries \
-	third_party/hyphen/tests \
 	third_party/icu/android \
 	third_party/icu/mac \
 	third_party/lcov \
 	third_party/leveldatabase/src/port/win \
-	third_party/libexif/sources/test \
-	third_party/libjingle/source/talk/app/webrtc/test \
 	third_party/libjpeg_turbo/mac \
 	third_party/libjpeg_turbo/win \
-	third_party/libphonenumber/src/resources/test \
-	third_party/libphonenumber/src/test \
-	third_party/libsrtp/srtp/crypto/test \
-	third_party/libsrtp/srtp/test \
 	third_party/libva/va/android \
 	third_party/libvpx/source/config/mac \
 	third_party/libvpx/source/config/win \
 	third_party/libxml/mac \
 	third_party/lighttpd \
-	third_party/mesa/MesaLib/src/gallium/tests \
-	third_party/mesa/MesaLib/src/gallium/tests/python/tests \
 	third_party/mozc/chrome/chromeos_ \
 	third_party/nspr \
 	third_party/nss \
 	third_party/ocmock \
 	third_party/openssl/config/android \
-	third_party/openssl/openssl/crypto/des/t/test \
-	third_party/openssl/openssl/test \
-	third_party/ots/test \
-	third_party/protobuf/src/google/protobuf/testing \
 	third_party/pthread \
 	third_party/pyftpdlib \
-	third_party/re2/re2/testing \
-	third_party/safe_browsing/testing \
 	third_party/scons \
-	third_party/sfntly/cpp/src/test \
 	third_party/simplejson \
 	third_party/skia/include/utils/android \
 	third_party/skia/include/utils/mac \
@@ -383,62 +268,21 @@ remove_nonessential_dirs() {
 	third_party/skia/src/views/mac \
 	third_party/skia/src/views/win \
 	third_party/snappy/mac \
-	third_party/sqlite/src/test \
-	third_party/sqlite/test \
-	third_party/talloc/libreplace/test \
-	third_party/tcmalloc/chromium/src/tests \
-	third_party/tcmalloc/vendor/src/tests \
 	third_party/tcmalloc_ \
-	third_party/tlslite/test \
-	third_party/trace-viewer/test_data \
-	third_party/v8-i18n/tests \
 	third_party/vc_80 \
-	third_party/webdriver/pylib/test \
-	third_party/webdriver/test_data \
 	third_party/webrtc/modules/audio_device/android \
 	third_party/webrtc/modules/audio_device/main/source/mac \
 	third_party/webrtc/modules/audio_device/main/source/win \
-	third_party/webrtc/modules/audio_device/test/android \
 	third_party/webrtc/modules/audio_device/win \
-	third_party/webrtc/modules/audio_processing/test/android \
 	third_party/webrtc/modules/video_capture/main/source/android \
-	third_party/webrtc/modules/video_capture/main/test/android \
 	third_party/webrtc/modules/video_render/main/source/android \
 	third_party/webrtc/modules/video_render/main/source/mac \
 	third_party/webrtc/system_wrappers/source/android \
-	third_party/webrtc/test/testsupport/mac \
-	third_party/webrtc/video_engine/test/android \
-	third_party/webrtc/video_engine/test/auto_test/android \
-	third_party/webrtc/voice_engine/test/android \
-	third_party/xdg-utils/tests \
 	third_party/yasm/source/config/android \
 	third_party/yasm/source/config/mac \
 	third_party/yasm/source/config/win \
-	third_party/yasm/source/patched-yasm/libyasm/tests \
-	third_party/yasm/source/patched-yasm/modules/arch/lc3b/tests \
-	third_party/yasm/source/patched-yasm/modules/arch/x86/tests \
-	third_party/yasm/source/patched-yasm/modules/dbgfmts/dwarf2/tests \
-	third_party/yasm/source/patched-yasm/modules/dbgfmts/stabs/tests \
-	third_party/yasm/source/patched-yasm/modules/objfmts/bin/tests \
-	third_party/yasm/source/patched-yasm/modules/objfmts/coff/tests \
-	third_party/yasm/source/patched-yasm/modules/objfmts/elf/tests \
-	third_party/yasm/source/patched-yasm/modules/objfmts/macho/tests \
-	third_party/yasm/source/patched-yasm/modules/objfmts/rdf/tests \
-	third_party/yasm/source/patched-yasm/modules/objfmts/win32/tests \
-	third_party/yasm/source/patched-yasm/modules/objfmts/win64/tests \
-	third_party/yasm/source/patched-yasm/modules/objfmts/xdf/tests \
-	third_party/yasm/source/patched-yasm/modules/parsers/gas/tests \
-	third_party/yasm/source/patched-yasm/modules/parsers/nasm/tests \
-	third_party/yasm/source/patched-yasm/modules/parsers/tasm/tests \
-	third_party/yasm/source/patched-yasm/modules/preprocs/nasm/tests \
-	third_party/yasm/source/patched-yasm/modules/preprocs/raw/tests \
-	third_party/yasm/source/patched-yasm/tools/python-yasm/tests \
 	tools/android \
-	tools/clang/plugins/tests \
-	tools/gyp/test \
 	tools/mac \
-	tools/page_cycler/webpagereplay/tests \
-	tools/perf_expectations/tests \
 	tools/site_compare \
 	tools/stats_viewer \
 	tools/symsrc \
@@ -446,28 +290,15 @@ remove_nonessential_dirs() {
 	tools/win \
 	tools/wine_valgrind \
 	ui/android \
-	ui/app_list/test \
-	ui/aura/test \
 	ui/base/ime/win \
-	ui/base/test \
 	ui/base/win_ \
-	ui/compositor/test \
 	ui/gfx/android \
 	ui/gfx/mac \
-	ui/gfx/test \
 	ui/resources/default_100_percent/cros_ \
 	ui/resources/default_200_percent/cros_ \
-	ui/test \
-	ui/views/test \
 	ui/views/win \
-	v8/test \
-	v8/test/cctest \
 	webkit/chromeos \
-	webkit/data/layout_tests \
 	webkit/media/android \
-	webkit/plugins/npapi/test \
-	webkit/tools/test/reference_build \
-	webkit/tools/test_shell/mac \
 	win8 \
 	; do
 		rm -vfr "$dir"
@@ -480,9 +311,7 @@ almost_strip_dirs() {
 	local dir
 	for dir in \
 		breakpad \
-		chrome/test/data \
 		courgette \
-		testing \
 		third_party/cros_dbus_cplusplus \
 		; do
 		find $dir -depth -mindepth 1 \! \( -name '*.gyp' -o -name '*.gypi' \) -print -delete || :
@@ -502,10 +331,6 @@ almost_strip_dirs() {
 		'!' -path 'tools/uuidgen.py' \
 		'!' -path 'tools/zip2msi.py' \
 		-print -delete
-
-	# link headers from system dir. too many files to patch, we don't even build tests
-	install -d testing/gtest/include
-	ln -s /usr/include/gtest testing/gtest/include/gtest
 }
 
 # clean third party
@@ -601,9 +426,197 @@ strip_system_dirs() {
 	done
 }
 
+# remove test data and files
+# some scanned with find -name tests -o -name test -o -name test_data
+# and find -iname *test*
+remove_tests() {
+	local dir
+
+	# full remove
+	for dir in \
+	ash/test \
+	base/test \
+	breakpad/src/client/windows/tests \
+	breakpad/src/common/linux/tests \
+	breakpad/src/common/tests \
+	chrome/browser/chromeos/bluetooth/test \
+	chrome/browser/component_updater/test \
+	chrome/browser/printing/cloud_print/test \
+	chrome/browser/resources/gaia_auth/test \
+	chrome/browser/resources/tracing/tests \
+	chrome/browser/sync/test \
+	chrome/browser/ui/tests \
+	chrome/installer/test \
+	chrome/test/chromeos \
+	chrome/test/data/firefox2_nss_mac \
+	chrome/test/data/safe_browsing/old \
+	chrome/test/logging/win \
+	chrome/test/pyautolib/chromeos \
+	chrome/test/webdriver/test \
+	chrome/tools/test \
+	chrome_frame/test \
+	chrome_frame/tools/test \
+	content/browser/worker_host/test \
+	content/public/test \
+	content/test \
+	courgette/testdata \
+	gpu/command_buffer/tests \
+	media/test \
+	media/tools/layout_tests/test_data \
+	native_client/src/trusted/service_runtime/testdata \
+	native_client/src/trusted/validator/x86/testing \
+	native_client/tests \
+	native_client/tools/tests \
+	native_client_sdk/src/build_tools/tests \
+	native_client_sdk/src/libraries/c_salt/test \
+	net/test \
+	o3d/tests \
+	ppapi/native_client/tests \
+	ppapi/tests \
+	printing/test \
+	rlz/test \
+	sandbox/linux/seccomp-legacy/tests \
+	sandbox/linux/tests \
+	sandbox/tests \
+	sandbox/win/tests \
+	seccompsandbox/tests \
+	sync/internal_api/public/test \
+	sync/internal_api/test \
+	sync/test \
+	testing/android \
+	testing/gmock/scripts/test \
+	testing/gmock/test \
+	testing/gtest/scripts/test \
+	testing/gtest/test \
+	third_party/WebKit/LayoutTests \
+	third_party/WebKit/Source/JavaScriptCore/API/tests \
+	third_party/WebKit/Source/JavaScriptCore/qt/tests \
+	third_party/WebKit/Source/JavaScriptCore/tests \
+	third_party/WebKit/Source/ThirdParty/gtest/scripts/test \
+	third_party/WebKit/Source/ThirdParty/gtest/test \
+	third_party/WebKit/Source/ThirdParty/gyp/test \
+	third_party/WebKit/Source/ThirdParty/qunit/test \
+	third_party/WebKit/Source/WebCore/bindings/scripts/test \
+	third_party/WebKit/Source/WebCore/testing_ \
+	third_party/WebKit/Source/WebKit/chromium/tests \
+	third_party/WebKit/Source/WebKit/efl/tests \
+	third_party/WebKit/Source/WebKit/gtk/tests \
+	third_party/WebKit/Source/WebKit/qt/tests \
+	third_party/WebKit/Source/WebKit2/UIProcess/API/efl/tests \
+	third_party/WebKit/Source/WebKit2/UIProcess/API/gtk/tests \
+	third_party/WebKit/Source/WebKit2/UIProcess/API/qt/tests \
+	third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/mac \
+	third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/Tests/win \
+	third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/mac \
+	third_party/WebKit/Tools/DumpRenderTree/TestNetscapePlugIn/win \
+	third_party/WebKit/Tools/Scripts/webkitpy/test \
+	third_party/WebKit/Tools/TestWebKitAPI/Tests/TestWebKitAPI/mac \
+	third_party/WebKit/Tools/TestWebKitAPI/Tests/WebKit/win \
+	third_party/WebKit/Tools/TestWebKitAPI/Tests/WebKit2/mac \
+	third_party/WebKit/Tools/TestWebKitAPI/Tests/WebKit2/win \
+	third_party/WebKit/Tools/TestWebKitAPI/Tests/mac \
+	third_party/WebKit/Tools/TestWebKitAPI/mac \
+	third_party/WebKit/Tools/TestWebKitAPI/win \
+	third_party/angle/tests \
+	third_party/cacheinvalidation/files/src/google/cacheinvalidation/test \
+	third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/testing \
+	third_party/cacheinvalidation/src/java/com/google/ipc/invalidation/testing/android \
+	third_party/ffmpeg/tests \
+	third_party/harfbuzz/tests \
+	third_party/hunspell/tests \
+	third_party/hyphen/tests \
+	third_party/libexif/sources/test \
+	third_party/libjingle/source/talk/app/webrtc/test \
+	third_party/libphonenumber/src/resources/test \
+	third_party/libphonenumber/src/test \
+	third_party/libsrtp/srtp/crypto/test \
+	third_party/libsrtp/srtp/test \
+	third_party/mesa/MesaLib/src/gallium/tests \
+	third_party/openssl/openssl/crypto/des/t/test \
+	third_party/openssl/openssl/test \
+	third_party/ots/test \
+	third_party/protobuf/src/google/protobuf/testing \
+	third_party/re2/re2/testing \
+	third_party/safe_browsing/testing \
+	third_party/sfntly/cpp/src/test \
+	third_party/sqlite/src/test \
+	third_party/sqlite/test \
+	third_party/talloc/libreplace/test \
+	third_party/tcmalloc/chromium/src/tests \
+	third_party/tcmalloc/vendor/src/tests \
+	third_party/tlslite/test \
+	third_party/trace-viewer/test_data \
+	third_party/v8-i18n/tests \
+	third_party/webdriver/pylib/test \
+	third_party/webdriver/test_data \
+	third_party/webrtc/modules/audio_device/test/android \
+	third_party/webrtc/modules/audio_processing/test/android \
+	third_party/webrtc/modules/video_capture/main/test/android \
+	third_party/webrtc/test/testsupport/mac \
+	third_party/webrtc/video_engine/test/android \
+	third_party/webrtc/video_engine/test/auto_test/android \
+	third_party/webrtc/voice_engine/test/android \
+	third_party/xdg-utils/tests \
+	third_party/yasm/source/patched-yasm/libyasm/tests \
+	third_party/yasm/source/patched-yasm/modules/arch/lc3b/tests \
+	third_party/yasm/source/patched-yasm/modules/arch/x86/tests \
+	third_party/yasm/source/patched-yasm/modules/dbgfmts/dwarf2/tests \
+	third_party/yasm/source/patched-yasm/modules/dbgfmts/stabs/tests \
+	third_party/yasm/source/patched-yasm/modules/objfmts/bin/tests \
+	third_party/yasm/source/patched-yasm/modules/objfmts/coff/tests \
+	third_party/yasm/source/patched-yasm/modules/objfmts/elf/tests \
+	third_party/yasm/source/patched-yasm/modules/objfmts/macho/tests \
+	third_party/yasm/source/patched-yasm/modules/objfmts/rdf/tests \
+	third_party/yasm/source/patched-yasm/modules/objfmts/win32/tests \
+	third_party/yasm/source/patched-yasm/modules/objfmts/win64/tests \
+	third_party/yasm/source/patched-yasm/modules/objfmts/xdf/tests \
+	third_party/yasm/source/patched-yasm/modules/parsers/gas/tests \
+	third_party/yasm/source/patched-yasm/modules/parsers/nasm/tests \
+	third_party/yasm/source/patched-yasm/modules/parsers/tasm/tests \
+	third_party/yasm/source/patched-yasm/modules/preprocs/nasm/tests \
+	third_party/yasm/source/patched-yasm/modules/preprocs/raw/tests \
+	third_party/yasm/source/patched-yasm/tools/python-yasm/tests \
+	tools/clang/plugins/tests \
+	tools/gyp/test \
+	tools/page_cycler/webpagereplay/tests \
+	tools/perf_expectations/tests \
+	ui/app_list/test \
+	ui/aura/test \
+	ui/base/test \
+	ui/compositor/test \
+	ui/gfx/test \
+	ui/test \
+	ui/views/test \
+	v8/test \
+	webkit/data/layout_tests \
+	webkit/plugins/npapi/test \
+	webkit/tools/test/reference_build \
+	webkit/tools/test_shell/mac \
+	; do
+		rm -vfr "$dir"
+	done
+
+	# partial remove (keep .gyp)
+	for dir in \
+		chrome/test/data \
+		testing \
+		; do
+		find $dir -depth -mindepth 1 '!' '(' -name '*.gyp' -o -name '*.gypi' ')' -print -delete
+	done
+
+	# link headers from system dir. too many files to patch, we don't even build tests
+	install -d testing/gtest/include
+	ln -s /usr/include/gtest testing/gtest/include/gtest
+
+	# delete unittest files
+	find -name '*_unittest.*' \
+		-print -delete
+}
+
 remove_nonessential_dirs | tee -a REMOVED-nonessential_dirs.txt
 almost_strip_dirs | tee -a REMOVED-stripped.txt
 remove_bin_only | tee -a REMOVED-bin_only.txt
+remove_tests | tee -a REMOVED-tests.txt
 
 strip_system_dirs \
 	native_client/src/third_party_mod/jsoncpp \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/chromium-browser.git/commitdiff/4884fc995902450f6cd5512b71e22d5566e4448d



More information about the pld-cvs-commit mailing list