@@ -42,6 +42,7 @@ git checkout "$VCPKG_VERSION"
4242./bootstrap-vcpkg.sh -disableMetrics
4343
4444cd " $WORKSPACE_DIR "
45+
4546# This runs all the unit tests
4647mapfile -t args < <( bazel::common_args)
4748mapfile -t unit_tests_args < <( unit_tests::bazel_args)
@@ -55,8 +56,9 @@ mapfile -t cmake_args < <(cmake::common_args)
5556BUILD_DIR=" /opt/odbc-driver"
5657# This is the name of DSN set in odbc.ini
5758export ODBC_TESTS_DSN=" SampleDSNGoogleDriver"
58- export ASAN_OPTIONS=" detect_container_overflow=0:detect_leaks=1"
59- export LSAN_OPTIONS=" use_tls=0:suppressions=/opt/odbc-driver/lsan.supp:print_suppressions=0"
59+ export LSAN_OPTIONS=" use_tls=0:suppressions=/opt/odbc-driver/lsan.supp:print_suppressions=0:fast_unwind_on_malloc=0"
60+ ASAN_SYMBOLIZER_PATH=" $( command -v llvm-symbolizer) "
61+ export ASAN_SYMBOLIZER_PATH
6062
6163export CPP_BIGQUERY_ODBC_TEST_TABLE_PREFIX=${TRIGGER_NAME// [-:;.,?]/ _} _${BRANCH_NAME// [-:;.,?]/ _}
6264
7678io::run cmake -B " $BUILD_DIR " \
7779 " ${cmake_args[@]} " \
7880 -DCMAKE_TOOLCHAIN_FILE=" ${VCPKG_ROOT} /scripts/buildsystems/vcpkg.cmake" \
81+ -DVCPKG_OVERLAY_TRIPLETS=" ${WORKSPACE_DIR} /ci/cloudbuild/triplets" \
82+ -DVCPKG_TARGET_TRIPLET=x64-linux-asan \
7983 -DCMAKE_CXX_STANDARD=17 \
8084 -DODBC_INTEGRATION_TESTING=ON \
8185 -DBQ_DRIVER_INTEGRATION_TESTS=ON \
@@ -87,6 +91,6 @@ io::run cmake -B "$BUILD_DIR" \
8791io::run cmake --build cmake-out
8892
8993# Copy the roots.pem file to the .so directory to run test cases.
90- cp /opt/odbc-driver/roots.pem " cmake-out/google/cloud/odbc/roots.pem"
94+ io::run cp /opt/odbc-driver/roots.pem " cmake-out/google/cloud/odbc/roots.pem"
9195mapfile -t ctest_args < <( ctest::common_args)
9296io::run env -C cmake-out ctest " ${ctest_args[@]} "
0 commit comments