Convert sbin/mdconfig/tests from prove format tests to ATF format tests
authorngie <ngie@FreeBSD.org>
Thu, 27 Nov 2014 06:04:00 +0000 (06:04 +0000)
committerngie <ngie@FreeBSD.org>
Thu, 27 Nov 2014 06:04:00 +0000 (06:04 +0000)
commit244d05e746bcbbd4e343d51a2ffa1d20cc7caf37
tree61b165d0e844bc944e617733ca455ae890b2162c
parent364f8a339bde9395cb0b747ec272f36cb97cfd0a
Convert sbin/mdconfig/tests from prove format tests to ATF format tests

As a side effect...
1. The tests now checks for the root user before continuing with kyua, which is
   more visible than the test being skipped with the TAP protocol
2. The tests work with devices that aren't /dev/md0 by caching the device
   attached during the test to a file, and later use the cached information to
   detach the device in the cleanup routine
3. The tests no longer require perl to run

MFC after: 1 week
PR: 191191
Sponsored by: EMC / Isilon Storage Division
ObsoleteFiles.inc
sbin/mdconfig/tests/Makefile
sbin/mdconfig/tests/legacy_test.sh [deleted file]
sbin/mdconfig/tests/mdconfig.test [deleted file]
sbin/mdconfig/tests/mdconfig_test.sh [new file with mode: 0755]
sbin/mdconfig/tests/run.pl [deleted file]