summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authormanu <manu>2011-05-03 12:32:40 +0000
committermanu <manu>2011-05-03 12:32:40 +0000
commitac700f78f57f0d5776c7bb8b3435bae63798c0dd (patch)
treec6a9eca0c5498784c5a41cd35250424ef8cc0cc9 /devel
parent0f3eda39e7418ce5b57a3c4a128eadc40e2d5095 (diff)
downloadpkgsrc-ac700f78f57f0d5776c7bb8b3435bae63798c0dd.tar.gz
POSIX locks stress-test
Diffstat (limited to 'devel')
-rw-r--r--devel/locktests/DESCR9
-rw-r--r--devel/locktests/MESSAGE17
-rw-r--r--devel/locktests/Makefile23
-rw-r--r--devel/locktests/PLIST2
-rw-r--r--devel/locktests/distinfo5
5 files changed, 56 insertions, 0 deletions
diff --git a/devel/locktests/DESCR b/devel/locktests/DESCR
new file mode 100644
index 00000000000..dbe9d1e84e7
--- /dev/null
+++ b/devel/locktests/DESCR
@@ -0,0 +1,9 @@
+This test is aimed at stressing the fcntl locking functions.
+
+A master process sets a lock on a file region (byte range locking).
+Several slave processes try to perform operations on this region,
+such as: read, write, set a new lock ... The expected results of
+these operations are known. If the operation's result is the same
+as the expected one, the test succeeds, otherwise it fails.
+
+Locktests stress POSIX locks.
diff --git a/devel/locktests/MESSAGE b/devel/locktests/MESSAGE
new file mode 100644
index 00000000000..74f95055d71
--- /dev/null
+++ b/devel/locktests/MESSAGE
@@ -0,0 +1,17 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2011/05/03 12:32:40 manu Exp $
+
+See http://nfsv4.bullopensource.org/tools/tests/locktest.php for usage.
+
+For local filesystems:
+
+locktests -n <number of concurent process> -f <test file>
+
+-n <num> :
+ Number of processes to use (mandatory)
+-f <file> :
+ Run the test on a test file defined by the -f option (mandatory)
+
+Example : locktests -n 50 -f /file/system/to/test
+
+===========================================================================
diff --git a/devel/locktests/Makefile b/devel/locktests/Makefile
new file mode 100644
index 00000000000..ae4f81dbe55
--- /dev/null
+++ b/devel/locktests/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/05/03 12:32:40 manu Exp $
+#
+
+DISTNAME= locktests
+PKGNAME= ${DISTNAME}-20110428
+CATEGORIES= devel filesystems
+MASTER_SITES= http://nfsv4.bullopensource.org/tools/tests_tools/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://nfsv4.bullopensource.org/tools/tests_tools/
+COMMENT= POSIX locks stress-test
+LICENSE= gnu-gpl-v3 # According to web site
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+WRKSRC= ${WRKDIR}/locks
+BUILD_TARGET= All
+
+do-install:
+ ${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/locktests ${DESTDIR}${PREFIX}/bin/locktests
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/locktests/PLIST b/devel/locktests/PLIST
new file mode 100644
index 00000000000..a74810ee38c
--- /dev/null
+++ b/devel/locktests/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2011/05/03 12:32:40 manu Exp $
+bin/locktests
diff --git a/devel/locktests/distinfo b/devel/locktests/distinfo
new file mode 100644
index 00000000000..d416b0e7ed9
--- /dev/null
+++ b/devel/locktests/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2011/05/03 12:32:40 manu Exp $
+
+SHA1 (locktests.tar.gz) = cd37b73b38e1fa626871ca8c45487648885b8d9f
+RMD160 (locktests.tar.gz) = bc6121d3ae1c94b888fc825d8a5c99fc2e3f8e41
+Size (locktests.tar.gz) = 12354 bytes