Files
frameworks_base/tests/RollbackTest
shafik 16864b42bc Test Native Watchdog triggers RollbackManager rollback
Test flow:
    * Staged install com.google.android.modulemetadata
    * Crash a native process (apexd) enough times to trigger a rollback
    * Wait for device reboot (automatically)
    * Assert rollback of com.google.android.modulemetadata has been
    committed

Test: atest StagedRollbackTest#testNativeWatchdogTriggersRollback
Bug: 135864628
Change-Id: Ibe726c140939190adb3db9c18b3b442ba59548a3
2019-07-03 10:44:18 +01:00
..

This directory contains a test for the rollback manager service.

Directory structure
===================
RollbackTest
  - device driven test for rollbacks not involving staged rollbacks.

StagedRollbackTest
  - device driven test for staged rollbacks.

TestApp
  - source for dummy apks used in testing.

TestApex
  - source for dummy apex modules used in testing.

Running the tests
=================

You can manually run the tests as follows:

  atest RollbackTest
  atest StagedRollbackTest