summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmd/ztest/Makefile.am3
-rw-r--r--configure.ac2
-rw-r--r--scripts/Makefile.am3
-rwxr-xr-xscripts/check.sh17
4 files changed, 6 insertions, 19 deletions
diff --git a/cmd/ztest/Makefile.am b/cmd/ztest/Makefile.am
index c1dae8f59..216089ef1 100644
--- a/cmd/ztest/Makefile.am
+++ b/cmd/ztest/Makefile.am
@@ -28,3 +28,6 @@ ztest_LDADD = \
$(top_builddir)/lib/libzfs/libzfs.la
ztest_LDFLAGS = -pthread -lm -lz -lrt -ldl
+
+check:
+ ./ztest -V
diff --git a/configure.ac b/configure.ac
index 7bcebd832..7bc0166ed 100644
--- a/configure.ac
+++ b/configure.ac
@@ -60,7 +60,6 @@ AC_CONFIG_FILES([
Makefile
config/Makefile
doc/Makefile
- scripts/Makefile
lib/Makefile
lib/libavl/Makefile
lib/libnvpair/Makefile
@@ -91,5 +90,6 @@ AC_CONFIG_FILES([
module/zcommon/include/sys/fm/Makefile
module/zcommon/include/sys/fm/fs/Makefile
module/zfs/Makefile
+ scripts/Makefile
])
AC_OUTPUT
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index 4a58a484f..3448046f5 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -1,4 +1,5 @@
EXTRA_DIST = update-zfs.sh check.sh zfs.sh create-zpool.sh
check:
- ./check.sh
+ ./zfs.sh -v
+ ./zfs.sh -vu
diff --git a/scripts/check.sh b/scripts/check.sh
deleted file mode 100755
index e4b0e8e06..000000000
--- a/scripts/check.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-prog=check.sh
-
-die() {
- echo "${prog}: $1" >&2
- exit 1
-}
-
-if [ $(id -u) != 0 ]; then
- die "Must run as root"
-fi
-
-./zfs.sh -v || die ""
-./zfs.sh -vu || die ""
-
-exit 0