buildCts.py was the central script that generated all the
test package XMLs each time CTS was built. This had a
couple problems:
1. All the XML files for ~40 packages needed to be made
every time CTS was made. Even if those packages were
not touched at all.
2. Couldn't shard the XML generation process across the
available cores on a machine. A pool was added to the
python script, but it was set to a fixed number.
This change moves the test XML generation into a
smaller Java program called "cts-java-scanner" and
the doclet it relies upon to scan the Java files
into "cts-java-scanner-doclet.jar". The output of
the scanner like "cts-native-scanner" for native EXEs
is piped to the existing cts-xml-generator to
produce the test XMLs.
New CTS specific rules replace the standard
BUILD_PACKAGE and BUILD_HOST_JAVA_LIBRARY. They just
add extra rules for the package XML. The BUILD_CTS_PACKAGE
rule also adds a rule for copying the "package.apk"
to something more like "CtsFooTestCases.apk" to the
test case out directory. All the apks, exes, and xmls
are now thrown into a "cts-testcases" directory, before
they are copied to the final CTS distribution.
This change should prevent rebuilding the XMLs
unnecessarily and make rebuilding CTS quicker while
writing tests.
There are still the libcore tests that are always rebuilt,
but they can be adapted to fit into this model someday...
Change-Id: I52a916aa37fd679057e2709bb0ccec694c9fca01
* commit 'dc37b7251c8edd3e73797c4d0e3acb6df192fb59':
DO NOT MERGE Update CTS Version to 2.3_r10
Add SKT/KT rule into CtsTelephonyTestCases and use MCC+MNC code to distinguish SKT or KT carriers.
Fix AudioRecordTest to skip setUp() and tearDown() when MIC is not available.
fix IPv6 loopback pattern
Update the list UNSUPPORT_DATA_SMS_MESSAGES
Adjust the value of individualStartTimeoutMs to be consistent with the value of testStatusTimeoutMs.
Revert "Changed CTS runner to work with emulator"
Disable CTS Verifier BT Connection Access Tests
Fix Test Blacklist Mistake for HC MR2
Update CTS Verifier Version to 3.1 R2
Update CTS Version to 3.1 R5
Move the ListeningPortsTest from android.net.cts to android.security.cts,
to better indicate that this is a security related test.
Start triggering test failures when a process is bound to the loopback
interface. In those cases, it's always better to use a UNIX domain
socket instead of a locally bound IP socket. UNIX domain sockets
can be protected with unix filesystem permissions, or
getsockopt(SO_PEERCRED) can be used to indicate who is on the
other end of the socket.
Drastically fix the documentation to explain why this test is present.
Modify the IP addresses and port numbers to be more human readable.
Change-Id: Id83aadd1455279a1a2d3fb4fb1915af558355aca
* commit 'cb8b1d9566e122812b7da9346254bb97eb06bc40':
Only install necessary prequisite apks.
Execute remaining tests in order.
fix IPv6 loopback pattern
DO NOT MERGE Adjust test start date
Retain META-INF in core-tests.
Fix a mismatch problem because of hidden public API in CamcorderProfile.java
Update CTS Verifier Feature Summary
In /proc/net/udp6 and /proc/net/tcp6, the addresses stored
in that file are in network byte order. As a result, the IPv6
loopback address, ::1, is stored as
00000000000000000000000001000000 NOT
00000000000000000000000000000001
Bug: 5473686
Change-Id: I73098d52c981c48d82423c8ce99b6b20d11a5568
In /proc/net/udp6 and /proc/net/tcp6, the addresses stored
in that file are in network byte order. As a result, the IPv6
loopback address, ::1, is stored as
00000000000000000000000001000000 NOT
00000000000000000000000000000001
Bug: 5473686
Change-Id: I73098d52c981c48d82423c8ce99b6b20d11a5568
In /proc/net/udp6 and /proc/net/tcp6, the addresses stored
in that file are in network byte order. As a result, the IPv6
loopback address, ::1, is stored as
00000000000000000000000001000000 NOT
00000000000000000000000000000001
Bug: 5473686
Change-Id: I73098d52c981c48d82423c8ce99b6b20d11a5568
* commit 'e54f4889f65df9955e22a8adbbb8c1527220103e':
Data call establish time is related to network condition which can’t be controlled by the device. Extend the time limitation to 30 seconds to cover most of the cases.
* commit 'bb1ababef8fd8f0ba3e671b426ccc0d26f115ff7':
Data call establish time is related to network condition which can’t be controlled by the device. Extend the time limitation to 30 seconds to cover most of the cases.
- Add UID of listener to error message.
- Convert hex port number to decimal for easier reading by humans.
Change-Id: I0b8edcf14ebd0c039b936055a265f4706558f9fe
Bug 5178134
Some network types can throw SecurityExceptions and depend on the
build configuration. Don't fail the test if those throw exceptions.
Change-Id: I5365f85280a348ef1777d05ce50b2dff17a1312f
* commit '21bfd26fd69ac180ae35bf727dc8500fc56289ea':
Add test to ensure data/drm directory exists for drm process to write the certificate files. For bug 4950503.
Update Test Expectations for HC
Fix DeviceAdminReceiverTest NPE
Add a header for string.h for strerror and memset
Fix Screen Lock Test for HC
Update CTS Version to 3.0_r3
Fix webkit flakiness when waiting for results
Increase HDPI/XHDPI Non-XLarge Min Memory to 32
Use Uri.encode with HTML that contains special characters
Fix view tests to account for alternate actionbars
Bug fix for b/4491376 CTS failure in CtsAccessibilityServiceTestCases. Changed to holo.notitle theme and test code.
Add a case for density 213, which is used for some tv devices. The memory requirements are set to be the same as high and xhigh dpi
Fixes AudioRecorderTest and MediaRecorderTest when there are no mics or cameras present
Bug 4554251
This test launches multiple downloads at once to check that the
device can open up multiple sockets without OOMing. One test
tries to use wifi if available and the other tries to use
mobile by disconnecting wifi.
The CtsTestServer was modified to handle responses in separate
threads to test concurrent downloads.
Change-Id: Ifa1a11f409c69c1ae3ce621bf0542e0be56b50e0
Update the test to support a new enum value.
Once the SignatureTest is fixed to check enums there
shouldn't be any need for these enum checking tests.
Change-Id: I85d75e86453c37a35f8be9e15d99dd47c690f6ea
* commit '8128f7facef4648320b7ea4f93f27014ea153ac9':
Backport from HC to Fix NetworkInfoTest
Enhance the options check so that if we expect to see a null options bundle we accept a non-null but empty bundle as well.
Farewell Magnetometer Test
Bug 4322307
Fixed some other assertions that didn't check for
either CONNECTING or CONNECTED. Cleaned up some
code and removed some extraneous checks.
Original description:
"Fix cts tests for Wi-Fi only devices.
For Wi-Fi only device,
startUsingNetworkFeature() returns Phone.APN_TYPE_NOT_AVAILABLE
stopUsingNetworkFeature() return 1;
In NetworkInfoTest:
cm.getAllNetworkInfo() returns an array of NetworkInfo.
But the index is not based on network type."
Change-Id: I0b5e3d0cfe5fac18bca0a5ca2ce4cc73bc4dfa16
Bug 4322307
Fixed some other assertions that didn't check for
either CONNECTING or CONNECTED. Cleaned up some
code and removed some extraneous checks.
Original description:
"Fix cts tests for Wi-Fi only devices.
For Wi-Fi only device,
startUsingNetworkFeature() returns Phone.APN_TYPE_NOT_AVAILABLE
stopUsingNetworkFeature() return 1;
In NetworkInfoTest:
cm.getAllNetworkInfo() returns an array of NetworkInfo.
But the index is not based on network type."
Change-Id: I0b5e3d0cfe5fac18bca0a5ca2ce4cc73bc4dfa16
* commit '68cb323d1bbfc26fab0fb77d8de289a9cc02efd6':
Parallelize Test Description Generalization
Remove RequiredFeatures Annotation
Server thread may not update the current value immediately after request url on testAccessLoadsImagesAutomatically case. Solution: Add one second delay before assert function.
EGL Config Test
Allow saving log files in different directory
StartPreview only after setting fps range paramters
Fix for the handling of SMS Delivery Report in case of CDMA network
Fix WifiInfoTest
Remove Unused Spec Progress Tool
Fix Build
Fix CtsTelephonyTestCases:PhoneNumberUtilsTest--testCallMethods fails due to PhoneNumberUtils MIN_MATCH set to 11 for China region ship
Added sleep within testGetAndSetMasterSyncAutomatically.
* commit '4d2f2058ddeb36c8d6c96a277b58cdef897ddf88':
Fix WifiInfoTest
Update NO_DELIVERY_REPORTS list.
Update Expectations File
Remove Test Annotation Related Tools
Clean Up VideoViewTest
CTS: Fixes a possible "out of memory" exception
Do not listen to supplicant state change for wifi disable action,
instead depend on wifi state changed action
Bug: 4242273
Change-Id: Ie53ff42d5e51bbc9f28d93a435fa3315611d342e
Do not listen to supplicant state change for wifi disable action,
instead depend on wifi state changed action
Bug: 4242273
Change-Id: Ie53ff42d5e51bbc9f28d93a435fa3315611d342e