tast: Add filesetup.ReadOnlyRootPartition.

Add a new ReadOnlyRootPartition function in the filesetup
package that security tests can call to check if the root
partition is mounted read-only. Tests can use this to fail
quickly if rootfs verification seems to be disabled.

BUG=chromium:915539
TEST=used in conjunction with other tests on DUTs that have
     rootfs verification enabled and disabled

Change-Id: I417b1fe6f01433fb9982fc765cb74f31988822d8
Reviewed-on: https://chromium-review.googlesource.com/1378918
Commit-Ready: Dan Erat <derat@chromium.org>
Tested-by: Dan Erat <derat@chromium.org>
Reviewed-by: Dan Erat <derat@chromium.org>
Reviewed-by: Shuhei Takahashi <nya@chromium.org>
1 file changed
tree: 4ce977656c0e8585768a87a8ffddc4652a37b3ee
  1. src/
  2. tools/
  3. .gitignore
  4. OWNERS
  5. PRESUBMIT.cfg
  6. README.md
README.md

Tast (tests)

This repository contains integration tests that are run by Tast.

Directory structure

  • src/chromiumos/tast/
    • local/ - Code related to local (i.e. on-device or “client”) tests.
      • bundles/ - Local test bundles.
        • cros/ - The “cros” local test bundle, containing standard Chrome OS tests. Tests are packaged by category.
      • ... - Packages used only by local tests.
    • remote/ - Code related to remote (i.e. off-device or “server”) tests.
      • bundles/ - Remote test bundles.
        • cros/ - The “cros” remote test bundle, containing standard Chrome OS tests. Tests are packaged by category.
      • ... - Packages used only by remote tests.

Shared code, the main tast executable, the local_test_runner and remote_test_runner executables responsible for running bundles, and documentation are located in the tast repository.

GoDoc