adcb677e23bc0ee61f482e599a5091b0804b6e33 |
|
08-Aug-2017 |
Arthur Eubanks <aeubanks@google.com> |
Add API version to forward compatibility test name Blackbox reporter looks at method name, so forward compatibility tests that run the same test with same name will only report one test. Test: build and run forward compatibility tests Test: check in logcat that method names are different Change-Id: I1e6052346d7a5529e55e81bf3da473940914b6a7
/frameworks/rs/tests/java_api/RSUnitTests/RSUnitTests.py
|
c07967f88c517044df738a984a26946d9657d20d |
|
28-Jul-2017 |
Arthur Eubanks <aeubanks@google.com> |
Add a way to specify the min build tools version for unit test Before RSUnitTests assumed that the build tools version of Slang and the platform API version were the same. This causes tests for Slang regression fixes to either fail on forward compatibility tests or not run on backward compatibility tests based on what API version it is associated with in RSUnitTests.py. BUG: 64115371 Test: Run RSTestForward25 and check that reflection3264 doesn't appear in logs/classes.dex Change-Id: I4760655777e6a328cabc170c0d9c6b408f58122c
/frameworks/rs/tests/java_api/RSUnitTests/RSUnitTests.py
|
8901edffd17d9d5cdcb7d09e4f94aa3b3ecc71c5 |
|
25-Jul-2017 |
David Gross <dgross@google.com> |
Merge "Improve Java reflection for 32-bit versus 64-bit differences."
|
dfdc0b8c7caad293a0a970a30d8dbec3b9fbdaf0 |
|
24-Jul-2017 |
Arthur Eubanks <aeubanks@google.com> |
Change struct_field_simple test API version to 26 Failed on fugu pre API 26 due to b/29154200 Should only be running on API 26+ Test: presubmit Change-Id: Idb0d1f1f9daeb40ad5e25791803c21d98fea1d56
/frameworks/rs/tests/java_api/RSUnitTests/RSUnitTests.py
|
a5eaa3f317eca21b72429b0616acc0882852efdc |
|
14-Jul-2017 |
David Gross <dgross@google.com> |
Improve Java reflection for 32-bit versus 64-bit differences. Bug: 32780232 Bug: 20260865 Bug: 21597073 This CL goes along with a frameworks/compile/slang change that contains the actual fixes. This CL makes three changes: 1) Adds RenderScript.getPointerSize() method to compatibility library for use by reflected code. 2) Adds UT_reflection3264 test case to tests/java_api/RSUnitTests. 3) Fixes test case apitest.rs to conform to 32-bit/64-bit consistency requirements. Test: many - RsTest aosp_x86_64-eng (aosp, emulator) 32-bit and 64-bit - RSTestBackward - aosp_arm-eng - n9 LMP MR1 Release (LM) - angler MNC DR Release (MD) - aosp_arm64-eng - n9 LMP MR1 Release (LM) - angler MNC DR Release (MD) - RSTest_Backward19 - aosp_arm-eng - n5 KLP MR2 Release (KT) - n9 LMP MR1 Release (LM) - angler MNC DR Release (MD) - RSTest_CompatLib - aosp_arm-eng - n9 LMP MR1 Release (LM) - angler MNC DR Release (MD) - aosp_arm64-eng - n9 LMP MR1 Release (LM) - angler MNC DR Release (MD) - aosp_x86-eng - emulator aosp - aosp_x86_64-eng - emulator aosp - RSTest_Compat19 - aosp_arm-eng - n5 KLP MR2 Release (KT) - n9 LMP MR1 Release (LM) - angler MNC DR Release (MD) - aosp_x86 - emulator aosp Change-Id: If65a3b7fbe281d24e9707a02304a1e676bf3a072
/frameworks/rs/tests/java_api/RSUnitTests/RSUnitTests.py
|
ac9211a90779aaf785a3f752a80837f01f0f00ae |
|
29-Jun-2017 |
Arthur Eubanks <aeubanks@google.com> |
Make all RSTestForward apks have different package names Results not reporting correctly since all the RSTestForward targets have the same package name Test: make -j50 RSTests Change-Id: Ib5aec67ee1e9fe122325cd015f810f4f86da3d1b
/frameworks/rs/tests/java_api/RSUnitTests/RSUnitTests.py
|
3020398bb0296c065b6224a9dfca09c203973fdb |
|
09-Jun-2017 |
Arthur Eubanks <aeubanks@google.com> |
Add targets that build rs platform/unbundled tests "make ENABLE_RSTESTS=true RSTests" to build all RS continuous tests into zip file "make RSUnbundledTests" to build all RS unbundled continuous tests into zip file Test: make dist ENABLE_RSTESTS=true RSTests Test: make dist RSUnbundledTests Change-Id: I2470d0ac1e03dc287ca0f6b8389379a52890c4b4
/frameworks/rs/tests/java_api/RSUnitTests/RSUnitTests.py
|
7c7c00b95e45df7a571922fa40a019fd384fc106 |
|
16-May-2017 |
Arthur Eubanks <aeubanks@google.com> |
Add RSTest_Compat19 for support lib test for API 19 Update RSUnitTests.py to support generating Android.mk for RSTest_Compat19. Test: make dist RSTest_Compat19 FORCE_BUILD_RS_COMPAT=true Test: adb install -r RSTest_Compat19.apk Test: adb shell am instrument -w \ com.android.rs.testcompat19/android.support.test.runner.AndroidJUnitRunner Change-Id: I9b77f30ec2dc5bb34596807993704947ab64b833
/frameworks/rs/tests/java_api/RSUnitTests/RSUnitTests.py
|
0d13f3929129bf7e34bde1ed3670195c37a180eb |
|
13-May-2017 |
Arthur Eubanks <aeubanks@google.com> |
Add generating support lib tests from RSUnitTests RSUnitTests.py creates the support lib version of all unit tests by copying all relevant files in src/ to supportlibsrc_gen/. In the Java files, it replaces "import android.renderscript" with "import android.support.v8.renderscript". It also appends a "#define RSTEST_COMPAT" at the bottom of shared.rsh. Test: m -j50 RSTest_Compat This is in a future commit where RSTest_Compat uses RSUnitTests, the two commits are separated for logical reasons. Change-Id: I2dc97714cca6c8e92c005bd6abc7f849fc2c2515
/frameworks/rs/tests/java_api/RSUnitTests/RSUnitTests.py
|
7098f1f732c677995cdebd7d7f15171052c0cef9 |
|
17-May-2017 |
Arthur Eubanks <aeubanks@google.com> |
Merge "Add tests from RSTest_Compat to RSUnitTests"
|
79ac1515c99b6cf2ab71e73f9fc49213ebf11bb5 |
|
15-May-2017 |
Arthur Eubanks <aeubanks@google.com> |
Remove API 19 and 20 from RSTestForward Bug: 37956105 Test: None, just removing comments Change-Id: I5aab9f7a4f18b91d8761b82104a8cde8befea5b0
/frameworks/rs/tests/java_api/RSUnitTests/RSUnitTests.py
|
6cac172ca1fedbed3a1b2b3ddd82856aa6345393 |
|
12-May-2017 |
Arthur Eubanks <aeubanks@google.com> |
Add tests from RSTest_Compat to RSUnitTests There are tests in a new directory RSUnitTests/supportlibonlysrc/, they will actually be used in a later CL, but for now they are just sitting there. The added tests are copied from RSTest_Compat and modified to follow the conventions of RSUnitTests. UT_alloc_supportlib is UT_alloc from RSTest_Compat. It is different from the existing UT_alloc since the support library API is slightly more lenient, so I can't merge them. Test: make -j50 RSTestBackward RSTestBackward19 RSTestForward Test: adb install -r RSTestBackward.apk RSTestBackward19.apk RSTestForward*.apk Test: adb shell am instrument -w \ com.android.rs.testbackward/android.support.test.runner.AndroidJUnitRunner Test: adb shell am instrument -w \ com.android.rs.testbackward19/android.support.test.runner.AndroidJUnitRunner Test: adb shell am instrument -w \ com.android.rs.testforward/android.support.test.runner.AndroidJUnitRunner Change-Id: Iafd783de3b4d1a9b82079113aa34a5fb962169a1
/frameworks/rs/tests/java_api/RSUnitTests/RSUnitTests.py
|
06af00c4009025b8e652a503c0a47340a239deba |
|
01-May-2017 |
Arthur Eubanks <aeubanks@google.com> |
Add RSTestBackward for API 19 Necessary because if LOCAL_RENDERSCRIPT_TARGET_API is above 19, unit tests will fail on API 19. If LOCAL_RENDERSCRIPT_TARGET_API is 19, a bunch of unit tests will fail to compile, so we need to split post-19 and pre-19 backward compatibility versions. Test: m -j50 RSTestBackward19 Test: adb install -r RSTestBackward19.apk Test: adb shell am instrument -w \ com.android.rs.testbackward19/android.support.test.runner.AndroidJUnitRunner Change-Id: I4e417a2f688e85ced33a1f2e4678cc2deda8f69b
/frameworks/rs/tests/java_api/RSUnitTests/RSUnitTests.py
|
84ba5b7a39f3e791b9fd53dbddd9e46bc403ac4d |
|
09-May-2017 |
Arthur Eubanks <aeubanks@google.com> |
Remove LOCAL_RENDERSCRIPT_COMPATIBILITY from compatibility testing LOCAL_RENDERSCRIPT_COMPATIBILITY shouldn't be part of forward/backward compatibility testing since we're testing the platform, not support lib. Test: m -j50 dist RSTestBackward ENABLE_RSTESTFORWARD=true RSTestForward Test: adb install *.apk Test: adb shell am instrument -w \ com.android.rs.testbackward/android.support.test.runner.AndroidJUnitRunner Test: adb shell am instrument -w \ com.android.rs.testforward/android.support.test.runner.AndroidJUnitRunner Change-Id: I5a03d00df975cc2c7d1a36c8b061d21b1f877d79
/frameworks/rs/tests/java_api/RSUnitTests/RSUnitTests.py
|
092aff8b365f1fdc9912cc7d41bf4c5e8016d8fd |
|
19-Apr-2017 |
Arthur Eubanks <aeubanks@google.com> |
Add forward compatibility testing Create a Python script that: Generates backward compatibility tests list in Java file. Generates forward compatibility Android.mk file. More info in RSUnitTests.py Test: m RSTestBackward Test: adb install RSTestBackward.apk Test: adb shell am instrument -w \ com.android.rs.testbackward/android.support.test.runner.AndroidJUnitRunner Test: m ENABLE_RSTESTFORWARD=true RSTestForward dist Test: adb install RSTestForward_21_1_2.apk (found in out/dist) Test: adb shell am instrument -w \ com.android.rs.testforward/android.support.test.runner.AndroidJUnitRunner Test: repeat above two commands for all other RSTestForward_*.apk "m RSTestForward" only works if you point the location of the prebuilts in RSUnitTests.py to a location on disk with the actual prebuilts since they are not part of the source tree for git_master. This is why it's guarded with ENABLE_RSTESTFORWARD. This is expected to only work on another repo branch which also has the prebuilts/renderscript/host/linux-x86. That branch is still in the process of being created. Change-Id: I82d40c2308366cdae649ebc2dce17c8b3d9ea749
/frameworks/rs/tests/java_api/RSUnitTests/RSUnitTests.py
|