1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-29 08:08:37 +00:00
freebsd/contrib/pjdfstest
Enji Cooper 45dc13f1ea Better handle filesystems mounted with -o noexec
ftruncate/11, open/20, and truncate/11 copy sleep(1) to a temporary file on the
target filesystem, execute the binary, then expect a result. This doesn't work
with scenarios where the target binary cannot be executed, e.g. the filesystem
was mounted with -o noexec.

Ensure the filesystem hasn't been mounted with -o noexec for the testcases
before executing them.

Differential Revision: https://reviews.freebsd.org/D5622
MFC after: 1 week
Reviewed by: markj
Sponsored by: EMC / Isilon Storage Division
2016-03-12 19:41:38 +00:00
..
tests Better handle filesystems mounted with -o noexec 2016-03-12 19:41:38 +00:00
FREEBSD-upgrade
LICENSE
Makefile
pjdfstest.c
README

$FreeBSD: head/tools/regression/pjdfstest/README 211354 2010-08-15 21:29:03Z pjd $

Few notes on how to use pjdfstest in short steps:

	# cd pjdfstest
	# vi tests/conf
	Change 'fs' to file system type you want to test (UFS or ZFS).
	# vi Makefile
	You need to manually tweak few things by editing CFLAGS lines
	at the top of the file.
	# make
	It will compile pjdfstest utility which is used by regression tests.
	# cd /path/to/file/system/you/want/to/test/
	# prove -r /path/to/pjdfstest/tests

That's all. Enjoy.

Currently supported operating systems: FreeBSD, Solaris.
Currently supported file system types: UFS, ZFS.

-- 
Pawel Jakub Dawidek <pawel@dawidek.net>