#!/usr/bin/env bash mkdir cmake-build-release-thread-sunitizer cd cmake-build-release cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DTHREAD_SANITIZER=ON make # run the actual tests with sanitizer enabled, reporting the result TSAN_OPTIONS="log_path=sanitizer.log exitcode=1" ./bin/tests