-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Merge recovery_component_test into recovery_unit_test.
Most of the tests in component/ are in fact unit tests. And it doesn't look practically beneficial to distinguish between the two: - They have the same test setup; - We always run both (recovery_unit_test and recovery_component_test) at the same time; - Breaking any of them would be equally bad. This CL merges the tests in recovery_component_test into recovery_unit_test to save the effort to maintain both. Test: Run recovery_unit_test on marlin (via `adb sync data`). Test: `atest recovery_unit_test` Change-Id: I93ff32e7219cd83425a4bcfe5613978a8dd48d75
- Loading branch information
Tao Bao
committed
Apr 30, 2019
1 parent
189c8f9
commit 4a01f36
Showing
16 changed files
with
115 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,6 +79,8 @@ librecovery_static_libs = [ | |
"libinstall", | ||
"librecovery_ui", | ||
"libminui", | ||
"libfusesideload", | ||
"libbootloader_message", | ||
"libotautil", | ||
|
||
"libhealthhalutils", | ||
|
@@ -87,10 +89,8 @@ librecovery_static_libs = [ | |
|
||
"[email protected]", | ||
"[email protected]", | ||
"libbootloader_message", | ||
"libext4_utils", | ||
"libfs_mgr", | ||
"libfusesideload", | ||
"libhidl-gen-utils", | ||
"libhidlbase", | ||
"libhidltransport", | ||
|
@@ -107,6 +107,7 @@ cc_test { | |
|
||
defaults: [ | ||
"recovery_test_defaults", | ||
"libupdater_defaults", | ||
], | ||
|
||
test_suites: ["device-tests"], | ||
|
@@ -115,16 +116,21 @@ cc_test { | |
"unit/*.cpp", | ||
], | ||
|
||
static_libs: libapplypatch_static_libs + [ | ||
"libinstall", | ||
static_libs: libapplypatch_static_libs + librecovery_static_libs + [ | ||
"librecovery_ui", | ||
"libminui", | ||
"libotautil", | ||
"libupdater", | ||
"libupdate_verifier", | ||
|
||
"libgtest_prod", | ||
"libprotobuf-cpp-lite", | ||
], | ||
|
||
data: ["testdata/*"], | ||
data: [ | ||
"testdata/*", | ||
":res-testdata", | ||
], | ||
} | ||
|
||
cc_test { | ||
|
@@ -142,33 +148,6 @@ cc_test { | |
], | ||
} | ||
|
||
cc_test { | ||
name: "recovery_component_test", | ||
isolated: true, | ||
|
||
defaults: [ | ||
"recovery_test_defaults", | ||
"libupdater_defaults", | ||
], | ||
|
||
test_suites: ["device-tests"], | ||
|
||
srcs: [ | ||
"component/*.cpp", | ||
], | ||
|
||
static_libs: libapplypatch_static_libs + librecovery_static_libs + [ | ||
"libupdater", | ||
"libupdate_verifier", | ||
"libprotobuf-cpp-lite", | ||
], | ||
|
||
data: [ | ||
"testdata/*", | ||
":res-testdata", | ||
], | ||
} | ||
|
||
cc_test_host { | ||
name: "recovery_host_test", | ||
isolated: true, | ||
|
@@ -178,7 +157,7 @@ cc_test_host { | |
], | ||
|
||
srcs: [ | ||
"component/imgdiff_test.cpp", | ||
"unit/imgdiff_test.cpp", | ||
], | ||
|
||
static_libs: [ | ||
|
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.