Home
last modified time | relevance | path

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

12345678910>>...41

/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 Dspdxcheck.pl3 # SPDX-License-Identifier: MIT
37 # - if the file's full path is explicity listed in $tagged_patterns, then the
40 # - if the file's full path is explicitly listed in $untagged_patterns, then
43 # - if the filename matches a pattern in $tagged_patterns, and does not match a
46 # - otherwise, the file is untagged.
48 # The patterns do a simple glob-like match over the entire path relative to the
91 etc/init.d/zfs-import.in
92 etc/init.d/zfs-load-key.in
93 etc/init.d/zfs-mount.in
94 etc/init.d/zfs-share.in
[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"
65 export KMOD_ZFS=$(abs_top_builddir)/module/zfs.ko
[all …]
H A Dzfs-tests.sh2 # SPDX-License-Identifier: CDDL-1.0
14 # or https://opensource.org/licenses/CDDL-1.0.
31 SCRIPT_COMMON=${SCRIPT_COMMON:-${0%/*}/common.sh}
34 PROG=zfs-tests.sh
45 RUNFILES=${RUNFILES:-$DEFAULT_RUNFILES}
46 FILEDIR=${FILEDIR:-/var/tmp}
47 DISKS=${DISKS:-""}
60 TESTFAIL_CALLBACKS=${TESTFAIL_CALLBACKS:-"$ZFS_DMESG"}
65 TESTFAIL_CALLBACKS=${TESTFAIL_CALLBACKS:-"$ZFS_DBGMSG:$ZFS_DMESG:$ZFS_MMP"}
66 LOSETUP=${LOSETUP:-/sbin/losetup}
[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
/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.kshlib1 # SPDX-License-Identifier: CDDL-1.0
18 . $STF_SUITE/tests/functional/removal/removal.kshlib
21 # In general all the tests related to the pool checkpoint can
22 # be divided into two categories. TESTS that verify features
23 # provided by the checkpoint (e.g. checkpoint_rewind) and tests
24 # that stress-test the checkpoint (e.g. checkpoint_big_rewind).
28 # This is why these tests run directly on pools that use a
29 # "real disk vdev" (meaning not a file based one). These tests
32 # the tests of this group use the testpool-related functions of
38 # cannot represent, etc. For these tests we need to control
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/rsend/
H A Dsend_encrypted_truncated_files.ksh1 #!/bin/ksh -p
2 # SPDX-License-Identifier: CDDL-1.0
22 . $STF_SUITE/tests/functional/rsend/rsend.kshlib
46 destroy_dataset $TESTPOOL/$TESTFS2 -r
48 destroy_dataset $TESTPOOL/recv -r
49 [[ -f $keyfile ]] && log_must rm $keyfile
50 [[ -f $sendfile ]] && log_must rm $sendfile
56 find $1 -type f -exec xxh128sum {} + | \
57 sort -k 2 | awk '{ print $1 }' | xxh128digest
60 log_assert "Verify 'zfs send -w' works with many different file layouts"
[all …]
H A Dsend_partial_dataset.ksh2 # SPDX-License-Identifier: CDDL-1.0
21 . $STF_SUITE/tests/functional/rsend/rsend.kshlib
26 # 'zfs send --saved'.
33 # 5. Perform negative tests for invalid command inputs
39 "'zfs send --saved'."
43 destroy_dataset $POOL/testfs2 "-r"
44 destroy_dataset $POOL/stream "-r"
45 destroy_dataset $POOL/recvfs "-r"
46 destroy_dataset $POOL/partialfs "-r"
50 log_must zfs create -o compression=off $POOL/testfs2
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_user/misc/
H A Dsetup.ksh1 #!/bin/ksh -p
2 # SPDX-License-Identifier: CDDL-1.0
11 # or https://opensource.org/licenses/CDDL-1.0.
34 . $STF_SUITE/tests/functional/cli_user/misc/misc.cfg
37 # of the tests included in this directory. Usually we'd want each test case
39 # given the nature of these tests. However, as a side-effect, one test
51 # The rest of this setup script creates a ZFS filesystem configuration
52 # that is used to test the rest of the zfs subcommands in this directory.
56 log_must zfs snapshot $TESTPOOL/$TESTFS@snap
57 log_must zfs clone $TESTPOOL/$TESTFS@snap $TESTPOOL/$TESTFS/clone
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zvol/zvol_misc/
H A Dzvol_misc_snapdev.ksh1 #!/bin/ksh -p
2 # SPDX-License-Identifier: CDDL-1.0
11 # or https://opensource.org/licenses/CDDL-1.0.
29 . $STF_SUITE/tests/functional/cli_root/zfs_set/zfs_set_common.kshlib
30 . $STF_SUITE/tests/functional/zvol/zvol_common.shlib
31 . $STF_SUITE/tests/functional/zvol/zvol_misc/zvol_misc_common.kshlib
35 # Verify that ZFS volume property "snapdev" works as intended.
47 datasetexists $VOLFS && destroy_dataset $VOLFS -r
48 datasetexists $ZVOL && destroy_dataset $ZVOL -r
49 log_must zfs inherit snapdev $TESTPOOL
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redacted_send/
H A Dredacted_origin.ksh2 # SPDX-License-Identifier: CDDL-1.0
20 . $STF_SUITE/tests/functional/redacted_send/redacted.kshlib
53 log_must zfs redact $dsA BCD $dsB $dsC $dsD
54 log_must eval "zfs send --redact BCD $dsA >$stream"
55 log_must eval "zfs receive $POOL2/rBCD <$stream"
56 log_must eval "zfs receive $targ <$stream"
58 log_must zfs redact $dsA BC $dsB $dsC
59 log_must eval "zfs send --redact BC $dsA >$stream"
60 log_must eval "zfs receive $POOL2/rBC <$stream"
62 log_must zfs redact $dsA E $dsE
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_create/
H A Dzfs_create_006_pos.ksh1 #!/bin/ksh -p
2 # SPDX-License-Identifier: CDDL-1.0
11 # or https://opensource.org/licenses/CDDL-1.0.
34 . $STF_SUITE/tests/functional/cli_root/zfs_create/zfs_create.cfg
35 . $STF_SUITE/tests/functional/cli_root/zfs_create/zfs_create_common.kshlib
36 . $STF_SUITE/tests/functional/cli_root/zfs_create/properties.kshlib
40 # 'zfs create -o property=value -V size volume' can successfully create a ZFS
44 # 1. Create a ZFS volume in the storage pool with -o option
54 destroy_dataset $TESTPOOL/$TESTVOL1 -f
60 log_assert "'zfs create -o property=value -V size volume' can successfully \
[all …]
H A Dzfs_create_007_pos.ksh1 #!/bin/ksh -p
2 # SPDX-License-Identifier: CDDL-1.0
11 # or https://opensource.org/licenses/CDDL-1.0.
34 . $STF_SUITE/tests/functional/cli_root/zfs_create/zfs_create.cfg
35 . $STF_SUITE/tests/functional/cli_root/zfs_create/zfs_create_common.kshlib
36 . $STF_SUITE/tests/functional/cli_root/zfs_create/properties.kshlib
40 # 'zfs create -o property=value -V size volume' can successfully create a ZFS
44 # 1. Create a ZFS volume in the storage pool with -o option
60 log_assert "'zfs create -o property=value -V size volume' can successfully \
61 create a ZFS volume with correct property set."
[all …]
H A Dzfs_create_encrypted.ksh1 #!/bin/ksh -p
2 # SPDX-License-Identifier: CDDL-1.0
23 . $STF_SUITE/tests/functional/cli_root/zfs_create/zfs_create_common.kshlib
24 . $STF_SUITE/tests/functional/cli_root/zfs_create/properties.kshlib
25 . $STF_SUITE/tests/functional/cli_root/zfs_load-key/zfs_load-key_common.kshlib
29 # ZFS should create datasets only if they have a valid combination of
38 # -------------------------------------------
74 destroy_dataset $TESTPOOL/$TESTFS1 -r
76 destroy_dataset $TESTPOOL/$TESTFS2 -r
80 log_assert "ZFS should create datasets only if they have a valid" \
[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.ac1 // SPDX-License-Identifier: CDDL-1.0
11 * LLNL-CODE-403049
21 * or https://opensource.org/licenses/CDDL-1.0.
44 AM_INIT_AUTOMAKE([subdir-objects foreign])
48 …$SED -nri~ -e '/^$/be' -e 'N;N;/#define (PACKAGE|VERSION|STDC_HEADERS)/d' -e ':e' -e 'p' zfs_confi…
80 rpm/generic/zfs-dkms.spec
81 rpm/generic/zfs-kmod.spec
82 rpm/generic/zfs.spec
83 rpm/redhat/zfs-dkms.spec
84 rpm/redhat/zfs-kmod.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/tests/zfs-tests/tests/functional/cli_root/zfs_destroy/
H A Dzfs_clone_livelist_condense_races.ksh1 #!/bin/ksh -p
2 # SPDX-License-Identifier: CDDL-1.0
22 # These tests exercise code paths that deal with a livelist being
36 . $STF_SUITE/tests/functional/cli_root/zfs_destroy/zfs_destroy_common.kshlib
40 log_must zfs destroy -Rf $TESTPOOL/$TESTFS1
43 # reset the condense tests to 0
46 log_must zfs inherit compression $TESTPOOL
52 log_must zfs clone $TESTPOOL/$TESTFS1@snap $TESTPOOL/$TESTCLONE
57 log_must zfs destroy $TESTPOOL/$TESTCLONE
66 log_must zfs clone $TESTPOOL/$TESTFS1@snap $TESTPOOL/$TESTCLONE
[all …]
/freebsd/sys/contrib/openzfs/module/lua/
H A DREADME.zfs1 # SPDX-License-Identifier: CDDL-1.0
22 ------------
24 This README describes the Lua interpreter source code that lives in the ZFS
25 source tree to enable execution of ZFS channel programs, including its
29 For a description of the Lua language and features exposed by ZFS channel
30 programs, please refer to the zfs-program(1m) man page instead.
34 ------------------
38 nice-to-have, but not required for channel programs to be well-supported. As
39 such, the Lua runtime in ZFS should be updated on an as-needed basis for
44 --------------------
[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 …]

12345678910>>...41