From 4605283d0ae4111cedb78c34b967d8274647c004 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 28 Mar 2025 17:18:21 +0200 Subject: Remove test binaries only if execution was successful --- src/build_tree/ak_settings_build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/build_tree/ak_settings_build.sh') diff --git a/src/build_tree/ak_settings_build.sh b/src/build_tree/ak_settings_build.sh index 5edcd19..99689e3 100755 --- a/src/build_tree/ak_settings_build.sh +++ b/src/build_tree/ak_settings_build.sh @@ -1,2 +1,7 @@ -echo "Building lib/aksettings.so" && gcc -c -shared -Wextra -Wall -Werror -pedantic -ggdb -fPIC -I./include aksettings.c -o lib/aksettings.so && echo "Building tests/test_aksettings" && gcc -Wextra -Wall -Werror -pedantic -ggdb -Wl,-rpath=lib -I./include tests/test_aksettings.c lib/aksettings.so -o tests/test_aksettings && echo "Running test_aksettings" && time ./tests/test_aksettings +echo "Building lib/aksettings.so" && \ +gcc -c -shared -Wextra -Wall -Werror -pedantic -ggdb -fPIC -I./include aksettings.c -o lib/aksettings.so && \ +echo "Building tests/test_aksettings" && \ +gcc -Wextra -Wall -Werror -pedantic -ggdb -Wl,-rpath=lib -I./include tests/test_aksettings.c lib/aksettings.so -o tests/test_aksettings && \ +echo "Running test_aksettings" && \ +time ./tests/test_aksettings && \ rm ./tests/test_aksettings -- cgit v1.2.3