Lines Matching +full:apt +full:- +full:add +full:- +full:repository

5 The ZFS Test Suite runs under the test-runner framework.  This framework
7 zfs-test package. The zfs-test package can be built from source as follows:
10 $ make pkg-utils
14 ZFS from a distributions repository (not from source) the zfs-test package
17 - Installed from source
18 $ rpm -ivh ./zfs-test*.rpm, or
19 $ dpkg -i ./zfs-test*.deb,
21 - Installed from package repository
22 $ yum install zfs-test
23 $ apt-get install zfs-test
27 The pre-requisites for running the ZFS Test Suite are:
32 the zfs-tests.sh script will construct three loopback devices to
34 * A non-root user with a full set of basic privileges and the ability
39 * The ZFS Test Suite will add users and groups to test machine to
46 Once the pre-requisites are satisfied simply run the zfs-tests.sh script:
48 $ /usr/share/zfs/zfs-tests.sh
50 Alternately, the zfs-tests.sh script can be run from the source tree to allow
57 $ ./scripts/zfs-tests.sh
59 The following zfs-tests.sh options are supported:
61 -v Verbose zfs-tests.sh output When specified additional
63 prior to invoking test-runner. This includes the runfile
66 -q Quiet test-runner output. When specified it is passed to
67 test-runner(1) which causes output to be written to the
71 -x Remove all testpools, dm, lo, and files (unsafe). When
75 and loopback devices backed by file-vdevs. This operation
79 -k Disable cleanup after test failure. When specified the
80 zfs-tests.sh script will not perform any additional cleanup
81 when test-runner exists. This is useful when the results of
84 -f Use sparse files directly instead of loopback devices for
88 -c Only create and populate constrained path
90 -I NUM Number of iterations
92 -d DIR Create sparse files for vdevs in the DIR directory. By
94 This directory must be world-writable.
96 -s SIZE Use vdevs of SIZE (default: 4G)
98 -r RUNFILES Run tests in RUNFILES (default: common.run,linux.run)
100 -t PATH Run single test at PATH relative to test suite
102 -T TAGS Comma separated list of tags (default: 'functional')
104 -u USER Run single test as USER (default: root)
110 The format of the runfile is explained in test-runner(1), and
111 the files that zfs-tests.sh uses are available for reference under
112 /usr/share/zfs/runfiles. To specify a custom runfile, use the -r option:
114 $ /usr/share/zfs/zfs-tests.sh -r my_tests.run
124 with the `zfs-tests.sh` wrapper script will look something like this:
126 $ /usr/share/zfs/zfs-tests.sh -v -d /tmp/test
128 --- Configuration ---
130 STF_TOOLS: /usr/share/zfs/test-runner
131 STF_SUITE: /usr/share/zfs/zfs-tests
134 FILES: /tmp/test/file-vdev0 /tmp/test/file-vdev1 /tmp/test/file-vdev2
144 /usr/share/zfs/test-runner/bin/test-runner.py -c /usr/share/zfs/runfiles/linux.run \
145 -T functional -i /usr/share/zfs/zfs-tests -I 1
146 Test: /usr/share/zfs/zfs-tests/tests/functional/arc/setup (run as root) [00:00] [PASS]
148 …Test: /usr/share/zfs/zfs-tests/tests/functional/zvol/zvol_swap/cleanup (run as root) [00:00] [PASS]
158 ### 4) Example of adding and running test-case (zpool_example)
161 1. Create/Set password-less sudo for user running test case.
164 4. Create actual test-scripts
169 * Set password-less sudo for 'Test' user as test script cannot be run as root
172 tests/zfs-tests/tests/functional/cli_root/zpool_example/Makefile
174 * Edit file **tests/runfiles/Makefile.am** and add line *zpool_example*.
183 perf-regression.run \
188 common properties when run with test-runner.py or zfs-tests.sh.
197 If adding test-case to an already existing suite the runfile would
210 * Edit **tests/zfs-tests/tests/functional/cli_root/Makefile.am** and add line
215 * Create new file **tests/zfs-tests/tests/functional/cli_root/zpool_example/Makefile.am**
219 pkgdatadir = $(datadir)/@PACKAGE@/zfs-tests/tests/functional/cli_root/zpool_example
223 * We can now create our test-case zpool_example_001_pos.ksh under
224 **tests/zfs-tests/tests/functional/cli_root/zpool_example/**.
241 log_must rm -f $DISKS_DEV1
242 log_must rm -f $DISKS_DEV2
260 * test-runner.py (This takes run file as input. See *zpool_example.run*)
261 * zfs-tests.sh. Can execute the run file or individual tests