Stop using /bin/ as a source in zconfig.sh
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 28 Jan 2013 21:39:40 +0000 (13:39 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 28 Jan 2013 22:51:26 +0000 (14:51 -0800)
commit930b6fec210d828cb3755f8756dbbbf3001cccae
treebbbc7b6f4ee26f155f777057d1ced53ca5de613f
parent14ee71efbc28086406bb255f2292b9535d845625
Stop using /bin/ as a source in zconfig.sh

Test 5, 6, 7, and 7 in zconfig.sh use /bin/ as a source of random
directories and files for their test.  This has lead to unexpected
tests failures because the total size of /bin/ on the test system
isn't checked and it is entirely possible for it to be larger than
the target filesystem.

To resolve this issue we create a somewhat random collection of
files and directories in /var/tmp to use.  On average we expect
about 5MB of data with the worst case being 20MB.  This is large
enough to be interesting and small enough to always fit in the
default test datasets.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1113
scripts/common.sh.in
scripts/zconfig.sh