Home
last modified time | relevance | path

Searched +full:zfs +full:- +full:tests (Results 1 – 25 of 1042) sorted by relevance

12345678910>>...42

/freebsd/sys/contrib/openzfs/tests/
H A DREADME.md1 # ZFS Test Suite README
3 ### 1) Building and installing the ZFS Test Suite
5 The ZFS Test Suite runs under the test-runner framework. This framework
6 is built along side the standard ZFS utilities and is included as part of
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,
[all …]
/freebsd/sys/contrib/openzfs/scripts/
H A Dzfs2zol-patch.sed1 #!/bin/sed -f
3 s:usr/src/uts/common/fs/zfs/sys:include/sys:g
4 s:usr/src/uts/common/fs/zfs:module/zfs:g
9 s:usr/src/man/man1m/zfs.1m:man/man8/zfs.8:g
17 s:usr/src/test/zfs-tests/include:tests/zfs-tests/include:g
18 s:usr/src/test/zfs-tests/runfiles:tests/runfiles:g
19 s:usr/src/test/zfs-tests/tests/functional:tests/zfs-tests/tests/functional:g
20 s:usr/src/test/zfs-tests/tests/perf:tests/zfs-tests/tests/perf:g
21 s:usr/src/test/test-runner/cmd/run.py:tests/test-runner/cmd/test-runner.py:g
22 s:usr/src/common/zfs/\(.*\)\.c:module/zcommon/\1.c:g
[all …]
H A DMakefile.am9 %D%/man-dates.sh \
12 %D%/zfs-tests-color.sh
15 %D%/zfs-helpers.sh \
16 %D%/zfs-tests.sh \
17 %D%/zfs.sh \
32 %D%/zfs2zol-patch.sed \
33 %D%/zol2zfs-patch.sed
39 # Only required for in-tree use
41 export GDB="libtool --mode=execute gdb"
64 export KMOD_ZFS=$(abs_top_builddir)/module/zfs.ko
[all …]
H A Dzol2zfs-patch.sed1 #!/bin/sed -f
7 s:include/sys:usr/src/uts/common/fs/zfs/sys:g
9 s:include/zfs_fletcher.h:usr/src/common/zfs/zfs_fletcher.h:g
10 s:include:usr/src/common/zfs:g
15 s:man/man7/zpool-features.7:usr/src/man/man5/zpool-features.5:g
16 s:man/man8/zfs.8:usr/src/man/man1m/zfs.1m:g
18 s:module/zcommon:usr/src/common/zfs/:g
19 s:module/zfs:usr/src/uts/common/fs/zfs:g
20 s:tests/zfs-tests:test/zfs-tests:g
H A Dzfs-tests.sh13 # or https://opensource.org/licenses/CDDL-1.0.
30 SCRIPT_COMMON=${SCRIPT_COMMON:-${0%/*}/common.sh}
33 PROG=zfs-tests.sh
44 RUNFILES=${RUNFILES:-$DEFAULT_RUNFILES}
45 FILEDIR=${FILEDIR:-/var/tmp}
46 DISKS=${DISKS:-""}
59 TESTFAIL_CALLBACKS=${TESTFAIL_CALLBACKS:-"$ZFS_DMESG"}
64 TESTFAIL_CALLBACKS=${TESTFAIL_CALLBACKS:-"$ZFS_DBGMSG:$ZFS_DMESG:$ZFS_MMP"}
65 LOSETUP=${LOSETUP:-/sbin/losetup}
66 DMSETUP=${DMSETUP:-/sbin/dmsetup}
[all …]
/freebsd/sys/contrib/openzfs/.github/workflows/scripts/
H A Dqemu-6-tests.sh4 # 6) load openzfs module and run the tests
6 # called on runner: qemu-6-tests.sh
7 # called on qemu-vm: qemu-6-tests.sh $OS $2/$3
10 set -eu
17 DIFF=$((CURRENT-TSSTART))
19 DIFF=$((DIFF-(H*3600)))
21 S=$((DIFF-(M*60)))
24 echo $LINE| grep -q "^Test[: ]" && CTR=$((CTR+1)) && echo $CTR > /tmp/ctr
26 BASE="$HOME/work/zfs/zfs"
27 COLOR="$BASE/scripts/zfs-tests-color.sh"
[all …]
H A Dqemu-7-prepare.sh5 # - this script pre-creates all needed logfiles for later summary
8 set -eu
14 mkdir -p $RESPATH
17 if [ -z ${VMs:-} ]; then
19 echo ":exclamation: ZFS module didn't build successfully :exclamation:" \
22 tar cf /tmp/qemu-$OS.tar -C $RESPATH -h . || true
27 BASE="$HOME/work/zfs/zfs"
32 rsync -arL zfs@vm$i:$RESPATH/current $RESPATH/vm$i || true
33 scp zfs@vm$i:"/var/tmp/*.txt" $RESPATH/vm$i || true
34 scp zfs@vm$i:"/var/tmp/*.rpm" $RESPATH/vm$i || true
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/
H A DMakefile.am1 SUBDIRS += %D%/tests
6 scripts_zfs_tests_functional_libzfsdir = $(datadir)/$(PACKAGE)/zfs-tests/tests/functional/libzfs
7 scripts_zfs_tests_functional_libzfs_PROGRAMS = %D%/tests/functional/libzfs/many_fds
11 scripts_zfs_tests_functional_hkdfdir = $(datadir)/$(PACKAGE)/zfs-tests/tests/functiona
[all...]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/pool_checkpoint/
H A Dpool_checkpoint.kshlib17 . $STF_SUITE/tests/functional/removal/removal.kshlib
20 # In general all the tests related to the pool checkpoint can
21 # be divided into two categories. TESTS that verify features
22 # provided by the checkpoint (e.g. checkpoint_rewind) and tests
23 # that stress-test the checkpoint (e.g. checkpoint_big_rewind).
27 # This is why these tests run directly on pools that use a
28 # "real disk vdev" (meaning not a file based one). These tests
31 # the tests of this group use the testpool-related functions of
37 # cannot represent, etc. For these tests we need to control
39 # so we create them based on file-based vdevs that we carefully
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/
H A Dsend_encrypted_truncated_files.ksh1 #!/bin/ksh -p
21 . $STF_SUITE/tests/functional/rsend/rsend.kshlib
45 destroy_dataset $TESTPOOL/$TESTFS2 -r
47 destroy_dataset $TESTPOOL/recv -r
48 [[ -f $keyfile ]] && log_must rm $keyfile
49 [[ -f $sendfile ]] && log_must rm $sendfile
55 find $1 -type f -exec xxh128sum {} + | \
56 sort -k 2 | awk '{ print $1 }' | xxh128digest
59 log_assert "Verify 'zfs send -w' works with many different file layouts"
67 log_must zfs create -o encryption=on -o keyformat=passphrase \
[all …]
H A Dsend_partial_dataset.ksh20 . $STF_SUITE/tests/functional/rsend/rsend.kshlib
25 # 'zfs send --saved'.
32 # 5. Perform negative tests for invalid command inputs
38 "'zfs send --saved'."
42 destroy_dataset $POOL/testfs2 "-r"
43 destroy_dataset $POOL/stream "-r"
44 destroy_dataset $POOL/recvfs "-r"
45 destroy_dataset $POOL/partialfs "-r"
49 log_must zfs create -o compression=off $POOL/testfs2
50 log_must zfs create $POOL/stream
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/misc/
H A Dsetup.ksh1 #!/bin/ksh -p
10 # or https://opensource.org/licenses/CDDL-1.0.
33 . $STF_SUITE/tests/functional/cli_user/misc/misc.cfg
36 # of the tests included in this directory. Usually we'd want each test case
38 # given the nature of these tests. However, as a side-effect, one test
50 # The rest of this setup script creates a ZFS filesystem configuration
51 # that is used to test the rest of the zfs subcommands in this directory.
55 log_must zfs snapshot $TESTPOOL/$TESTFS@snap
56 log_must zfs clone $TESTPOOL/$TESTFS@snap $TESTPOOL/$TESTFS/clone
61 # create a non-default property and a child we can use to test inherit
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zvol/zvol_misc/
H A Dzvol_misc_snapdev.ksh1 #!/bin/ksh -p
10 # or https://opensource.org/licenses/CDDL-1.0.
28 . $STF_SUITE/tests/functional/cli_root/zfs_set/zfs_set_common.kshlib
29 . $STF_SUITE/tests/functional/zvol/zvol_common.shlib
30 . $STF_SUITE/tests/functional/zvol/zvol_misc/zvol_misc_common.kshlib
34 # Verify that ZFS volume property "snapdev" works as intended.
46 datasetexists $VOLFS && destroy_dataset $VOLFS -r
47 datasetexists $ZVOL && destroy_dataset $ZVOL -r
48 log_must zfs inherit snapdev $TESTPOOL
53 log_assert "Verify that ZFS volume property 'snapdev' works as expected."
[all …]
H A Dzvol_misc_volmode.ksh1 #!/bin/ksh -p
10 # or https://opensource.org/licenses/CDDL-1.0.
28 . $STF_SUITE/tests/functional/cli_root/zfs_set/zfs_set_common.kshlib
29 . $STF_SUITE/tests/functional/zvol/zvol_common.shlib
30 . $STF_SUITE/tests/functional/zvol/zvol_misc/zvol_misc_common.kshlib
34 # Verify that ZFS volume property "volmode" works as intended.
51 datasetexists $VOLFS && destroy_dataset $VOLFS -r
52 datasetexists $ZVOL && destroy_dataset $ZVOL -r
53 zfs inherit volmode $TESTPOOL
96 # udev_wait() before we "zfs set volmode=<value>". This ensures no udev
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redacted_send/
H A Dredacted_origin.ksh19 . $STF_SUITE/tests/functional/redacted_send/redacted.kshlib
52 log_must zfs redact $dsA BCD $dsB $dsC $dsD
53 log_must eval "zfs send --redact BCD $dsA >$stream"
54 log_must eval "zfs receive $POOL2/rBCD <$stream"
55 log_must eval "zfs receive $targ <$stream"
57 log_must zfs redact $dsA BC $dsB $dsC
58 log_must eval "zfs send --redact BC $dsA >$stream"
59 log_must eval "zfs receive $POOL2/rBC <$stream"
61 log_must zfs redact $dsA E $dsE
62 log_must eval "zfs send --redact E $dsA >$stream"
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_create/
H A Dzfs_create_006_pos.ksh1 #!/bin/ksh -p
10 # or https://opensource.org/licenses/CDDL-1.0.
33 . $STF_SUITE/tests/functional/cli_root/zfs_create/zfs_create.cfg
34 . $STF_SUITE/tests/functional/cli_root/zfs_create/zfs_create_common.kshlib
35 . $STF_SUITE/tests/functional/cli_root/zfs_create/properties.kshlib
39 # 'zfs create -o property=value -V size volume' can successfully create a ZFS
43 # 1. Create a ZFS volume in the storage pool with -o option
53 destroy_dataset $TESTPOOL/$TESTVOL1 -f
59 log_assert "'zfs create -o property=value -V size volume' can successfully \
60 create a ZFS volume with correct property set."
[all …]
H A Dzfs_create_007_pos.ksh1 #!/bin/ksh -p
10 # or https://opensource.org/licenses/CDDL-1.0.
33 . $STF_SUITE/tests/functional/cli_root/zfs_create/zfs_create.cfg
34 . $STF_SUITE/tests/functional/cli_root/zfs_create/zfs_create_common.kshlib
35 . $STF_SUITE/tests/functional/cli_root/zfs_create/properties.kshlib
39 # 'zfs create -o property=value -V size volume' can successfully create a ZFS
43 # 1. Create a ZFS volume in the storage pool with -o option
59 log_assert "'zfs create -o property=value -V size volume' can successfully \
60 create a ZFS volume with correct property set."
62 typeset -i i=0
[all …]
H A Dzfs_create_encrypted.ksh1 #!/bin/ksh -p
22 . $STF_SUITE/tests/functional/cli_root/zfs_create/zfs_create_common.kshlib
23 . $STF_SUITE/tests/functional/cli_root/zfs_create/properties.kshlib
24 . $STF_SUITE/tests/functional/cli_root/zfs_load-key/zfs_load-key_common.kshlib
28 # ZFS should create datasets only if they have a valid combination of
37 # -------------------------------------------
73 destroy_dataset $TESTPOOL/$TESTFS1 -r
75 destroy_dataset $TESTPOOL/$TESTFS2 -r
79 log_assert "ZFS should create datasets only if they have a valid" \
83 log_must zfs create $TESTPOOL/$TESTFS1
[all …]
/freebsd/sys/contrib/openzfs/contrib/debian/
H A Dopenzfs-zfs-test.install4 usr/share/man/man1/test-runner.1
6 usr/share/zfs/common.sh
7 usr/share/zfs/runfiles/
8 usr/share/zfs/test-runner
9 usr/share/zfs/zfs-tests.sh
10 usr/share/zfs/zfs-tests/
11 usr/share/zfs/zfs.sh
12 usr/share/zfs/zimport.sh
13 usr/share/zfs/zloop.sh
/freebsd/sys/contrib/openzfs/
H A DMakefile.am14 ACLOCAL_AMFLAGS = -I config
27 include $(srcdir)/%D%/tests/Makefile.am
36 extradir = $(prefix)/src/zfs-$(VERSION)
37 extra_HEADERS = zfs.release.in zfs_config.h.in
40 dist_noinst_DATA += autogen.sh copy-builtin
43 dist_noinst_DATA += module/lua/README.zfs module/os/linux/spl/README.md
48 dist_noinst_DATA += module/icp/asm-x86_64/aes/THIRDPARTYLICENSE.gladman
49 dist_noinst_DATA += module/icp/asm-x86_64/aes/THIRDPARTYLICENSE.gladman.descrip
50 dist_noinst_DATA += module/icp/asm-x86_64/aes/THIRDPARTYLICENSE.openssl
51 dist_noinst_DATA += module/icp/asm-x86_64/aes/THIRDPARTYLICENSE.openssl.descrip
[all …]
H A Dconfigure.ac10 * LLNL-CODE-403049
20 * or https://opensource.org/licenses/CDDL-1.0.
43 AM_INIT_AUTOMAKE([subdir-objects foreign])
47 …$SED -nri~ -e '/^$/be' -e 'N;N;/#define (PACKAGE|VERSION|STDC_HEADERS)/d' -e ':e' -e 'p' zfs_confi…
78 rpm/generic/zfs-dkms.spec
79 rpm/generic/zfs-kmod.spec
80 rpm/generic/zfs.spec
81 rpm/redhat/zfs-dkms.spec
82 rpm/redhat/zfs-kmod.spec
83 rpm/redhat/zfs.spec
[all …]
/freebsd/sys/contrib/openzfs/.github/
H A DCONTRIBUTING.md4 …src="https://openzfs.github.io/openzfs-docs/_static/img/logo/480px-Open-ZFS-Secondary-Logo-Colour-
13 started?](#what-should-i-know-before-i-get-started)
15 * [Get ZFS](#get-zfs)
16 * [Debug ZFS](#debug-zfs)
17 * [Where can I ask for help?](#where-can-I-ask-for-help)
19 [How Can I Contribute?](#how-can-i-contribute)
21 * [Reporting Bugs](#reporting-bugs)
22 * [Suggesting Enhancements](#suggesting-enhancements)
23 * [Pull Requests](#pull-requests)
26 [Style Guides](#style-guides)
[all …]
/freebsd/sys/contrib/openzfs/module/lua/
H A DREADME.zfs21 ------------
23 This README describes the Lua interpreter source code that lives in the ZFS
24 source tree to enable execution of ZFS channel programs, including its
28 For a description of the Lua language and features exposed by ZFS channel
29 programs, please refer to the zfs-program(1m) man page instead.
33 ------------------
37 nice-to-have, but not required for channel programs to be well-supported. As
38 such, the Lua runtime in ZFS should be updated on an as-needed basis for
43 --------------------
45 The version of the Lua runtime we're using in ZFS has been modified in a variety
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_user/misc/
H A Dsetup.ksh1 #!/usr/local/bin/ksh93 -p
30 # of the tests included in this directory. Usually we'd want each test case
32 # given the nature of these tests. However, as a side-effect, one test
44 # The rest of this setup script creates a ZFS filesystem configuration
45 # that is used to test the rest of the zfs subcommands in this directory.
49 log_must $ZFS snapshot $TESTPOOL/$TESTFS@snap
50 log_must $ZFS clone $TESTPOOL/$TESTFS@snap $TESTPOOL/$TESTFS/clone
55 # create a non-default property and a child we can use to test inherit
56 log_must $ZFS create $TESTPOOL/$TESTFS/$TESTFS2
57 log_must $ZFS set snapdir=hidden $TESTPOOL/$TESTFS
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_destroy/
H A Dzfs_clone_livelist_condense_races.ksh1 #!/bin/ksh -p
21 # These tests exercise code paths that deal with a livelist being
35 . $STF_SUITE/tests/functional/cli_root/zfs_destroy/zfs_destroy_common.kshlib
39 log_must zfs destroy -Rf $TESTPOOL/$TESTFS1
42 # reset the condense tests to 0
45 log_must zfs inherit compression $TESTPOOL
51 log_must zfs clone $TESTPOOL/$TESTFS1@snap $TESTPOOL/$TESTCLONE
56 log_must zfs destroy $TESTPOOL/$TESTCLONE
65 log_must zfs clone $TESTPOOL/$TESTFS1@snap $TESTPOOL/$TESTCLONE
74 log_must zfs destroy $TESTPOOL/$TESTCLONE
[all …]

12345678910>>...42