Git Product home page Git Product logo

unionmount-testsuite's Introduction

To run these tests:

     If testing overlayfs, do:

	./run --ov

     To run the tests with nested overlayfs, do:

	./run --ovov

     To run the tests without any unioning, do:

	./run --no

     To just set up the environment and exit without doing any tests,
     add the -s flag, e.g.:

	./run --ov -s

     To run overlayfs tests with all layers on the same underlying fs,
     add the --samefs flag, e.g.:

	./run --ov --samefs

     To run overlayfs tests with lower layer on a squashfs image,
     add the --squashfs flag, e.g.:

	./run --ov --squashfs

     To run overlayfs tests with up to N middle layers, do:

	./run --ov=<N>

     The run will start with two layers and during some tests, upper layer
     will be rotated to the top of the lower layer stack and a new upper
     layer will be created.

     To run overlayfs tests with up to N middle layers, M middle layers on
     unique underlying filesystems, do:

	./run --ov=<N> --maxfs=<M>

     The first M rotations will create a new filesystem as the upper layer.

     To run the tests using a FUSE overlay file system implementation:

	./run --ov --fuse=<subfs-type>


The following environment variables are supported:

     UNIONMOUNT_BASEDIR  - parent dir of all samefs layers (default: /base)
     UNIONMOUNT_LOWERDIR - lower layer path for non samefs (default: /lower)
     UNIONMOUNT_MNTPOINT - mount point for executing tests (default: /mnt)

     When user provides UNIONMOUNT_LOWERDIR:

     1) Path should be an existing directory whose content will be deleted.
     2) Path is assumed to be on a different filesystem than base dir, so
        --samefs setup is not supported.

     When user provides UNIONMOUNT_BASEDIR:

     1) Path should be an existing directory whose content will be deleted.
     2) Upper layer and middle layers will be created under base dir.
     3) If UNIONMOUNT_MNTPOINT is not provided, the overlay mount point will
        be created under base dir.
     4) If UNIONMOUNT_LOWERDIR is not provided, the lower layer dir will be
        created under base dir.
     5) If UNIONMOUNT_LOWERDIR is not provided, the test setup defaults to
        --samefs (i.e. lower and upper layers are on the same base fs).
        However, if --maxfs=<M> is specified, a tmpfs instance will be mounted
        on the lower layer dir that was created under base dir.


For more advanced overlayfs test options and more examples, see:
     https://github.com/amir73il/overlayfs/wiki/Overlayfs-testing

unionmount-testsuite's People

Contributors

amir73il avatar chase-qi avatar dhowells avatar giuseppe avatar nightuser avatar szmi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.