review functional tests
add functional test for bear
add functional test for scan-build
copy compilation database to report directory