mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 11:02:08 +00:00
Add building stage to the fasttests report
This commit is contained in:
parent
21dddf8c4c
commit
c80d8081d2
@ -194,7 +194,12 @@ function build
|
|||||||
{
|
{
|
||||||
(
|
(
|
||||||
cd "$FASTTEST_BUILD"
|
cd "$FASTTEST_BUILD"
|
||||||
time ninja clickhouse-bundle 2>&1 | ts '%Y-%m-%d %H:%M:%S' | tee "$FASTTEST_OUTPUT/build_log.txt"
|
TIMEFORMAT=$'\nreal\t%3R\nuser\t%3U\nsys\t%3S'
|
||||||
|
( time ninja clickhouse-bundle) |& ts '%Y-%m-%d %H:%M:%S' | tee "$FASTTEST_OUTPUT/build_log.txt"
|
||||||
|
BUILD_SECONDS_ELAPSED=$(awk '/^....-..-.. ..:..:.. real\t[0-9]/ {print $4}' < "$FASTTEST_OUTPUT/build_log.txt")
|
||||||
|
echo "build_clickhouse_fasttest_binary: [ OK ] $BUILD_SECONDS_ELAPSED sec." \
|
||||||
|
| ts '%Y-%m-%d %H:%M:%S' \
|
||||||
|
| tee "$FASTTEST_OUTPUT/test_result.txt"
|
||||||
if [ "$COPY_CLICKHOUSE_BINARY_TO_OUTPUT" -eq "1" ]; then
|
if [ "$COPY_CLICKHOUSE_BINARY_TO_OUTPUT" -eq "1" ]; then
|
||||||
cp programs/clickhouse "$FASTTEST_OUTPUT/clickhouse"
|
cp programs/clickhouse "$FASTTEST_OUTPUT/clickhouse"
|
||||||
|
|
||||||
@ -251,7 +256,7 @@ function run_tests
|
|||||||
)
|
)
|
||||||
time clickhouse-test "${test_opts[@]}" -- "$FASTTEST_FOCUS" 2>&1 \
|
time clickhouse-test "${test_opts[@]}" -- "$FASTTEST_FOCUS" 2>&1 \
|
||||||
| ts '%Y-%m-%d %H:%M:%S' \
|
| ts '%Y-%m-%d %H:%M:%S' \
|
||||||
| tee "$FASTTEST_OUTPUT/test_result.txt"
|
| tee -a "$FASTTEST_OUTPUT/test_result.txt"
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
clickhouse stop --pid-path "$FASTTEST_DATA"
|
clickhouse stop --pid-path "$FASTTEST_DATA"
|
||||||
|
Loading…
Reference in New Issue
Block a user