zfs-builds-mm/zfs-0.8.4/scripts/common.sh
2020-07-19 16:21:53 +02:00

50 lines
2 KiB
Bash

#!/bin/sh
# Directories
export BIN_DIR=/src/zfs-builds-mm/zfs-0.8.4/bin
export SBIN_DIR=/src/zfs-builds-mm/zfs-0.8.4/bin
export ZTS_DIR=/src/zfs-builds-mm/zfs-0.8.4/tests
export SCRIPT_DIR=/src/zfs-builds-mm/zfs-0.8.4/scripts
# General commands
export ZDB=${ZDB:-$SBIN_DIR/zdb}
export ZFS=${ZFS:-$SBIN_DIR/zfs}
export ZPOOL=${ZPOOL:-$SBIN_DIR/zpool}
export ZTEST=${ZTEST:-$SBIN_DIR/ztest}
export ZFS_SH=${ZFS_SH:-$SCRIPT_DIR/zfs.sh}
# Test Suite
export RUNFILE_DIR=${RUNFILE_DIR:-$ZTS_DIR/runfiles}
export TEST_RUNNER=${TEST_RUNNER:-$ZTS_DIR/test-runner/bin/test-runner.py}
export ZTS_REPORT=${ZTS_REPORT:-$ZTS_DIR/test-runner/bin/zts-report.py}
export STF_TOOLS=${STF_TOOLS:-$ZTS_DIR/test-runner}
export STF_SUITE=${STF_SUITE:-$ZTS_DIR/zfs-tests}
# Only required for in-tree use
export INTREE="yes"
export GDB="/usr/bin/libtool --mode=execute gdb"
export LDMOD=/sbin/insmod
export CMD_DIR=/src/zfs-builds-mm/zfs-0.8.4/cmd
export UDEV_RULE_DIR=/src/zfs-builds-mm/zfs-0.8.4/udev/rules.d
export ZEDLET_ETC_DIR=$CMD_DIR/zed/zed.d
export ZEDLET_LIBEXEC_DIR=$CMD_DIR/zed/zed.d
export ZPOOL_SCRIPT_DIR=$CMD_DIR/zpool/zpool.d
export ZPOOL_SCRIPTS_PATH=$CMD_DIR/zpool/zpool.d
export CONTRIB_DIR=/src/zfs-builds-mm/zfs-0.8.4/contrib
export LIB_DIR=/src/zfs-builds-mm/zfs-0.8.4/lib
export INSTALL_UDEV_DIR=/lib/udev
export INSTALL_UDEV_RULE_DIR=/lib/udev/rules.d
export INSTALL_MOUNT_HELPER_DIR=/sbin
export INSTALL_SYSCONF_DIR=/usr/local/etc
export INSTALL_PYTHON_DIR=/usr/lib/python3/dist-packages
export KMOD_SPL=/src/zfs-builds-mm/zfs-0.8.4/module/spl/spl.ko
export KMOD_ZAVL=/src/zfs-builds-mm/zfs-0.8.4/module/avl/zavl.ko
export KMOD_ZNVPAIR=/src/zfs-builds-mm/zfs-0.8.4/module/nvpair/znvpair.ko
export KMOD_ZUNICODE=/src/zfs-builds-mm/zfs-0.8.4/module/unicode/zunicode.ko
export KMOD_ZCOMMON=/src/zfs-builds-mm/zfs-0.8.4/module/zcommon/zcommon.ko
export KMOD_ZLUA=/src/zfs-builds-mm/zfs-0.8.4/module/lua/zlua.ko
export KMOD_ICP=/src/zfs-builds-mm/zfs-0.8.4/module/icp/icp.ko
export KMOD_ZFS=/src/zfs-builds-mm/zfs-0.8.4/module/zfs/zfs.ko