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