tests: Set up testdata path for continuous native tests.
continuous_native_tests expects the testdata under DATA/ in
continuous_native_tests.zip. This CL packs a copy of the testdata into
continuous_native_tests.zip as DATA/nativetest/recovery/testdata (via
LOCAL_PICKUP_FILES).
This CL also removes the extra copy for nativetest64. Testdata will
always stay at /data/nativetest/recovery/testdata, even for 64-bit
version. Otherwise we will unnecessarily get four copies (two for data/
and another two for DATA/).
Bug: 32123241
Test: mmma bootable/recovery && adb sync data. On bullhead,
/data/nativetest/recovery_component_test/recovery_component_test works;
/data/nativetest64/recovery_component_test/recovery_component_test works.
Test: m continuous_native_test; DATA/nativetest/recovery/testdata exists.
Change-Id: Ifefa0309de7af23c77654e8e450848ca2da218c2
This commit is contained in:
@@ -37,9 +37,6 @@
|
||||
#include "common/test_constants.h"
|
||||
#include "print_sha1.h"
|
||||
|
||||
static const std::string DATA_PATH = getenv("ANDROID_DATA");
|
||||
static const std::string TESTDATA_PATH = "/recovery/testdata";
|
||||
|
||||
static void sha1sum(const std::string& fname, std::string* sha1, size_t* fsize = nullptr) {
|
||||
ASSERT_NE(nullptr, sha1);
|
||||
|
||||
@@ -72,10 +69,6 @@ static bool file_cmp(const std::string& f1, const std::string& f2) {
|
||||
return c1 == c2;
|
||||
}
|
||||
|
||||
static std::string from_testdata_base(const std::string& fname) {
|
||||
return DATA_PATH + NATIVE_TEST_PATH + TESTDATA_PATH + "/" + fname;
|
||||
}
|
||||
|
||||
class ApplyPatchTest : public ::testing::Test {
|
||||
public:
|
||||
static void SetUpTestCase() {
|
||||
|
||||
Reference in New Issue
Block a user