test-lib-main.sh: split initialization into generic and specific
commitd406831edec4f890a692257ec7d337cf9221da02
authorKyle J. McKay <mackyle@gmail.com>
Fri, 16 Dec 2016 10:38:54 +0000 (16 02:38 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 16 Dec 2016 10:38:54 +0000 (16 02:38 -0800)
treef9d0fd9208aec944ef2a51c114a5ad3fda7d0d8a
parenta1c65da4f22313dfcf2c7698a58f1136cf8bc78a
test-lib-main.sh: split initialization into generic and specific

Turn test_lib_main_init into a stub that simply calls first
test_lib_main_init_generic and then test_lib_main_init_specific.

The idea is that anything in test_lib_main_init_generic should NOT be
specific to any particular test when a suite of tests is being run.

For example, parsing the option "--verbose" and setting verbose=t
is the same for all the tests in that one test run.

However, creating the trash directory named after the test and
setting up a tee if requested and redirecting output is test
specific.

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