From ac700f78f57f0d5776c7bb8b3435bae63798c0dd Mon Sep 17 00:00:00 2001 From: manu Date: Tue, 3 May 2011 12:32:40 +0000 Subject: POSIX locks stress-test --- devel/locktests/DESCR | 9 +++++++++ devel/locktests/MESSAGE | 17 +++++++++++++++++ devel/locktests/Makefile | 23 +++++++++++++++++++++++ devel/locktests/PLIST | 2 ++ devel/locktests/distinfo | 5 +++++ 5 files changed, 56 insertions(+) create mode 100644 devel/locktests/DESCR create mode 100644 devel/locktests/MESSAGE create mode 100644 devel/locktests/Makefile create mode 100644 devel/locktests/PLIST create mode 100644 devel/locktests/distinfo (limited to 'devel') 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 -f + +-n : + Number of processes to use (mandatory) +-f : + 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 -- cgit v1.2.3