testlib: cache generic test setup for multiple test runs
commit66811b33aafcd9a948862b98b92b6af16fdc3778
authorKyle J. McKay <mackyle@gmail.com>
Fri, 16 Dec 2016 13:39:54 +0000 (16 05:39 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 16 Dec 2016 13:39:54 +0000 (16 05:39 -0800)
tree97d5285fbcf11c3432280dd63ba1c6f3a0de4c12
parenta7ad16fa93fb8cf67708e1f97c8f3d16f8bdd71b
testlib: cache generic test setup for multiple test runs

Redoing exactly the same tests and setup for every test in a
multi-test run is wasteful and slow.

Instead cache the results of the setup and re-use them.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
t/.gitignore
t/Makefile
t/test-lib-main.sh
t/test-lib.sh