GithubHelp home page GithubHelp logo

gravitasse / zfs-test Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openzfsonosx/zfs-test

0.0 2.0 0.0 3.28 MB

Makefile 0.24% Shell 94.97% M4 0.35% DIGITAL Command Language 0.04% Python 1.37% Roff 0.36% C 2.67%

zfs-test's Introduction

WARNING: These tests should only be run in a VM or other similar disposable OSX installation. There are tests that are known to render your machine unbootable, they have been disabled until issue resolved. Having said that, let the buyer beware!

These tests take along time to run probably more than 3 hours.

Approximately 75% of the tests currently pass

This is the ZFS Test Suite, with support for all platforms that ZFS from Sun Solaris have been ported to.

Setup

  • The user zfs-test needs to be able to run sudo without issuing a password. Add the following to sudoers:

    zfs-tests ALL=(ALL) NOPASSWD: ALL

  • The sudo root environment must be configured to pass certain enviroment variables from zfs-test through to the root environment. Add the following to sudoers:

    Defaults env_keep += "__ZFS_MAIN_MOUNTPOINT_DIR"

and assign __ZFS_MAIN_MOUNTPOINT_DIR to / somewhere central (e.g. /etc/bashrc).

  • To run the Test Suite, it is also required that you have a built O3X zfs and spl repository in:

    ../zfs ../spl

  • You will need quite a lot of free space on /var/tmp (which needs to be 'rwxrwxrwt') for temporary files etc. At least 100GB seems to be required.

  • To setup the test suite, run

    ./autogen.sh ./configure CC=clang CXX=clang++

  • Recommended configuration is to provide your test environment with 3 x 25 GB HDD in addition to the boot drive. There are certain tests that cannot operate in a file based environemnt, this will allow those tests to execute.

    The three drives will be erased, please ensure they contain no valuable data!

    Ensure that the DISKS environment variable the in test_hw target in the makefile contains the /dev/diskX /dev/diskY and /dev/diskZ entries for your 25 GB test drives. Then:

    sudo make test_hw

    NOTE: every time you restart OSX the drives can move, the makefile must be aligned with the output of "diskutil list".

To run specific test group(s), make a copy of the

cp test/zfs-tests/runfiles/osx.run test/zfs-tests/runfiles/osx.run.tmp

file, edit it (uncomment or delete all that shouldn't be run) and set the RUNFILE variable:

 export RUNFILE="-c test/zfs-tests/runfiles/osx.run.tmp"

zfs-test's People

Contributors

brendonhumphrey avatar lundman avatar

Watchers

James Cloos avatar  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.