Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12d15750 authored by Yifan Hong's avatar Yifan Hong
Browse files

Convert healthd_test to Soong

This makefile is not included before, so it was never built. Also do
the following changes to make sure it works:

- Remove non-existing libhealthd_internal dep
- Add necessary libhealthd_charger dep because it tests AnimationParser
- Since it tests AnimationParser, change its name to
libhealthd_charger_test

Test: run it

Change-Id: If7f91de4b910024f27d09a25ca801e67b98221db
parent 2a06ae82
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -240,3 +240,16 @@ cc_test {
    defaults: ["charger_defaults"],
    srcs: ["charger_test.cpp"],
}

cc_test {
    name: "libhealthd_charger_test",
    srcs: ["AnimationParser_test.cpp"],
    shared_libs: [
        "liblog",
        "libbase",
        "libcutils",
    ],
    static_libs: [
        "libhealthd_charger",
    ],
}

healthd/tests/Android.mk

deleted100644 → 0
+0 −21
Original line number Diff line number Diff line
# Copyright 2016 The Android Open Source Project

LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
    AnimationParser_test.cpp \

LOCAL_MODULE := healthd_test
LOCAL_MODULE_TAGS := tests

LOCAL_STATIC_LIBRARIES := \
	libhealthd_internal \

LOCAL_SHARED_LIBRARIES := \
	liblog \
	libbase \
	libcutils \

include $(BUILD_NATIVE_TEST)