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

Unverified Commit 8c849ce2 authored by Michael Bestas's avatar Michael Bestas
Browse files

sdk: Remove tests

They don't compile and they haven't been updated in years.
They barely cover any of the sdk code, so remove them instead of fixing
them.

Change-Id: I74b2811d0bcead9b590e6c58053bd4b9fd72fec6
parent cd36464e
Loading
Loading
Loading
Loading

tests/Android.mk

deleted100644 → 0
+0 −57
Original line number Diff line number Diff line
#
# Copyright (C) 2015 The CyanogenMod Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

LOCAL_MODULE_TAGS := tests

LOCAL_STATIC_JAVA_LIBRARIES := \
    org.lineageos.platform.internal \
    android-support-test \
    mockito-target

LOCAL_DEX_PREOPT := false

LOCAL_SRC_FILES := $(call all-subdir-java-files, src/)

LOCAL_PACKAGE_NAME := LineagePlatformTests
LOCAL_CERTIFICATE := platform
LOCAL_JAVA_LIBRARIES := android.test.runner
LOCAL_PROGUARD_ENABLED := optimization
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
LOCAL_PRIVATE_PLATFORM_APIS := true

include $(BUILD_PACKAGE)

# Register as LineageTS
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := tests

LOCAL_STATIC_JAVA_LIBRARIES := \
    org.lineageos.platform.internal \
    android-support-test \
    mockito-target

LOCAL_DEX_PREOPT := false

LOCAL_SRC_FILES := $(call all-subdir-java-files, src/)

LOCAL_PACKAGE_NAME := CmtsPlatformSDKTests
LOCAL_CERTIFICATE := platform
LOCAL_JAVA_LIBRARIES := android.test.runner
LOCAL_PROGUARD_ENABLED := optimization
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
include $(BUILD_LineageTS_PACKAGE)

tests/AndroidManifest.xml

deleted100644 → 0
+0 −83
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="org.lineageos.tests"
          android:versionCode="1"
          android:versionName="1.0">

    <uses-permission android:name="android.permission.REBOOT" />
    <uses-permission android:name="com.android.alarm.permission.SET_ALARM" />
    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.CAPTURE_AUDIO_HOTWORD" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />

    <uses-permission android:name="lineageos.permission.BIND_CUSTOM_TILE_LISTENER_SERVICE"/>
    <uses-permission android:name="lineageos.permission.PUBLISH_CUSTOM_TILE"/>
    <uses-permission android:name="lineageos.permission.WRITE_SETTINGS"/>
    <uses-permission android:name="lineageos.permission.WRITE_SECURE_SETTINGS"/>
    <uses-permission android:name="lineageos.permission.MODIFY_NETWORK_SETTINGS" />
    <uses-permission android:name="lineageos.permission.MODIFY_SOUND_SETTINGS" />
    <uses-permission android:name="lineageos.permission.MANAGE_ALARMS" />
    <uses-permission android:name="lineageos.permission.READ_ALARMS" />
    <uses-permission android:name="lineageos.permission.MODIFY_MSIM_PHONE_STATE" />
    <uses-permission android:name="lineageos.permission.READ_MSIM_PHONE_STATE" />
    <uses-permission android:name="lineageos.permission.HARDWARE_ABSTRACTION_ACCESS" />
    <uses-permission android:name="lineageos.permission.MODIFY_PROFILES" />
    <uses-permission android:name="lineageos.permission.MANAGE_PERSISTENT_STORAGE" />
    <uses-permission android:name="lineageos.permission.MANAGE_LIVEDISPLAY" />
    <uses-permission android:name="android.permission.STATUS_BAR_SERVICE" />

    <application android:name=".LineageOSTestApplication"
                 android:label="@string/app_name" android:icon="@drawable/ic_launcher">
        <uses-library android:name="android.test.runner" />
        <activity android:name=".customtiles.LineageStatusBarTest"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <activity android:name=".alarmclock.LineageAlarmClockTest"
                  android:label="@string/alarm_tests_activity_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <activity android:name=".telephony.LineageTelephonyTest"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <activity android:name=".profiles.ProfileTest"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <activity android:name=".versioning.VersioningTest"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <activity android:name=".hardware.LineageHardwareTest"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>

        <activity android:name=".customtiles.DummySettings"
                  android:label="@string/app_name" />
    </application>

    <instrumentation
            android:name="android.support.test.runner.AndroidJUnitRunner"
            android:targetPackage="org.lineageos.tests" />
</manifest>

tests/README.md

deleted100644 → 0
+0 −7
Original line number Diff line number Diff line
## Lineage Platform SDK Tests
The tests package contains both functional manual tests as well as unit
tests which can be ran utilizing the InstrumentationTestRunner from android.

To run the tests (on a live device):
  
  ```adb shell am instrument -w org.lineageos.tests/androidx.test.runner.AndroidJUnitRunner```

tests/proguard.flags

deleted100644 → 0
+0 −56
Original line number Diff line number Diff line
# Copyright (C) 2016 The CyanogenMod Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Don't skip non public library classes, make sure we're not keeping anything which will get mapped against api verification.
-dontskipnonpubliclibraryclasses

# Do the same with class members
-dontskipnonpubliclibraryclassmembers

# Keep test packages
-keep class androidx.** { *; }
-keep class android.test.** { *; }
-keep public class * extends androidx.** { *; }
-keep public class * extends android.test.** { *; }
-keep interface androidx.** { *; }
-keep interface android.test.** { *; }

# Keep all junit classes
-keep class junit.** { *; }
-keep class org.junit.** { *; }
-keep interface junit.** { *; }
-keep interface org.junit.** { *; }

# Keep compiled java classes from declared aidl's within the test package
-keep public class * extends android.os.IInterface { *; }

# Don't warn about the Android Support Test JUnit Runner
-dontwarn androidx.**
-dontwarn android.test.**

# Don't warn about junit
-dontwarn junit.**
-dontwarn org.junit.**

# keep mockito methods
-keep class org.mockito.** { *; }
-keep interface org.mockito.** { *; }
-keep class com.google.dexmaker.** { *; }
-keep interface com.google.dexmaker.** { *; }

# Always process
-forceprocessing

# Make sure not to obfuscate the output
-dontobfuscate
−3.34 KiB
Loading image diff...
Loading