aboutsummaryrefslogtreecommitdiffstats
path: root/tests/zfs-tests
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-03-22 20:09:47 +0100
committerBrian Behlendorf <[email protected]>2022-04-01 17:58:23 -0700
commite294acdba879bf86e7253beeaaa5f098b92157d7 (patch)
tree3169ec6a760eaa4ffbee9b21db5d990646a12915 /tests/zfs-tests
parentcaeab993ec77ce15bcb25484017ff18f18a6550b (diff)
tests: cmd: don't recurse
This confers an >10x speedup on t/z-t/cmd builds (12s -> 1.1s), gets rid of 23 redundant identical automake specs and gitignores, and groups the binaries with their common headers Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: John Kennedy <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #13259
Diffstat (limited to 'tests/zfs-tests')
-rw-r--r--tests/zfs-tests/cmd/.gitignore34
-rw-r--r--tests/zfs-tests/cmd/Makefile.am179
-rw-r--r--tests/zfs-tests/cmd/badsend.c (renamed from tests/zfs-tests/cmd/badsend/badsend.c)0
-rw-r--r--tests/zfs-tests/cmd/badsend/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/badsend/Makefile.am11
-rw-r--r--tests/zfs-tests/cmd/btree_test.c (renamed from tests/zfs-tests/cmd/btree_test/btree_test.c)0
-rw-r--r--tests/zfs-tests/cmd/btree_test/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/btree_test/Makefile.am32
-rw-r--r--tests/zfs-tests/cmd/chg_usr_exec.c (renamed from tests/zfs-tests/cmd/chg_usr_exec/chg_usr_exec.c)0
-rw-r--r--tests/zfs-tests/cmd/chg_usr_exec/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/chg_usr_exec/Makefile.am6
-rw-r--r--tests/zfs-tests/cmd/devname2devid.c (renamed from tests/zfs-tests/cmd/devname2devid/devname2devid.c)0
-rw-r--r--tests/zfs-tests/cmd/devname2devid/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/devname2devid/Makefile.am10
-rw-r--r--tests/zfs-tests/cmd/dir_rd_update.c (renamed from tests/zfs-tests/cmd/dir_rd_update/dir_rd_update.c)0
-rw-r--r--tests/zfs-tests/cmd/dir_rd_update/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/dir_rd_update/Makefile.am6
-rw-r--r--tests/zfs-tests/cmd/draid.c (renamed from tests/zfs-tests/cmd/draid/draid.c)0
-rw-r--r--tests/zfs-tests/cmd/draid/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/draid/Makefile.am15
-rw-r--r--tests/zfs-tests/cmd/file/file_check.c (renamed from tests/zfs-tests/cmd/file_check/file_check.c)2
-rw-r--r--tests/zfs-tests/cmd/file/file_common.h (renamed from tests/zfs-tests/cmd/file_common.h)0
-rw-r--r--tests/zfs-tests/cmd/file/file_trunc.c (renamed from tests/zfs-tests/cmd/file_trunc/file_trunc.c)0
-rw-r--r--tests/zfs-tests/cmd/file/file_write.c (renamed from tests/zfs-tests/cmd/file_write/file_write.c)2
-rw-r--r--tests/zfs-tests/cmd/file/largest_file.c (renamed from tests/zfs-tests/cmd/largest_file/largest_file.c)2
-rw-r--r--tests/zfs-tests/cmd/file/randfree_file.c (renamed from tests/zfs-tests/cmd/randfree_file/randfree_file.c)2
-rw-r--r--tests/zfs-tests/cmd/file/randwritecomp.c (renamed from tests/zfs-tests/cmd/randwritecomp/randwritecomp.c)2
-rw-r--r--tests/zfs-tests/cmd/file_check/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/file_check/Makefile.am6
-rw-r--r--tests/zfs-tests/cmd/file_trunc/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/file_trunc/Makefile.am6
-rw-r--r--tests/zfs-tests/cmd/file_write/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/file_write/Makefile.am6
-rw-r--r--tests/zfs-tests/cmd/get_diff.c (renamed from tests/zfs-tests/cmd/get_diff/get_diff.c)0
-rw-r--r--tests/zfs-tests/cmd/get_diff/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/get_diff/Makefile.am6
-rw-r--r--tests/zfs-tests/cmd/getversion.c (renamed from tests/zfs-tests/cmd/getversion/getversion.c)0
-rw-r--r--tests/zfs-tests/cmd/getversion/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/getversion/Makefile.am6
-rw-r--r--tests/zfs-tests/cmd/largest_file/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/largest_file/Makefile.am6
-rw-r--r--tests/zfs-tests/cmd/libzfs_input_check.c (renamed from tests/zfs-tests/cmd/libzfs_input_check/libzfs_input_check.c)0
-rw-r--r--tests/zfs-tests/cmd/libzfs_input_check/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/libzfs_input_check/Makefile.am17
-rw-r--r--tests/zfs-tests/cmd/linux_dos_attributes/.gitignore2
-rw-r--r--tests/zfs-tests/cmd/linux_dos_attributes/Makefile.am8
-rw-r--r--tests/zfs-tests/cmd/mkbusy.c (renamed from tests/zfs-tests/cmd/mkbusy/mkbusy.c)0
-rw-r--r--tests/zfs-tests/cmd/mkbusy/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/mkbusy/Makefile.am6
-rw-r--r--tests/zfs-tests/cmd/mkfile.c (renamed from tests/zfs-tests/cmd/mkfile/mkfile.c)0
-rw-r--r--tests/zfs-tests/cmd/mkfile/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/mkfile/Makefile.am8
-rw-r--r--tests/zfs-tests/cmd/mkfiles.c (renamed from tests/zfs-tests/cmd/mkfiles/mkfiles.c)0
-rw-r--r--tests/zfs-tests/cmd/mkfiles/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/mkfiles/Makefile.am6
-rw-r--r--tests/zfs-tests/cmd/mktree.c (renamed from tests/zfs-tests/cmd/mktree/mktree.c)0
-rw-r--r--tests/zfs-tests/cmd/mktree/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/mktree/Makefile.am6
-rw-r--r--tests/zfs-tests/cmd/mmap_exec.c (renamed from tests/zfs-tests/cmd/mmap_exec/mmap_exec.c)0
-rw-r--r--tests/zfs-tests/cmd/mmap_exec/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/mmap_exec/Makefile.am6
-rw-r--r--tests/zfs-tests/cmd/mmap_libaio.c (renamed from tests/zfs-tests/cmd/mmap_libaio/mmap_libaio.c)0
-rw-r--r--tests/zfs-tests/cmd/mmap_libaio/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/mmap_libaio/Makefile.am10
-rw-r--r--tests/zfs-tests/cmd/mmap_seek.c (renamed from tests/zfs-tests/cmd/mmap_seek/mmap_seek.c)0
-rw-r--r--tests/zfs-tests/cmd/mmap_seek/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/mmap_seek/Makefile.am6
-rw-r--r--tests/zfs-tests/cmd/mmapwrite.c (renamed from tests/zfs-tests/cmd/mmapwrite/mmapwrite.c)0
-rw-r--r--tests/zfs-tests/cmd/mmapwrite/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/mmapwrite/Makefile.am7
-rw-r--r--tests/zfs-tests/cmd/nvlist_to_lua.c (renamed from tests/zfs-tests/cmd/nvlist_to_lua/nvlist_to_lua.c)0
-rw-r--r--tests/zfs-tests/cmd/nvlist_to_lua/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/nvlist_to_lua/Makefile.am10
-rw-r--r--tests/zfs-tests/cmd/randfree_file/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/randfree_file/Makefile.am6
-rw-r--r--tests/zfs-tests/cmd/randwritecomp/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/randwritecomp/Makefile.am9
-rw-r--r--tests/zfs-tests/cmd/readmmap.c (renamed from tests/zfs-tests/cmd/readmmap/readmmap.c)0
-rw-r--r--tests/zfs-tests/cmd/readmmap/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/readmmap/Makefile.am6
-rw-r--r--tests/zfs-tests/cmd/rename_dir.c (renamed from tests/zfs-tests/cmd/rename_dir/rename_dir.c)0
-rw-r--r--tests/zfs-tests/cmd/rename_dir/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/rename_dir/Makefile.am6
-rw-r--r--tests/zfs-tests/cmd/rm_lnkcnt_zero_file.c (renamed from tests/zfs-tests/cmd/rm_lnkcnt_zero_file/rm_lnkcnt_zero_file.c)0
-rw-r--r--tests/zfs-tests/cmd/rm_lnkcnt_zero_file/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile.am7
-rw-r--r--tests/zfs-tests/cmd/send_doall.c (renamed from tests/zfs-tests/cmd/send_doall/send_doall.c)0
-rw-r--r--tests/zfs-tests/cmd/send_doall/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/send_doall/Makefile.am11
-rw-r--r--tests/zfs-tests/cmd/stride_dd.c (renamed from tests/zfs-tests/cmd/stride_dd/stride_dd.c)0
-rw-r--r--tests/zfs-tests/cmd/stride_dd/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/stride_dd/Makefile.am7
-rw-r--r--tests/zfs-tests/cmd/threadsappend.c (renamed from tests/zfs-tests/cmd/threadsappend/threadsappend.c)0
-rw-r--r--tests/zfs-tests/cmd/threadsappend/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/threadsappend/Makefile.am7
-rw-r--r--tests/zfs-tests/cmd/user_ns_exec.c (renamed from tests/zfs-tests/cmd/user_ns_exec/user_ns_exec.c)0
-rw-r--r--tests/zfs-tests/cmd/user_ns_exec/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/user_ns_exec/Makefile.am6
-rw-r--r--tests/zfs-tests/cmd/xattrtest.c (renamed from tests/zfs-tests/cmd/xattrtest/xattrtest.c)0
-rw-r--r--tests/zfs-tests/cmd/xattrtest/.gitignore1
-rw-r--r--tests/zfs-tests/cmd/xattrtest/Makefile.am6
101 files changed, 181 insertions, 353 deletions
diff --git a/tests/zfs-tests/cmd/.gitignore b/tests/zfs-tests/cmd/.gitignore
new file mode 100644
index 000000000..ea4d2613c
--- /dev/null
+++ b/tests/zfs-tests/cmd/.gitignore
@@ -0,0 +1,34 @@
+/badsend
+/btree_test
+/chg_usr_exec
+/devname2devid
+/dir_rd_update
+/draid
+/file_check
+/file_trunc
+/file_write
+/get_diff
+/getversion
+/largest_file
+/libzfs_input_check
+/mkbusy
+/mkfile
+/mkfiles
+/mktree
+/mmap_exec
+/mmap_libaio
+/mmap_seek
+/mmapwrite
+/nvlist_to_lua
+/randfree_file
+/randwritecomp
+/read_dos_attributes
+/readmmap
+/rename_dir
+/rm_lnkcnt_zero_file
+/send_doall
+/stride_dd
+/threadsappend
+/user_ns_exec
+/write_dos_attributes
+/xattrtest
diff --git a/tests/zfs-tests/cmd/Makefile.am b/tests/zfs-tests/cmd/Makefile.am
index fb49edd3a..ca3befb27 100644
--- a/tests/zfs-tests/cmd/Makefile.am
+++ b/tests/zfs-tests/cmd/Makefile.am
@@ -1,40 +1,145 @@
-EXTRA_DIST = file_common.h
-
-SUBDIRS = \
- badsend \
- btree_test \
- chg_usr_exec \
- devname2devid \
- dir_rd_update \
- draid \
- file_check \
- file_trunc \
- file_write \
- get_diff \
- largest_file \
- libzfs_input_check \
- mkbusy \
- mkfile \
- mkfiles \
- mktree \
- mmap_exec \
- mmap_libaio \
- mmap_seek \
- mmapwrite \
- nvlist_to_lua \
- randwritecomp \
- readmmap \
- rename_dir \
- rm_lnkcnt_zero_file \
- send_doall \
- stride_dd \
- threadsappend
+include $(top_srcdir)/config/Rules.am
+pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
+
+
+pkgexec_PROGRAMS = badsend
+badsend_SOURCES = badsend.c
+badsend_LDADD = \
+ $(abs_top_builddir)/lib/libzfs_core/libzfs_core.la \
+ $(abs_top_builddir)/lib/libzfs/libzfs.la \
+ $(abs_top_builddir)/lib/libnvpair/libnvpair.la
+
+
+pkgexec_PROGRAMS += btree_test
+btree_test_SOURCES = btree_test.c
+# Unconditionally enable ASSERTs
+btree_test_CPPFLAGS = $(AM_CPPFLAGS) -DDEBUG -UNDEBUG -DZFS_DEBUG
+btree_test_LDADD = \
+ $(abs_top_builddir)/lib/libzpool/libzpool.la \
+ $(abs_top_builddir)/lib/libzfs_core/libzfs_core.la
+
+
+pkgexec_PROGRAMS += chg_usr_exec
+chg_usr_exec_SOURCES = chg_usr_exec.c
+
+
+if WANT_DEVNAME2DEVID
+pkgexec_PROGRAMS += devname2devid
+devname2devid_SOURCES = devname2devid.c
+devname2devid_CFLAGS = $(AM_CFLAGS) $(LIBUDEV_CFLAGS)
+devname2devid_LDADD = $(LIBUDEV_LIBS)
+endif
+
+
+pkgexec_PROGRAMS += dir_rd_update
+dir_rd_update_SOURCES = dir_rd_update.c
+
+
+pkgexec_PROGRAMS += draid
+draid_CFLAGS = $(AM_CFLAGS) $(ZLIB_CFLAGS)
+draid_SOURCES = draid.c
+draid_LDADD = \
+ $(abs_top_builddir)/lib/libzpool/libzpool.la \
+ $(abs_top_builddir)/lib/libnvpair/libnvpair.la
+draid_LDADD += $(ZLIB_LIBS)
+
+
+EXTRA_DIST = file/file_common.h
+pkgexec_PROGRAMS += file_check file_trunc file_write largest_file randwritecomp
+file_check_SOURCES = file/file_check.c
+file_trunc_SOURCES = file/file_trunc.c
+file_write_SOURCES = file/file_write.c
+largest_file_SOURCES = file/largest_file.c
+randwritecomp_SOURCES = file/randwritecomp.c
+
+
+pkgexec_PROGRAMS += get_diff
+get_diff_SOURCES = get_diff.c
+
+
+pkgexec_PROGRAMS += libzfs_input_check
+libzfs_input_check_SOURCES = libzfs_input_check.c
+if BUILD_FREEBSD
+libzfs_input_check_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/include/os/freebsd/zfs
+endif
if BUILD_LINUX
-SUBDIRS += \
- getversion \
- randfree_file \
- linux_dos_attributes \
- user_ns_exec \
- xattrtest
+libzfs_input_check_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/include/os/linux/zfs
+endif
+libzfs_input_check_LDADD = \
+ $(abs_top_builddir)/lib/libzfs_core/libzfs_core.la \
+ $(abs_top_builddir)/lib/libnvpair/libnvpair.la
+
+
+
+pkgexec_PROGRAMS += mkbusy mkfile mkfiles mktree
+mkbusy_SOURCES = mkbusy.c
+mkfile_SOURCES = mkfile.c
+mkfile_LDADD = $(LTLIBINTL)
+mkfiles_SOURCES = mkfiles.c
+mktree_SOURCES = mktree.c
+
+
+pkgexec_PROGRAMS += mmap_exec mmap_seek mmapwrite readmmap
+mmap_exec_SOURCES = mmap_exec.c
+mmap_seek_SOURCES = mmap_seek.c
+mmapwrite_SOURCES = mmapwrite.c
+mmapwrite_LDADD = -lpthread
+readmmap_SOURCES = readmmap.c
+
+if WANT_MMAP_LIBAIO
+pkgexec_PROGRAMS += mmap_libaio
+mmap_libaio_SOURCES = mmap_libaio.c
+mmap_libaio_CFLAGS = $(AM_CFLAGS) $(LIBAIO_CFLAGS)
+mmap_libaio_LDADD = $(LIBAIO_LIBS)
+endif
+
+
+pkgexec_PROGRAMS += nvlist_to_lua
+nvlist_to_lua_SOURCES = nvlist_to_lua.c
+nvlist_to_lua_LDADD = \
+ $(abs_top_builddir)/lib/libzfs_core/libzfs_core.la \
+ $(abs_top_builddir)/lib/libnvpair/libnvpair.la
+
+
+pkgexec_PROGRAMS += rename_dir
+rename_dir_SOURCES = rename_dir.c
+
+pkgexec_PROGRAMS += rm_lnkcnt_zero_file
+rm_lnkcnt_zero_file_SOURCES = rm_lnkcnt_zero_file.c
+rm_lnkcnt_zero_file_LDADD = -lpthread
+
+pkgexec_PROGRAMS += send_doall
+send_doall_SOURCES = send_doall.c
+send_doall_LDADD = \
+ $(abs_top_builddir)/lib/libzfs_core/libzfs_core.la \
+ $(abs_top_builddir)/lib/libzfs/libzfs.la \
+ $(abs_top_builddir)/lib/libnvpair/libnvpair.la
+
+pkgexec_PROGRAMS += stride_dd
+stride_dd_SOURCES = stride_dd.c
+stride_dd_LDADD = -lrt
+
+pkgexec_PROGRAMS += threadsappend
+threadsappend_SOURCES = threadsappend.c
+threadsappend_LDADD = -lpthread
+
+
+if BUILD_LINUX
+pkgexec_PROGRAMS += getversion
+getversion_SOURCES = getversion.c
+
+EXTRA_DIST += linux_dos_attributes/dos_attributes.h
+pkgexec_PROGRAMS += read_dos_attributes write_dos_attributes
+read_dos_attributes_SOURCES = linux_dos_attributes/read_dos_attributes.c
+write_dos_attributes_SOURCES = linux_dos_attributes/write_dos_attributes.c
+
+pkgexec_PROGRAMS += randfree_file
+randfree_file_SOURCES = file/randfree_file.c
+
+pkgexec_PROGRAMS += user_ns_exec
+user_ns_exec_SOURCES = user_ns_exec.c
+
+pkgexec_PROGRAMS += xattrtest
+xattrtest_SOURCES = xattrtest.c
endif
diff --git a/tests/zfs-tests/cmd/badsend/badsend.c b/tests/zfs-tests/cmd/badsend.c
index af17bc725..af17bc725 100644
--- a/tests/zfs-tests/cmd/badsend/badsend.c
+++ b/tests/zfs-tests/cmd/badsend.c
diff --git a/tests/zfs-tests/cmd/badsend/.gitignore b/tests/zfs-tests/cmd/badsend/.gitignore
deleted file mode 100644
index d2efa627a..000000000
--- a/tests/zfs-tests/cmd/badsend/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/badsend
diff --git a/tests/zfs-tests/cmd/badsend/Makefile.am b/tests/zfs-tests/cmd/badsend/Makefile.am
deleted file mode 100644
index 5a8946f0d..000000000
--- a/tests/zfs-tests/cmd/badsend/Makefile.am
+++ /dev/null
@@ -1,11 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = badsend
-
-badsend_SOURCES = badsend.c
-badsend_LDADD = \
- $(abs_top_builddir)/lib/libzfs_core/libzfs_core.la \
- $(abs_top_builddir)/lib/libzfs/libzfs.la \
- $(abs_top_builddir)/lib/libnvpair/libnvpair.la
diff --git a/tests/zfs-tests/cmd/btree_test/btree_test.c b/tests/zfs-tests/cmd/btree_test.c
index aaad4e47e..aaad4e47e 100644
--- a/tests/zfs-tests/cmd/btree_test/btree_test.c
+++ b/tests/zfs-tests/cmd/btree_test.c
diff --git a/tests/zfs-tests/cmd/btree_test/.gitignore b/tests/zfs-tests/cmd/btree_test/.gitignore
deleted file mode 100644
index 73777c4c1..000000000
--- a/tests/zfs-tests/cmd/btree_test/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/btree_test
diff --git a/tests/zfs-tests/cmd/btree_test/Makefile.am b/tests/zfs-tests/cmd/btree_test/Makefile.am
deleted file mode 100644
index 4c9a1a4cc..000000000
--- a/tests/zfs-tests/cmd/btree_test/Makefile.am
+++ /dev/null
@@ -1,32 +0,0 @@
-#
-# This file and its contents are supplied under the terms of the
-# Common Development and Distribution License ("CDDL"), version 1.0.
-# You may only use this file in accordance with the terms of version
-# 1.0 of the CDDL.
-#
-# A full copy of the text of the CDDL should have accompanied this
-# source. A copy of the CDDL is also available via the Internet at
-# http://www.illumos.org/license/CDDL.
-#
-
-#
-# Copyright (c) 2019 by Delphix. All rights reserved.
-#
-
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-DEFAULT_INCLUDES += \
- -I$(top_srcdir)/include \
- -I$(top_srcdir)/lib/libspl/include
-
-# Unconditionally enable ASSERTs
-AM_CPPFLAGS += -DDEBUG -UNDEBUG -DZFS_DEBUG
-
-pkgexec_PROGRAMS = btree_test
-btree_test_SOURCES = btree_test.c
-
-btree_test_LDADD = \
- $(abs_top_builddir)/lib/libzpool/libzpool.la \
- $(abs_top_builddir)/lib/libzfs_core/libzfs_core.la
diff --git a/tests/zfs-tests/cmd/chg_usr_exec/chg_usr_exec.c b/tests/zfs-tests/cmd/chg_usr_exec.c
index 1fa9e88a6..1fa9e88a6 100644
--- a/tests/zfs-tests/cmd/chg_usr_exec/chg_usr_exec.c
+++ b/tests/zfs-tests/cmd/chg_usr_exec.c
diff --git a/tests/zfs-tests/cmd/chg_usr_exec/.gitignore b/tests/zfs-tests/cmd/chg_usr_exec/.gitignore
deleted file mode 100644
index a8b44df7c..000000000
--- a/tests/zfs-tests/cmd/chg_usr_exec/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/chg_usr_exec
diff --git a/tests/zfs-tests/cmd/chg_usr_exec/Makefile.am b/tests/zfs-tests/cmd/chg_usr_exec/Makefile.am
deleted file mode 100644
index 6f2968f1f..000000000
--- a/tests/zfs-tests/cmd/chg_usr_exec/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = chg_usr_exec
-chg_usr_exec_SOURCES = chg_usr_exec.c
diff --git a/tests/zfs-tests/cmd/devname2devid/devname2devid.c b/tests/zfs-tests/cmd/devname2devid.c
index 91e59c589..91e59c589 100644
--- a/tests/zfs-tests/cmd/devname2devid/devname2devid.c
+++ b/tests/zfs-tests/cmd/devname2devid.c
diff --git a/tests/zfs-tests/cmd/devname2devid/.gitignore b/tests/zfs-tests/cmd/devname2devid/.gitignore
deleted file mode 100644
index fa9fb6c50..000000000
--- a/tests/zfs-tests/cmd/devname2devid/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/devname2devid
diff --git a/tests/zfs-tests/cmd/devname2devid/Makefile.am b/tests/zfs-tests/cmd/devname2devid/Makefile.am
deleted file mode 100644
index b8b630dc2..000000000
--- a/tests/zfs-tests/cmd/devname2devid/Makefile.am
+++ /dev/null
@@ -1,10 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-if WANT_DEVNAME2DEVID
-pkgexec_PROGRAMS = devname2devid
-devname2devid_SOURCES = devname2devid.c
-devname2devid_CFLAGS = $(AM_CFLAGS) $(LIBUDEV_CFLAGS)
-devname2devid_LDADD = $(LIBUDEV_LIBS)
-endif
diff --git a/tests/zfs-tests/cmd/dir_rd_update/dir_rd_update.c b/tests/zfs-tests/cmd/dir_rd_update.c
index ea46f047a..ea46f047a 100644
--- a/tests/zfs-tests/cmd/dir_rd_update/dir_rd_update.c
+++ b/tests/zfs-tests/cmd/dir_rd_update.c
diff --git a/tests/zfs-tests/cmd/dir_rd_update/.gitignore b/tests/zfs-tests/cmd/dir_rd_update/.gitignore
deleted file mode 100644
index ec9a15f17..000000000
--- a/tests/zfs-tests/cmd/dir_rd_update/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/dir_rd_update
diff --git a/tests/zfs-tests/cmd/dir_rd_update/Makefile.am b/tests/zfs-tests/cmd/dir_rd_update/Makefile.am
deleted file mode 100644
index 27cc9e97e..000000000
--- a/tests/zfs-tests/cmd/dir_rd_update/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = dir_rd_update
-dir_rd_update_SOURCES = dir_rd_update.c
diff --git a/tests/zfs-tests/cmd/draid/draid.c b/tests/zfs-tests/cmd/draid.c
index 6f4ecd5ef..6f4ecd5ef 100644
--- a/tests/zfs-tests/cmd/draid/draid.c
+++ b/tests/zfs-tests/cmd/draid.c
diff --git a/tests/zfs-tests/cmd/draid/.gitignore b/tests/zfs-tests/cmd/draid/.gitignore
deleted file mode 100644
index 911b9f077..000000000
--- a/tests/zfs-tests/cmd/draid/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/draid
diff --git a/tests/zfs-tests/cmd/draid/Makefile.am b/tests/zfs-tests/cmd/draid/Makefile.am
deleted file mode 100644
index 69fed7a6b..000000000
--- a/tests/zfs-tests/cmd/draid/Makefile.am
+++ /dev/null
@@ -1,15 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-AM_CFLAGS += $(ZLIB_CFLAGS)
-
-pkgexec_PROGRAMS = draid
-
-draid_SOURCES = draid.c
-
-draid_LDADD = \
- $(abs_top_builddir)/lib/libzpool/libzpool.la \
- $(abs_top_builddir)/lib/libnvpair/libnvpair.la
-
-draid_LDADD += $(ZLIB_LIBS)
diff --git a/tests/zfs-tests/cmd/file_check/file_check.c b/tests/zfs-tests/cmd/file/file_check.c
index 3d3db753f..c93b56f45 100644
--- a/tests/zfs-tests/cmd/file_check/file_check.c
+++ b/tests/zfs-tests/cmd/file/file_check.c
@@ -24,7 +24,7 @@
* Use is subject to license terms.
*/
-#include "../file_common.h"
+#include "file_common.h"
static unsigned char bigbuffer[BIGBUFFERSIZE];
diff --git a/tests/zfs-tests/cmd/file_common.h b/tests/zfs-tests/cmd/file/file_common.h
index f0c0e32b5..f0c0e32b5 100644
--- a/tests/zfs-tests/cmd/file_common.h
+++ b/tests/zfs-tests/cmd/file/file_common.h
diff --git a/tests/zfs-tests/cmd/file_trunc/file_trunc.c b/tests/zfs-tests/cmd/file/file_trunc.c
index 69096752e..69096752e 100644
--- a/tests/zfs-tests/cmd/file_trunc/file_trunc.c
+++ b/tests/zfs-tests/cmd/file/file_trunc.c
diff --git a/tests/zfs-tests/cmd/file_write/file_write.c b/tests/zfs-tests/cmd/file/file_write.c
index 60893c34f..61101b7b0 100644
--- a/tests/zfs-tests/cmd/file_write/file_write.c
+++ b/tests/zfs-tests/cmd/file/file_write.c
@@ -24,7 +24,7 @@
* Use is subject to license terms.
*/
-#include "../file_common.h"
+#include "file_common.h"
#include <libgen.h>
#include <string.h>
#include <inttypes.h>
diff --git a/tests/zfs-tests/cmd/largest_file/largest_file.c b/tests/zfs-tests/cmd/file/largest_file.c
index 912607640..5acb5f1db 100644
--- a/tests/zfs-tests/cmd/largest_file/largest_file.c
+++ b/tests/zfs-tests/cmd/file/largest_file.c
@@ -28,7 +28,7 @@
* Copyright (c) 2012 by Delphix. All rights reserved.
*/
-#include "../file_common.h"
+#include "file_common.h"
#include <sys/param.h>
#include <signal.h>
#include <stdio.h>
diff --git a/tests/zfs-tests/cmd/randfree_file/randfree_file.c b/tests/zfs-tests/cmd/file/randfree_file.c
index c708d647e..e00780cd2 100644
--- a/tests/zfs-tests/cmd/randfree_file/randfree_file.c
+++ b/tests/zfs-tests/cmd/file/randfree_file.c
@@ -28,7 +28,7 @@
* Copyright (c) 2012 by Delphix. All rights reserved.
*/
-#include "../file_common.h"
+#include "file_common.h"
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
diff --git a/tests/zfs-tests/cmd/randwritecomp/randwritecomp.c b/tests/zfs-tests/cmd/file/randwritecomp.c
index 3cff7fd0a..cc70d1212 100644
--- a/tests/zfs-tests/cmd/randwritecomp/randwritecomp.c
+++ b/tests/zfs-tests/cmd/file/randwritecomp.c
@@ -15,7 +15,7 @@
#include <stdint.h>
#include <string.h>
-#include "../file_common.h"
+#include "file_common.h"
/*
* The following sample was derived from real-world data
diff --git a/tests/zfs-tests/cmd/file_check/.gitignore b/tests/zfs-tests/cmd/file_check/.gitignore
deleted file mode 100644
index 24fe11322..000000000
--- a/tests/zfs-tests/cmd/file_check/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/file_check
diff --git a/tests/zfs-tests/cmd/file_check/Makefile.am b/tests/zfs-tests/cmd/file_check/Makefile.am
deleted file mode 100644
index 13027ef5b..000000000
--- a/tests/zfs-tests/cmd/file_check/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = file_check
-file_check_SOURCES = file_check.c
diff --git a/tests/zfs-tests/cmd/file_trunc/.gitignore b/tests/zfs-tests/cmd/file_trunc/.gitignore
deleted file mode 100644
index 90b149ff5..000000000
--- a/tests/zfs-tests/cmd/file_trunc/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/file_trunc
diff --git a/tests/zfs-tests/cmd/file_trunc/Makefile.am b/tests/zfs-tests/cmd/file_trunc/Makefile.am
deleted file mode 100644
index 0455eb4a4..000000000
--- a/tests/zfs-tests/cmd/file_trunc/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = file_trunc
-file_trunc_SOURCES = file_trunc.c
diff --git a/tests/zfs-tests/cmd/file_write/.gitignore b/tests/zfs-tests/cmd/file_write/.gitignore
deleted file mode 100644
index 9f691d580..000000000
--- a/tests/zfs-tests/cmd/file_write/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/file_write
diff --git a/tests/zfs-tests/cmd/file_write/Makefile.am b/tests/zfs-tests/cmd/file_write/Makefile.am
deleted file mode 100644
index 60895711e..000000000
--- a/tests/zfs-tests/cmd/file_write/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = file_write
-file_write_SOURCES = file_write.c
diff --git a/tests/zfs-tests/cmd/get_diff/get_diff.c b/tests/zfs-tests/cmd/get_diff.c
index 2799f46b0..2799f46b0 100644
--- a/tests/zfs-tests/cmd/get_diff/get_diff.c
+++ b/tests/zfs-tests/cmd/get_diff.c
diff --git a/tests/zfs-tests/cmd/get_diff/.gitignore b/tests/zfs-tests/cmd/get_diff/.gitignore
deleted file mode 100644
index f5fc360a6..000000000
--- a/tests/zfs-tests/cmd/get_diff/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/get_diff
diff --git a/tests/zfs-tests/cmd/get_diff/Makefile.am b/tests/zfs-tests/cmd/get_diff/Makefile.am
deleted file mode 100644
index 06c39ddd8..000000000
--- a/tests/zfs-tests/cmd/get_diff/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = get_diff
-get_diff_SOURCES = get_diff.c
diff --git a/tests/zfs-tests/cmd/getversion/getversion.c b/tests/zfs-tests/cmd/getversion.c
index 62c1c5b6a..62c1c5b6a 100644
--- a/tests/zfs-tests/cmd/getversion/getversion.c
+++ b/tests/zfs-tests/cmd/getversion.c
diff --git a/tests/zfs-tests/cmd/getversion/.gitignore b/tests/zfs-tests/cmd/getversion/.gitignore
deleted file mode 100644
index b347c417a..000000000
--- a/tests/zfs-tests/cmd/getversion/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/getversion
diff --git a/tests/zfs-tests/cmd/getversion/Makefile.am b/tests/zfs-tests/cmd/getversion/Makefile.am
deleted file mode 100644
index d6b5e8408..000000000
--- a/tests/zfs-tests/cmd/getversion/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = getversion
-getversion_SOURCES = getversion.c
diff --git a/tests/zfs-tests/cmd/largest_file/.gitignore b/tests/zfs-tests/cmd/largest_file/.gitignore
deleted file mode 100644
index f8f480d06..000000000
--- a/tests/zfs-tests/cmd/largest_file/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/largest_file
diff --git a/tests/zfs-tests/cmd/largest_file/Makefile.am b/tests/zfs-tests/cmd/largest_file/Makefile.am
deleted file mode 100644
index a3e4e9337..000000000
--- a/tests/zfs-tests/cmd/largest_file/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = largest_file
-largest_file_SOURCES = largest_file.c
diff --git a/tests/zfs-tests/cmd/libzfs_input_check/libzfs_input_check.c b/tests/zfs-tests/cmd/libzfs_input_check.c
index bfa450be5..bfa450be5 100644
--- a/tests/zfs-tests/cmd/libzfs_input_check/libzfs_input_check.c
+++ b/tests/zfs-tests/cmd/libzfs_input_check.c
diff --git a/tests/zfs-tests/cmd/libzfs_input_check/.gitignore b/tests/zfs-tests/cmd/libzfs_input_check/.gitignore
deleted file mode 100644
index c87960084..000000000
--- a/tests/zfs-tests/cmd/libzfs_input_check/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/libzfs_input_check
diff --git a/tests/zfs-tests/cmd/libzfs_input_check/Makefile.am b/tests/zfs-tests/cmd/libzfs_input_check/Makefile.am
deleted file mode 100644
index cd4622089..000000000
--- a/tests/zfs-tests/cmd/libzfs_input_check/Makefile.am
+++ /dev/null
@@ -1,17 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = libzfs_input_check
-
-if BUILD_FREEBSD
-DEFAULT_INCLUDES += -I$(top_srcdir)/include/os/freebsd/zfs
-endif
-if BUILD_LINUX
-DEFAULT_INCLUDES += -I$(top_srcdir)/include/os/linux/zfs
-endif
-
-libzfs_input_check_SOURCES = libzfs_input_check.c
-libzfs_input_check_LDADD = \
- $(abs_top_builddir)/lib/libzfs_core/libzfs_core.la \
- $(abs_top_builddir)/lib/libnvpair/libnvpair.la
diff --git a/tests/zfs-tests/cmd/linux_dos_attributes/.gitignore b/tests/zfs-tests/cmd/linux_dos_attributes/.gitignore
deleted file mode 100644
index 14a62551d..000000000
--- a/tests/zfs-tests/cmd/linux_dos_attributes/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/read_dos_attributes
-/write_dos_attributes
diff --git a/tests/zfs-tests/cmd/linux_dos_attributes/Makefile.am b/tests/zfs-tests/cmd/linux_dos_attributes/Makefile.am
deleted file mode 100644
index 2e383e94f..000000000
--- a/tests/zfs-tests/cmd/linux_dos_attributes/Makefile.am
+++ /dev/null
@@ -1,8 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-EXTRA_DIST = dos_attributes.h
-pkgexec_PROGRAMS = read_dos_attributes write_dos_attributes
-read_dos_attributes_SOURCES = read_dos_attributes.c
-write_dos_attributes_SOURCES = write_dos_attributes.c
diff --git a/tests/zfs-tests/cmd/mkbusy/mkbusy.c b/tests/zfs-tests/cmd/mkbusy.c
index 75b5736e5..75b5736e5 100644
--- a/tests/zfs-tests/cmd/mkbusy/mkbusy.c
+++ b/tests/zfs-tests/cmd/mkbusy.c
diff --git a/tests/zfs-tests/cmd/mkbusy/.gitignore b/tests/zfs-tests/cmd/mkbusy/.gitignore
deleted file mode 100644
index 18d099c08..000000000
--- a/tests/zfs-tests/cmd/mkbusy/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/mkbusy
diff --git a/tests/zfs-tests/cmd/mkbusy/Makefile.am b/tests/zfs-tests/cmd/mkbusy/Makefile.am
deleted file mode 100644
index abae69dea..000000000
--- a/tests/zfs-tests/cmd/mkbusy/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = mkbusy
-mkbusy_SOURCES = mkbusy.c
diff --git a/tests/zfs-tests/cmd/mkfile/mkfile.c b/tests/zfs-tests/cmd/mkfile.c
index ede05a122..ede05a122 100644
--- a/tests/zfs-tests/cmd/mkfile/mkfile.c
+++ b/tests/zfs-tests/cmd/mkfile.c
diff --git a/tests/zfs-tests/cmd/mkfile/.gitignore b/tests/zfs-tests/cmd/mkfile/.gitignore
deleted file mode 100644
index 93e9a8a6d..000000000
--- a/tests/zfs-tests/cmd/mkfile/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/mkfile
diff --git a/tests/zfs-tests/cmd/mkfile/Makefile.am b/tests/zfs-tests/cmd/mkfile/Makefile.am
deleted file mode 100644
index 5f0e2e03e..000000000
--- a/tests/zfs-tests/cmd/mkfile/Makefile.am
+++ /dev/null
@@ -1,8 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = mkfile
-mkfile_SOURCES = mkfile.c
-
-mkfile_LDADD = $(LTLIBINTL)
diff --git a/tests/zfs-tests/cmd/mkfiles/mkfiles.c b/tests/zfs-tests/cmd/mkfiles.c
index 32abfd0c3..32abfd0c3 100644
--- a/tests/zfs-tests/cmd/mkfiles/mkfiles.c
+++ b/tests/zfs-tests/cmd/mkfiles.c
diff --git a/tests/zfs-tests/cmd/mkfiles/.gitignore b/tests/zfs-tests/cmd/mkfiles/.gitignore
deleted file mode 100644
index cee4858b7..000000000
--- a/tests/zfs-tests/cmd/mkfiles/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/mkfiles
diff --git a/tests/zfs-tests/cmd/mkfiles/Makefile.am b/tests/zfs-tests/cmd/mkfiles/Makefile.am
deleted file mode 100644
index 54c21597f..000000000
--- a/tests/zfs-tests/cmd/mkfiles/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = mkfiles
-mkfiles_SOURCES = mkfiles.c
diff --git a/tests/zfs-tests/cmd/mktree/mktree.c b/tests/zfs-tests/cmd/mktree.c
index 25b26c9e1..25b26c9e1 100644
--- a/tests/zfs-tests/cmd/mktree/mktree.c
+++ b/tests/zfs-tests/cmd/mktree.c
diff --git a/tests/zfs-tests/cmd/mktree/.gitignore b/tests/zfs-tests/cmd/mktree/.gitignore
deleted file mode 100644
index 588bc6d1c..000000000
--- a/tests/zfs-tests/cmd/mktree/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/mktree
diff --git a/tests/zfs-tests/cmd/mktree/Makefile.am b/tests/zfs-tests/cmd/mktree/Makefile.am
deleted file mode 100644
index 88c74ae0a..000000000
--- a/tests/zfs-tests/cmd/mktree/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = mktree
-mktree_SOURCES = mktree.c
diff --git a/tests/zfs-tests/cmd/mmap_exec/mmap_exec.c b/tests/zfs-tests/cmd/mmap_exec.c
index db90adbdc..db90adbdc 100644
--- a/tests/zfs-tests/cmd/mmap_exec/mmap_exec.c
+++ b/tests/zfs-tests/cmd/mmap_exec.c
diff --git a/tests/zfs-tests/cmd/mmap_exec/.gitignore b/tests/zfs-tests/cmd/mmap_exec/.gitignore
deleted file mode 100644
index 63a68bbc6..000000000
--- a/tests/zfs-tests/cmd/mmap_exec/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/mmap_exec
diff --git a/tests/zfs-tests/cmd/mmap_exec/Makefile.am b/tests/zfs-tests/cmd/mmap_exec/Makefile.am
deleted file mode 100644
index ab9f81be9..000000000
--- a/tests/zfs-tests/cmd/mmap_exec/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = mmap_exec
-mmap_exec_SOURCES = mmap_exec.c
diff --git a/tests/zfs-tests/cmd/mmap_libaio/mmap_libaio.c b/tests/zfs-tests/cmd/mmap_libaio.c
index a02f46d91..a02f46d91 100644
--- a/tests/zfs-tests/cmd/mmap_libaio/mmap_libaio.c
+++ b/tests/zfs-tests/cmd/mmap_libaio.c
diff --git a/tests/zfs-tests/cmd/mmap_libaio/.gitignore b/tests/zfs-tests/cmd/mmap_libaio/.gitignore
deleted file mode 100644
index 792c8d340..000000000
--- a/tests/zfs-tests/cmd/mmap_libaio/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/mmap_libaio
diff --git a/tests/zfs-tests/cmd/mmap_libaio/Makefile.am b/tests/zfs-tests/cmd/mmap_libaio/Makefile.am
deleted file mode 100644
index 25f9dda2b..000000000
--- a/tests/zfs-tests/cmd/mmap_libaio/Makefile.am
+++ /dev/null
@@ -1,10 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-if WANT_MMAP_LIBAIO
-pkgexec_PROGRAMS = mmap_libaio
-mmap_libaio_SOURCES = mmap_libaio.c
-mmap_libaio_CFLAGS = $(AM_CFLAGS) $(LIBAIO_CFLAGS)
-mmap_libaio_LDADD = $(LIBAIO_LIBS)
-endif
diff --git a/tests/zfs-tests/cmd/mmap_seek/mmap_seek.c b/tests/zfs-tests/cmd/mmap_seek.c
index bb36527aa..bb36527aa 100644
--- a/tests/zfs-tests/cmd/mmap_seek/mmap_seek.c
+++ b/tests/zfs-tests/cmd/mmap_seek.c
diff --git a/tests/zfs-tests/cmd/mmap_seek/.gitignore b/tests/zfs-tests/cmd/mmap_seek/.gitignore
deleted file mode 100644
index 6b05a7917..000000000
--- a/tests/zfs-tests/cmd/mmap_seek/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/mmap_seek
diff --git a/tests/zfs-tests/cmd/mmap_seek/Makefile.am b/tests/zfs-tests/cmd/mmap_seek/Makefile.am
deleted file mode 100644
index b93893112..000000000
--- a/tests/zfs-tests/cmd/mmap_seek/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = mmap_seek
-mmap_seek_SOURCES = mmap_seek.c
diff --git a/tests/zfs-tests/cmd/mmapwrite/mmapwrite.c b/tests/zfs-tests/cmd/mmapwrite.c
index 1f344534d..1f344534d 100644
--- a/tests/zfs-tests/cmd/mmapwrite/mmapwrite.c
+++ b/tests/zfs-tests/cmd/mmapwrite.c
diff --git a/tests/zfs-tests/cmd/mmapwrite/.gitignore b/tests/zfs-tests/cmd/mmapwrite/.gitignore
deleted file mode 100644
index 4e7043bbf..000000000
--- a/tests/zfs-tests/cmd/mmapwrite/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/mmapwrite
diff --git a/tests/zfs-tests/cmd/mmapwrite/Makefile.am b/tests/zfs-tests/cmd/mmapwrite/Makefile.am
deleted file mode 100644
index b21b9e779..000000000
--- a/tests/zfs-tests/cmd/mmapwrite/Makefile.am
+++ /dev/null
@@ -1,7 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = mmapwrite
-mmapwrite_SOURCES = mmapwrite.c
-mmapwrite_LDADD = -lpthread
diff --git a/tests/zfs-tests/cmd/nvlist_to_lua/nvlist_to_lua.c b/tests/zfs-tests/cmd/nvlist_to_lua.c
index 4d2abfeb1..4d2abfeb1 100644
--- a/tests/zfs-tests/cmd/nvlist_to_lua/nvlist_to_lua.c
+++ b/tests/zfs-tests/cmd/nvlist_to_lua.c
diff --git a/tests/zfs-tests/cmd/nvlist_to_lua/.gitignore b/tests/zfs-tests/cmd/nvlist_to_lua/.gitignore
deleted file mode 100644
index b31db6454..000000000
--- a/tests/zfs-tests/cmd/nvlist_to_lua/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/nvlist_to_lua
diff --git a/tests/zfs-tests/cmd/nvlist_to_lua/Makefile.am b/tests/zfs-tests/cmd/nvlist_to_lua/Makefile.am
deleted file mode 100644
index 511b6c691..000000000
--- a/tests/zfs-tests/cmd/nvlist_to_lua/Makefile.am
+++ /dev/null
@@ -1,10 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = nvlist_to_lua
-
-nvlist_to_lua_SOURCES = nvlist_to_lua.c
-nvlist_to_lua_LDADD = \
- $(abs_top_builddir)/lib/libzfs_core/libzfs_core.la \
- $(abs_top_builddir)/lib/libnvpair/libnvpair.la
diff --git a/tests/zfs-tests/cmd/randfree_file/.gitignore b/tests/zfs-tests/cmd/randfree_file/.gitignore
deleted file mode 100644
index 0f5b394c5..000000000
--- a/tests/zfs-tests/cmd/randfree_file/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/randfree_file
diff --git a/tests/zfs-tests/cmd/randfree_file/Makefile.am b/tests/zfs-tests/cmd/randfree_file/Makefile.am
deleted file mode 100644
index 6306e0e75..000000000
--- a/tests/zfs-tests/cmd/randfree_file/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = randfree_file
-randfree_file_SOURCES = randfree_file.c
diff --git a/tests/zfs-tests/cmd/randwritecomp/.gitignore b/tests/zfs-tests/cmd/randwritecomp/.gitignore
deleted file mode 100644
index fb231c678..000000000
--- a/tests/zfs-tests/cmd/randwritecomp/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/randwritecomp
diff --git a/tests/zfs-tests/cmd/randwritecomp/Makefile.am b/tests/zfs-tests/cmd/randwritecomp/Makefile.am
deleted file mode 100644
index 0002291fa..000000000
--- a/tests/zfs-tests/cmd/randwritecomp/Makefile.am
+++ /dev/null
@@ -1,9 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-DEFAULT_INCLUDES += \
- -I$(top_srcdir)/include
-
-pkgexec_PROGRAMS = randwritecomp
-randwritecomp_SOURCES = randwritecomp.c
diff --git a/tests/zfs-tests/cmd/readmmap/readmmap.c b/tests/zfs-tests/cmd/readmmap.c
index e21c2c867..e21c2c867 100644
--- a/tests/zfs-tests/cmd/readmmap/readmmap.c
+++ b/tests/zfs-tests/cmd/readmmap.c
diff --git a/tests/zfs-tests/cmd/readmmap/.gitignore b/tests/zfs-tests/cmd/readmmap/.gitignore
deleted file mode 100644
index 3799193a9..000000000
--- a/tests/zfs-tests/cmd/readmmap/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/readmmap
diff --git a/tests/zfs-tests/cmd/readmmap/Makefile.am b/tests/zfs-tests/cmd/readmmap/Makefile.am
deleted file mode 100644
index 9b735c287..000000000
--- a/tests/zfs-tests/cmd/readmmap/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = readmmap
-readmmap_SOURCES = readmmap.c
diff --git a/tests/zfs-tests/cmd/rename_dir/rename_dir.c b/tests/zfs-tests/cmd/rename_dir.c
index 3c3f45146..3c3f45146 100644
--- a/tests/zfs-tests/cmd/rename_dir/rename_dir.c
+++ b/tests/zfs-tests/cmd/rename_dir.c
diff --git a/tests/zfs-tests/cmd/rename_dir/.gitignore b/tests/zfs-tests/cmd/rename_dir/.gitignore
deleted file mode 100644
index 39a0cb222..000000000
--- a/tests/zfs-tests/cmd/rename_dir/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/rename_dir
diff --git a/tests/zfs-tests/cmd/rename_dir/Makefile.am b/tests/zfs-tests/cmd/rename_dir/Makefile.am
deleted file mode 100644
index 21971cd88..000000000
--- a/tests/zfs-tests/cmd/rename_dir/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = rename_dir
-rename_dir_SOURCES = rename_dir.c
diff --git a/tests/zfs-tests/cmd/rm_lnkcnt_zero_file/rm_lnkcnt_zero_file.c b/tests/zfs-tests/cmd/rm_lnkcnt_zero_file.c
index 9aeabb08e..9aeabb08e 100644
--- a/tests/zfs-tests/cmd/rm_lnkcnt_zero_file/rm_lnkcnt_zero_file.c
+++ b/tests/zfs-tests/cmd/rm_lnkcnt_zero_file.c
diff --git a/tests/zfs-tests/cmd/rm_lnkcnt_zero_file/.gitignore b/tests/zfs-tests/cmd/rm_lnkcnt_zero_file/.gitignore
deleted file mode 100644
index fc6323fb3..000000000
--- a/tests/zfs-tests/cmd/rm_lnkcnt_zero_file/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/rm_lnkcnt_zero_file
diff --git a/tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile.am b/tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile.am
deleted file mode 100644
index 90fc8d054..000000000
--- a/tests/zfs-tests/cmd/rm_lnkcnt_zero_file/Makefile.am
+++ /dev/null
@@ -1,7 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = rm_lnkcnt_zero_file
-rm_lnkcnt_zero_file_SOURCES = rm_lnkcnt_zero_file.c
-rm_lnkcnt_zero_file_LDADD = -lpthread
diff --git a/tests/zfs-tests/cmd/send_doall/send_doall.c b/tests/zfs-tests/cmd/send_doall.c
index 6f47df047..6f47df047 100644
--- a/tests/zfs-tests/cmd/send_doall/send_doall.c
+++ b/tests/zfs-tests/cmd/send_doall.c
diff --git a/tests/zfs-tests/cmd/send_doall/.gitignore b/tests/zfs-tests/cmd/send_doall/.gitignore
deleted file mode 100644
index 6ba2e603f..000000000
--- a/tests/zfs-tests/cmd/send_doall/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/send_doall
diff --git a/tests/zfs-tests/cmd/send_doall/Makefile.am b/tests/zfs-tests/cmd/send_doall/Makefile.am
deleted file mode 100644
index 33a6b8312..000000000
--- a/tests/zfs-tests/cmd/send_doall/Makefile.am
+++ /dev/null
@@ -1,11 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = send_doall
-
-send_doall_SOURCES = send_doall.c
-send_doall_LDADD = \
- $(abs_top_builddir)/lib/libzfs_core/libzfs_core.la \
- $(abs_top_builddir)/lib/libzfs/libzfs.la \
- $(abs_top_builddir)/lib/libnvpair/libnvpair.la
diff --git a/tests/zfs-tests/cmd/stride_dd/stride_dd.c b/tests/zfs-tests/cmd/stride_dd.c
index 88bd53292..88bd53292 100644
--- a/tests/zfs-tests/cmd/stride_dd/stride_dd.c
+++ b/tests/zfs-tests/cmd/stride_dd.c
diff --git a/tests/zfs-tests/cmd/stride_dd/.gitignore b/tests/zfs-tests/cmd/stride_dd/.gitignore
deleted file mode 100644
index 7c072ee0d..000000000
--- a/tests/zfs-tests/cmd/stride_dd/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/stride_dd
diff --git a/tests/zfs-tests/cmd/stride_dd/Makefile.am b/tests/zfs-tests/cmd/stride_dd/Makefile.am
deleted file mode 100644
index d6f1adbac..000000000
--- a/tests/zfs-tests/cmd/stride_dd/Makefile.am
+++ /dev/null
@@ -1,7 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = stride_dd
-stride_dd_SOURCES = stride_dd.c
-stride_dd_LDADD = -lrt
diff --git a/tests/zfs-tests/cmd/threadsappend/threadsappend.c b/tests/zfs-tests/cmd/threadsappend.c
index 25710a3c1..25710a3c1 100644
--- a/tests/zfs-tests/cmd/threadsappend/threadsappend.c
+++ b/tests/zfs-tests/cmd/threadsappend.c
diff --git a/tests/zfs-tests/cmd/threadsappend/.gitignore b/tests/zfs-tests/cmd/threadsappend/.gitignore
deleted file mode 100644
index 4c8c8cdf3..000000000
--- a/tests/zfs-tests/cmd/threadsappend/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/threadsappend
diff --git a/tests/zfs-tests/cmd/threadsappend/Makefile.am b/tests/zfs-tests/cmd/threadsappend/Makefile.am
deleted file mode 100644
index f030b42d5..000000000
--- a/tests/zfs-tests/cmd/threadsappend/Makefile.am
+++ /dev/null
@@ -1,7 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = threadsappend
-threadsappend_SOURCES = threadsappend.c
-threadsappend_LDADD = -lpthread
diff --git a/tests/zfs-tests/cmd/user_ns_exec/user_ns_exec.c b/tests/zfs-tests/cmd/user_ns_exec.c
index cd46738bd..cd46738bd 100644
--- a/tests/zfs-tests/cmd/user_ns_exec/user_ns_exec.c
+++ b/tests/zfs-tests/cmd/user_ns_exec.c
diff --git a/tests/zfs-tests/cmd/user_ns_exec/.gitignore b/tests/zfs-tests/cmd/user_ns_exec/.gitignore
deleted file mode 100644
index 655867a64..000000000
--- a/tests/zfs-tests/cmd/user_ns_exec/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/user_ns_exec
diff --git a/tests/zfs-tests/cmd/user_ns_exec/Makefile.am b/tests/zfs-tests/cmd/user_ns_exec/Makefile.am
deleted file mode 100644
index 5b4bc9aaa..000000000
--- a/tests/zfs-tests/cmd/user_ns_exec/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = user_ns_exec
-user_ns_exec_SOURCES = user_ns_exec.c
diff --git a/tests/zfs-tests/cmd/xattrtest/xattrtest.c b/tests/zfs-tests/cmd/xattrtest.c
index 49b6629ba..49b6629ba 100644
--- a/tests/zfs-tests/cmd/xattrtest/xattrtest.c
+++ b/tests/zfs-tests/cmd/xattrtest.c
diff --git a/tests/zfs-tests/cmd/xattrtest/.gitignore b/tests/zfs-tests/cmd/xattrtest/.gitignore
deleted file mode 100644
index 7d2128383..000000000
--- a/tests/zfs-tests/cmd/xattrtest/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/xattrtest
diff --git a/tests/zfs-tests/cmd/xattrtest/Makefile.am b/tests/zfs-tests/cmd/xattrtest/Makefile.am
deleted file mode 100644
index 7398ae634..000000000
--- a/tests/zfs-tests/cmd/xattrtest/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-include $(top_srcdir)/config/Rules.am
-
-pkgexecdir = $(datadir)/@PACKAGE@/zfs-tests/bin
-
-pkgexec_PROGRAMS = xattrtest
-xattrtest_SOURCES = xattrtest.c