zfs-builds-mm/zfs-0.8.0/scripts/common.sh

51 lines
1.9 KiB
Bash
Raw Normal View History

2019-07-06 23:40:11 +02:00
#!/bin/sh
# Directories
export BIN_DIR=/root/src/zfs/zfs-0.8.0/bin
export SBIN_DIR=/root/src/zfs/zfs-0.8.0/bin
export ZTS_DIR=/root/src/zfs/zfs-0.8.0/tests
export SCRIPT_DIR=/root/src/zfs/zfs-0.8.0/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=/root/src/zfs/zfs-0.8.0/cmd
export UDEV_RULE_DIR=/root/src/zfs/zfs-0.8.0/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=/root/src/zfs/zfs-0.8.0/contrib
export LIB_DIR=/root/src/zfs/zfs-0.8.0/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=/root/src/zfs/zfs-0.8.0/module/spl/spl.ko
export KMOD_ZAVL=/root/src/zfs/zfs-0.8.0/module/avl/zavl.ko
export KMOD_ZNVPAIR=/root/src/zfs/zfs-0.8.0/module/nvpair/znvpair.ko
export KMOD_ZUNICODE=/root/src/zfs/zfs-0.8.0/module/unicode/zunicode.ko
export KMOD_ZCOMMON=/root/src/zfs/zfs-0.8.0/module/zcommon/zcommon.ko
export KMOD_ZLUA=/root/src/zfs/zfs-0.8.0/module/lua/zlua.ko
export KMOD_ICP=/root/src/zfs/zfs-0.8.0/module/icp/icp.ko
export KMOD_ZFS=/root/src/zfs/zfs-0.8.0/module/zfs/zfs.ko