Author: Alex Behm <email@example.com>
Date: Thu Sep 8 17:07:20 2016 -0700
IMPALA-4091: Fix backend unit to log in logs/be_tests.
1. Many backend unit tests did not follow proper initialization
using InitCommonRuntime(), and as a result did not write their
logs into the logs/be_tests directory.
2. Added an IMPALA_TEST_MAIN() macro that stamps out the common
main() function used in most gtest unit tests.
3. Tests added via ADD_UDF_TEST in a CMakeLists.txt did not
have the logging dir set up properly.
Testing: I validated that every test produces a corresponding
.INFO file in logs/be_tests. The only exception is promise-test
for which I added a TODO since the fix seems non-trivial.
Reviewed-by: Alex Behm <firstname.lastname@example.org>
Tested-by: Internal Jenkins