fome-fw/unit_tests/run_sharded_tests.sh

17 lines
366 B
Bash
Raw Normal View History

#!/bin/bash
2023-04-11 16:26:15 -07:00
# This script runs every test in its own process (own invocation of fome_test executable)
# This allows us to test for accidental cross-test leakage that fixes/breaks something
set -euo pipefail
export GTEST_TOTAL_SHARDS=600
for IDX in {0..599}
do
export GTEST_SHARD_INDEX=$IDX
2023-04-11 16:26:15 -07:00
build/fome_test
done
unset GTEST_TOTAL_SHARDS
unset GTEST_SHARD_INDEX