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
9 files changed