From 317cb21280d7f47103d149d79c1a147aabfae1ed Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Sun, 3 Sep 2023 22:34:03 +0200 Subject: Build scripts --- build_and_test.sh | 8 ++++---- source/kit_test/bench.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build_and_test.sh b/build_and_test.sh index 88f155b..95efbe7 100644 --- a/build_and_test.sh +++ b/build_and_test.sh @@ -16,28 +16,28 @@ g++ -o "build/test_signals" "source/tests/test_signals.cpp" -Lbuild -lkit -lkit_ ./build/kit_test_suite -./build/test_too_many_assertions >/dev/null +./build/test_too_many_assertions --quiet if [ $? -eq 0 ]; then echo "too many assertions - OK" else echo "too many assertions - FAIL" fi -./build/test_too_many_tests >/dev/null +./build/test_too_many_tests --quiet if [ $? -eq 0 ]; then echo "too many tests - OK" else echo "too many tests - FAIL" fi -./build/test_cpp >/dev/null +./build/test_cpp --quiet if [ $? -eq 0 ]; then echo "cpp - OK" else echo "cpp - FAIL" fi -./build/test_signals 2>&1 >/dev/null +./build/test_signals --quiet if [ $? -eq 0 ]; then echo "signals - OK" else diff --git a/source/kit_test/bench.c b/source/kit_test/bench.c index dcf7249..cdd69d9 100644 --- a/source/kit_test/bench.c +++ b/source/kit_test/bench.c @@ -198,9 +198,9 @@ int kit_run_benchmarks(int argc, char **argv) { no_color || print_color(light); printf("|"); no_color || print_color(yellow); - printf(" HIGH "); + printf(" HIGH\n"); no_color || print_color(light); - printf(" in microseconds\n\n"); + printf(" (in microseconds)\n\n"); /* Prepare cycles. */ -- cgit v1.2.3