2022-04-09 19:35:53 +03:00
|
|
|
scriptsdir = $(datadir)/$(PACKAGE)
|
|
|
|
dist_scripts_SCRIPTS = \
|
|
|
|
%D%/zfs-helpers.sh \
|
|
|
|
%D%/zfs-tests.sh \
|
|
|
|
%D%/zfs.sh \
|
|
|
|
%D%/zimport.sh \
|
|
|
|
%D%/zloop.sh
|
Retire legacy test infrastructure
* Removed zpios kmod, utility, headers and man page.
* Removed unused scripts zpios-profile/*, zpios-test/*,
zpool-config/*, smb.sh, zpios-sanity.sh, zpios-survey.sh,
zpios.sh, and zpool-create.sh.
* Removed zfs-script-config.sh.in. When building 'make' generates
a common.sh with in-tree path information from the common.sh.in
template. This file and sourced by the test scripts and used
for in-tree testing, it is not included in the packages. When
building packages 'make install' uses the same template to
create a new common.sh which is appropriate for the packaging.
* Removed unused functions/variables from scripts/common.sh.in.
Only minimal path information and configuration environment
variables remain.
* Removed unused scripts from scripts/ directory.
* Remaining shell scripts in the scripts directory updated to
cleanly pass shellcheck and added to checked scripts.
* Renamed tests/test-runner/cmd/ to tests/test-runner/bin/ to
match install location name.
* Removed last traces of the --enable-debug-dmu-tx configure
options which was retired some time ago.
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #6509
2017-08-16 03:26:38 +03:00
|
|
|
|
2022-05-26 19:24:50 +03:00
|
|
|
dist_noinst_SCRIPTS = \
|
2022-04-09 19:35:53 +03:00
|
|
|
%D%/commitcheck.sh \
|
|
|
|
%D%/common.sh.in \
|
|
|
|
%D%/dkms.mkconf \
|
|
|
|
%D%/dkms.postbuild \
|
|
|
|
%D%/kmodtool \
|
|
|
|
%D%/make_gitrev.sh \
|
|
|
|
%D%/man-dates.sh \
|
|
|
|
%D%/mancheck.sh \
|
|
|
|
%D%/paxcheck.sh \
|
|
|
|
%D%/zfs-tests-color.sh
|
2021-05-22 00:43:38 +03:00
|
|
|
|
2022-05-26 19:24:50 +03:00
|
|
|
dist_noinst_DATA += \
|
2022-04-09 19:35:53 +03:00
|
|
|
%D%/cstyle.pl \
|
|
|
|
%D%/enum-extract.pl \
|
|
|
|
%D%/zfs2zol-patch.sed \
|
2022-05-26 19:24:50 +03:00
|
|
|
%D%/zol2zfs-patch.sed
|
2021-05-22 00:43:38 +03:00
|
|
|
|
2022-05-26 19:24:50 +03:00
|
|
|
SHELLCHECKSCRIPTS += $(dist_scripts_SCRIPTS) $(dist_noinst_SCRIPTS)
|
Retire legacy test infrastructure
* Removed zpios kmod, utility, headers and man page.
* Removed unused scripts zpios-profile/*, zpios-test/*,
zpool-config/*, smb.sh, zpios-sanity.sh, zpios-survey.sh,
zpios.sh, and zpool-create.sh.
* Removed zfs-script-config.sh.in. When building 'make' generates
a common.sh with in-tree path information from the common.sh.in
template. This file and sourced by the test scripts and used
for in-tree testing, it is not included in the packages. When
building packages 'make install' uses the same template to
create a new common.sh which is appropriate for the packaging.
* Removed unused functions/variables from scripts/common.sh.in.
Only minimal path information and configuration environment
variables remain.
* Removed unused scripts from scripts/ directory.
* Remaining shell scripts in the scripts directory updated to
cleanly pass shellcheck and added to checked scripts.
* Renamed tests/test-runner/cmd/ to tests/test-runner/bin/ to
match install location name.
* Removed last traces of the --enable-debug-dmu-tx configure
options which was retired some time ago.
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #6509
2017-08-16 03:26:38 +03:00
|
|
|
|
2022-04-09 19:35:53 +03:00
|
|
|
define SCRIPTS_EXTRA_ENVIRONMENT
|
Retire legacy test infrastructure
* Removed zpios kmod, utility, headers and man page.
* Removed unused scripts zpios-profile/*, zpios-test/*,
zpool-config/*, smb.sh, zpios-sanity.sh, zpios-survey.sh,
zpios.sh, and zpool-create.sh.
* Removed zfs-script-config.sh.in. When building 'make' generates
a common.sh with in-tree path information from the common.sh.in
template. This file and sourced by the test scripts and used
for in-tree testing, it is not included in the packages. When
building packages 'make install' uses the same template to
create a new common.sh which is appropriate for the packaging.
* Removed unused functions/variables from scripts/common.sh.in.
Only minimal path information and configuration environment
variables remain.
* Removed unused scripts from scripts/ directory.
* Remaining shell scripts in the scripts directory updated to
cleanly pass shellcheck and added to checked scripts.
* Renamed tests/test-runner/cmd/ to tests/test-runner/bin/ to
match install location name.
* Removed last traces of the --enable-debug-dmu-tx configure
options which was retired some time ago.
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #6509
2017-08-16 03:26:38 +03:00
|
|
|
|
|
|
|
# Only required for in-tree use
|
|
|
|
export INTREE="yes"
|
2020-01-03 00:48:06 +03:00
|
|
|
export GDB="libtool --mode=execute gdb"
|
Retire legacy test infrastructure
* Removed zpios kmod, utility, headers and man page.
* Removed unused scripts zpios-profile/*, zpios-test/*,
zpool-config/*, smb.sh, zpios-sanity.sh, zpios-survey.sh,
zpios.sh, and zpool-create.sh.
* Removed zfs-script-config.sh.in. When building 'make' generates
a common.sh with in-tree path information from the common.sh.in
template. This file and sourced by the test scripts and used
for in-tree testing, it is not included in the packages. When
building packages 'make install' uses the same template to
create a new common.sh which is appropriate for the packaging.
* Removed unused functions/variables from scripts/common.sh.in.
Only minimal path information and configuration environment
variables remain.
* Removed unused scripts from scripts/ directory.
* Remaining shell scripts in the scripts directory updated to
cleanly pass shellcheck and added to checked scripts.
* Renamed tests/test-runner/cmd/ to tests/test-runner/bin/ to
match install location name.
* Removed last traces of the --enable-debug-dmu-tx configure
options which was retired some time ago.
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #6509
2017-08-16 03:26:38 +03:00
|
|
|
export LDMOD=/sbin/insmod
|
|
|
|
|
2022-04-09 19:35:53 +03:00
|
|
|
export CMD_DIR=$(abs_top_builddir)
|
2022-04-10 23:47:56 +03:00
|
|
|
export UDEV_SCRIPT_DIR=$(abs_top_srcdir)/udev
|
|
|
|
export UDEV_CMD_DIR=$(abs_top_builddir)/udev
|
2022-04-09 19:35:53 +03:00
|
|
|
export UDEV_RULE_DIR=$(abs_top_builddir)/udev/rules.d
|
2022-04-09 05:09:55 +03:00
|
|
|
export ZEDLET_ETC_DIR=$$CMD_DIR/cmd/zed/zed.d
|
|
|
|
export ZEDLET_LIBEXEC_DIR=$$CMD_DIR/cmd/zed/zed.d
|
|
|
|
export ZPOOL_SCRIPT_DIR=$$CMD_DIR/cmd/zpool/zpool.d
|
|
|
|
export ZPOOL_SCRIPTS_PATH=$$CMD_DIR/cmd/zpool/zpool.d
|
|
|
|
export ZPOOL_COMPAT_DIR=$$CMD_DIR/cmd/zpool/compatibility.d
|
2022-04-09 19:35:53 +03:00
|
|
|
export CONTRIB_DIR=$(abs_top_builddir)/contrib
|
|
|
|
export LIB_DIR=$(abs_top_builddir)/.libs
|
|
|
|
export SYSCONF_DIR=$(abs_top_builddir)/etc
|
Retire legacy test infrastructure
* Removed zpios kmod, utility, headers and man page.
* Removed unused scripts zpios-profile/*, zpios-test/*,
zpool-config/*, smb.sh, zpios-sanity.sh, zpios-survey.sh,
zpios.sh, and zpool-create.sh.
* Removed zfs-script-config.sh.in. When building 'make' generates
a common.sh with in-tree path information from the common.sh.in
template. This file and sourced by the test scripts and used
for in-tree testing, it is not included in the packages. When
building packages 'make install' uses the same template to
create a new common.sh which is appropriate for the packaging.
* Removed unused functions/variables from scripts/common.sh.in.
Only minimal path information and configuration environment
variables remain.
* Removed unused scripts from scripts/ directory.
* Remaining shell scripts in the scripts directory updated to
cleanly pass shellcheck and added to checked scripts.
* Renamed tests/test-runner/cmd/ to tests/test-runner/bin/ to
match install location name.
* Removed last traces of the --enable-debug-dmu-tx configure
options which was retired some time ago.
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #6509
2017-08-16 03:26:38 +03:00
|
|
|
|
2022-04-09 19:35:53 +03:00
|
|
|
export INSTALL_UDEV_DIR=$(udevdir)
|
|
|
|
export INSTALL_UDEV_RULE_DIR=$(udevruledir)
|
|
|
|
export INSTALL_MOUNT_HELPER_DIR=$(mounthelperdir)
|
|
|
|
export INSTALL_SYSCONF_DIR=$(sysconfdir)
|
|
|
|
export INSTALL_PYTHON_DIR=$(pythonsitedir)
|
Retire legacy test infrastructure
* Removed zpios kmod, utility, headers and man page.
* Removed unused scripts zpios-profile/*, zpios-test/*,
zpool-config/*, smb.sh, zpios-sanity.sh, zpios-survey.sh,
zpios.sh, and zpool-create.sh.
* Removed zfs-script-config.sh.in. When building 'make' generates
a common.sh with in-tree path information from the common.sh.in
template. This file and sourced by the test scripts and used
for in-tree testing, it is not included in the packages. When
building packages 'make install' uses the same template to
create a new common.sh which is appropriate for the packaging.
* Removed unused functions/variables from scripts/common.sh.in.
Only minimal path information and configuration environment
variables remain.
* Removed unused scripts from scripts/ directory.
* Remaining shell scripts in the scripts directory updated to
cleanly pass shellcheck and added to checked scripts.
* Renamed tests/test-runner/cmd/ to tests/test-runner/bin/ to
match install location name.
* Removed last traces of the --enable-debug-dmu-tx configure
options which was retired some time ago.
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #6509
2017-08-16 03:26:38 +03:00
|
|
|
|
2022-04-09 19:35:53 +03:00
|
|
|
export KMOD_SPL=$(abs_top_builddir)/module/spl.ko
|
|
|
|
export KMOD_ZFS=$(abs_top_builddir)/module/zfs.ko
|
|
|
|
export KMOD_FREEBSD=$(abs_top_builddir)/module/openzfs.ko
|
Retire legacy test infrastructure
* Removed zpios kmod, utility, headers and man page.
* Removed unused scripts zpios-profile/*, zpios-test/*,
zpool-config/*, smb.sh, zpios-sanity.sh, zpios-survey.sh,
zpios.sh, and zpool-create.sh.
* Removed zfs-script-config.sh.in. When building 'make' generates
a common.sh with in-tree path information from the common.sh.in
template. This file and sourced by the test scripts and used
for in-tree testing, it is not included in the packages. When
building packages 'make install' uses the same template to
create a new common.sh which is appropriate for the packaging.
* Removed unused functions/variables from scripts/common.sh.in.
Only minimal path information and configuration environment
variables remain.
* Removed unused scripts from scripts/ directory.
* Remaining shell scripts in the scripts directory updated to
cleanly pass shellcheck and added to checked scripts.
* Renamed tests/test-runner/cmd/ to tests/test-runner/bin/ to
match install location name.
* Removed last traces of the --enable-debug-dmu-tx configure
options which was retired some time ago.
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #6509
2017-08-16 03:26:38 +03:00
|
|
|
endef
|
|
|
|
|
2022-04-09 19:35:53 +03:00
|
|
|
export SCRIPTS_EXTRA_ENVIRONMENT
|
Retire legacy test infrastructure
* Removed zpios kmod, utility, headers and man page.
* Removed unused scripts zpios-profile/*, zpios-test/*,
zpool-config/*, smb.sh, zpios-sanity.sh, zpios-survey.sh,
zpios.sh, and zpool-create.sh.
* Removed zfs-script-config.sh.in. When building 'make' generates
a common.sh with in-tree path information from the common.sh.in
template. This file and sourced by the test scripts and used
for in-tree testing, it is not included in the packages. When
building packages 'make install' uses the same template to
create a new common.sh which is appropriate for the packaging.
* Removed unused functions/variables from scripts/common.sh.in.
Only minimal path information and configuration environment
variables remain.
* Removed unused scripts from scripts/ directory.
* Remaining shell scripts in the scripts directory updated to
cleanly pass shellcheck and added to checked scripts.
* Renamed tests/test-runner/cmd/ to tests/test-runner/bin/ to
match install location name.
* Removed last traces of the --enable-debug-dmu-tx configure
options which was retired some time ago.
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #6509
2017-08-16 03:26:38 +03:00
|
|
|
|
2022-04-09 19:35:53 +03:00
|
|
|
CLEANFILES += %D%/common.sh
|
|
|
|
%D%/common.sh: %D%/common.sh.in Makefile
|
|
|
|
-$(AM_V_at)$(MKDIR_P) $(@D)
|
|
|
|
-$(AM_V_GEN)$(SED) -e '/^export BIN_DIR=/s|$$|$(abs_top_builddir)/tests/zfs-tests/bin|' \
|
|
|
|
-e '/^export SBIN_DIR=/s|$$|$(abs_top_builddir)|' \
|
|
|
|
-e '/^export LIBEXEC_DIR=/s|$$|$(abs_top_builddir)|' \
|
|
|
|
-e '/^export ZTS_DIR=/s|$$|$(abs_top_srcdir)/tests|' \
|
|
|
|
-e '/^export SCRIPT_DIR=/s|$$|$(abs_top_srcdir)/scripts|' \
|
|
|
|
$< >$@
|
|
|
|
-$(AM_V_at)echo "$$SCRIPTS_EXTRA_ENVIRONMENT" >>$@
|
Retire legacy test infrastructure
* Removed zpios kmod, utility, headers and man page.
* Removed unused scripts zpios-profile/*, zpios-test/*,
zpool-config/*, smb.sh, zpios-sanity.sh, zpios-survey.sh,
zpios.sh, and zpool-create.sh.
* Removed zfs-script-config.sh.in. When building 'make' generates
a common.sh with in-tree path information from the common.sh.in
template. This file and sourced by the test scripts and used
for in-tree testing, it is not included in the packages. When
building packages 'make install' uses the same template to
create a new common.sh which is appropriate for the packaging.
* Removed unused functions/variables from scripts/common.sh.in.
Only minimal path information and configuration environment
variables remain.
* Removed unused scripts from scripts/ directory.
* Remaining shell scripts in the scripts directory updated to
cleanly pass shellcheck and added to checked scripts.
* Renamed tests/test-runner/cmd/ to tests/test-runner/bin/ to
match install location name.
* Removed last traces of the --enable-debug-dmu-tx configure
options which was retired some time ago.
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #6509
2017-08-16 03:26:38 +03:00
|
|
|
|
2022-04-09 19:35:53 +03:00
|
|
|
ALL_LOCAL += scripts-all-local
|
|
|
|
scripts-all-local: %D%/common.sh
|
|
|
|
-SCRIPT_COMMON=$< $(srcdir)/%D%/zfs-tests.sh -c
|
Retire legacy test infrastructure
* Removed zpios kmod, utility, headers and man page.
* Removed unused scripts zpios-profile/*, zpios-test/*,
zpool-config/*, smb.sh, zpios-sanity.sh, zpios-survey.sh,
zpios.sh, and zpool-create.sh.
* Removed zfs-script-config.sh.in. When building 'make' generates
a common.sh with in-tree path information from the common.sh.in
template. This file and sourced by the test scripts and used
for in-tree testing, it is not included in the packages. When
building packages 'make install' uses the same template to
create a new common.sh which is appropriate for the packaging.
* Removed unused functions/variables from scripts/common.sh.in.
Only minimal path information and configuration environment
variables remain.
* Removed unused scripts from scripts/ directory.
* Remaining shell scripts in the scripts directory updated to
cleanly pass shellcheck and added to checked scripts.
* Renamed tests/test-runner/cmd/ to tests/test-runner/bin/ to
match install location name.
* Removed last traces of the --enable-debug-dmu-tx configure
options which was retired some time ago.
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #6509
2017-08-16 03:26:38 +03:00
|
|
|
|
2022-05-03 14:17:50 +03:00
|
|
|
CLEAN_LOCAL += scripts-clean-local
|
|
|
|
scripts-clean-local:
|
|
|
|
-$(RM) -r tests/zfs-tests/bin/
|
|
|
|
|
2022-04-09 19:35:53 +03:00
|
|
|
INSTALL_DATA_HOOKS += scripts-install-data-hook
|
|
|
|
scripts-install-data-hook: %D%/common.sh.in Makefile
|
|
|
|
-$(SED) -e '/^export BIN_DIR=/s|$$|$(bindir)|' \
|
|
|
|
-e '/^export SBIN_DIR=/s|$$|$(sbindir)|' \
|
|
|
|
-e '/^export LIBEXEC_DIR=/s|$$|$(zfsexecdir)|' \
|
|
|
|
-e '/^export ZTS_DIR=/s|$$|$(datadir)/$(PACKAGE)|' \
|
|
|
|
-e '/^export SCRIPT_DIR=/s|$$|$(datadir)/$(PACKAGE)|' \
|
|
|
|
$< >$(DESTDIR)$(datadir)/$(PACKAGE)/common.sh
|