]> git.proxmox.com Git - mirror_zfs.git/blob - TEST
ztest: scrub ddt repair
[mirror_zfs.git] / TEST
1 #!/bin/sh
2
3 ### prepare
4 #TEST_PREPARE_WATCHDOG="yes"
5 #TEST_PREPARE_SHARES="yes"
6
7 ### ztest
8 #TEST_ZTEST_SKIP="yes"
9 #TEST_ZTEST_TIMEOUT=1800
10 #TEST_ZTEST_DIR="/var/tmp/"
11 #TEST_ZTEST_OPTIONS="-V"
12 #TEST_ZTEST_CORE_DIR="/mnt/zloop"
13
14 ### zimport
15 #TEST_ZIMPORT_SKIP="yes"
16 #TEST_ZIMPORT_DIR="/var/tmp/zimport"
17 #TEST_ZIMPORT_VERSIONS="master installed"
18 #TEST_ZIMPORT_POOLS="zol-0.6.1 zol-0.6.2 master installed"
19 #TEST_ZIMPORT_OPTIONS="-c"
20
21 ### xfstests
22 #TEST_XFSTESTS_SKIP="yes"
23 #TEST_XFSTESTS_URL="https://github.com/behlendorf/xfstests/archive/"
24 #TEST_XFSTESTS_VER="zfs.tar.gz"
25 #TEST_XFSTESTS_POOL="tank"
26 #TEST_XFSTESTS_FS="xfstests"
27 #TEST_XFSTESTS_VDEV="/var/tmp/vdev"
28 #TEST_XFSTESTS_OPTIONS=""
29
30 ### zfs-tests.sh
31 #TEST_ZFSTESTS_SKIP="yes"
32 #TEST_ZFSTESTS_DIR="/mnt/"
33 #TEST_ZFSTESTS_DISKS="vdb vdc vdd"
34 #TEST_ZFSTESTS_DISKSIZE="8G"
35 #TEST_ZFSTESTS_ITERS="1"
36 #TEST_ZFSTESTS_OPTIONS="-vx"
37 #TEST_ZFSTESTS_RUNFILE="linux.run"
38 #TEST_ZFSTESTS_TAGS="functional"
39
40 ### zfsstress
41 #TEST_ZFSSTRESS_SKIP="yes"
42 #TEST_ZFSSTRESS_URL="https://github.com/nedbass/zfsstress/archive/"
43 #TEST_ZFSSTRESS_VER="master.tar.gz"
44 #TEST_ZFSSTRESS_RUNTIME=300
45 #TEST_ZFSSTRESS_POOL="tank"
46 #TEST_ZFSSTRESS_FS="fish"
47 #TEST_ZFSSTRESS_FSOPT="-o overlay=on"
48 #TEST_ZFSSTRESS_VDEV="/var/tmp/vdev"
49 #TEST_ZFSSTRESS_DIR="/$TEST_ZFSSTRESS_POOL/$TEST_ZFSSTRESS_FS"
50 #TEST_ZFSSTRESS_OPTIONS=""
51
52 ### per-builder customization
53 #
54 # BB_NAME=builder-name <distribution-version-architecture-type>
55 # - distribution=Amazon,Debian,Fedora,RHEL,SUSE,Ubuntu
56 # - version=x.y
57 # - architecture=x86_64,i686,arm,aarch64
58 # - type=build,test
59 #
60 case "$BB_NAME" in
61 Amazon*)
62 # ZFS enabled xfstests fails to build
63 TEST_XFSTESTS_SKIP="yes"
64 ;;
65 CentOS-7*)
66 # ZFS enabled xfstests fails to build
67 TEST_XFSTESTS_SKIP="yes"
68 ;;
69 CentOS-6*)
70 ;;
71 Debian*)
72 ;;
73 Fedora*)
74 ;;
75 RHEL*)
76 ;;
77 SUSE*)
78 ;;
79 Ubuntu-16.04*)
80 # ZFS enabled xfstests fails to build
81 TEST_XFSTESTS_SKIP="yes"
82 ;;
83 Ubuntu*)
84 ;;
85 *)
86 ;;
87 esac
88
89 ###
90 #
91 # Run ztest longer on the "coverage" builders to gain more code coverage
92 # data out of ztest, libzpool, etc.
93 #
94 case "$BB_NAME" in
95 *coverage*)
96 TEST_ZTEST_TIMEOUT=3600
97 ;;
98 *)
99 TEST_ZTEST_TIMEOUT=900
100 ;;
101 esac
102
103 ###
104 #
105 # Disable the following test suites on 32-bit systems.
106 #
107 if [ $(getconf LONG_BIT) = "32" ]; then
108 TEST_ZTEST_SKIP="yes"
109 TEST_XFSTESTS_SKIP="yes"
110 TEST_ZFSSTRESS_SKIP="yes"
111 fi