xref: /freebsd/sys/contrib/openzfs/scripts/common.sh.in (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1#!/bin/sh
2
3# Directories
4export BIN_DIR=
5export SBIN_DIR=
6export LIBEXEC_DIR=
7export ZTS_DIR=
8export SCRIPT_DIR=
9
10# General commands
11export ZDB="${ZDB:-$SBIN_DIR/zdb}"
12export ZFS="${ZFS:-$SBIN_DIR/zfs}"
13export ZPOOL="${ZPOOL:-$SBIN_DIR/zpool}"
14export ZTEST="${ZTEST:-$SBIN_DIR/ztest}"
15export ZFS_SH="${ZFS_SH:-$SCRIPT_DIR/zfs.sh}"
16
17# Test Suite
18export RUNFILE_DIR="${RUNFILE_DIR:-$ZTS_DIR/runfiles}"
19export TEST_RUNNER="${TEST_RUNNER:-$ZTS_DIR/test-runner/bin/test-runner.py}"
20export ZTS_REPORT="${ZTS_REPORT:-$ZTS_DIR/test-runner/bin/zts-report.py}"
21export STF_TOOLS="${STF_TOOLS:-$ZTS_DIR/test-runner}"
22export STF_SUITE="${STF_SUITE:-$ZTS_DIR/zfs-tests}"
23