Add host-driven tests for the NetworkStack
Add a first test to verify that the NetworkStack can be installed and rolled back. The test will only pass on a device built with the same key configuration as the test. It will not pass on production devices for example. The test also uses the NetworkStack in the tree, so it does not test mismatches between the version of the NetworkStack and that of the system. On devices where adb root is available, the test performs the following: - Install the NetworkStack APK with --staged and --enable-rollback - Reboot the framework - Check that the network stack is registered - Request a rollback of the network stack - Reboot the framework - Check that the network stack is registered again When adb root is not available, the test performs a reboot instead of a framework restart. The test then takes 2m25s instead of 25s. Test: atest NetworkStackHostTests Bug: 133025642 Change-Id: Ief84d3718a8970606b2f69206d75b4147b5d2e76
Loading
Please register or sign in to comment