diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2025-03-28 17:18:21 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2025-03-28 17:18:21 +0200 |
commit | 4605283d0ae4111cedb78c34b967d8274647c004 (patch) | |
tree | 265f3837fcce18411cb39041a0fdded42dd261d4 /src/build_tree/ak_logcatter_build.sh | |
parent | 24142c94ca1fe2c350172e529d0ac9b4001e9307 (diff) | |
download | arching-kaos-tools-4605283d0ae4111cedb78c34b967d8274647c004.tar.gz arching-kaos-tools-4605283d0ae4111cedb78c34b967d8274647c004.tar.bz2 arching-kaos-tools-4605283d0ae4111cedb78c34b967d8274647c004.zip |
Remove test binaries only if execution was successful
Diffstat (limited to 'src/build_tree/ak_logcatter_build.sh')
-rwxr-xr-x | src/build_tree/ak_logcatter_build.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/build_tree/ak_logcatter_build.sh b/src/build_tree/ak_logcatter_build.sh index 91a1805..5038073 100755 --- a/src/build_tree/ak_logcatter_build.sh +++ b/src/build_tree/ak_logcatter_build.sh @@ -1,2 +1,7 @@ -echo "Building lib/aklogcatter.so" && gcc -c -shared -Wextra -Wall -Werror -pedantic -ggdb -fPIC -I./include aklogcatter.c -o lib/aklogcatter.so && echo "Building tests/test_aklogcatter" && gcc -Wextra -Wall -Werror -pedantic -ggdb -Wl,-rpath=lib -I./include tests/test_aklogcatter.c lib/aklog.so lib/aklogcatter.so -o tests/test_aklogcatter && echo "Running test_aklogcatter" && time ./tests/test_aklogcatter +echo "Building lib/aklogcatter.so" && \ +gcc -c -shared -Wextra -Wall -Werror -pedantic -ggdb -fPIC -I./include aklogcatter.c -o lib/aklogcatter.so && \ +echo "Building tests/test_aklogcatter" && \ +gcc -Wextra -Wall -Werror -pedantic -ggdb -Wl,-rpath=lib -I./include tests/test_aklogcatter.c lib/aklog.so lib/aklogcatter.so -o tests/test_aklogcatter && \ +echo "Running test_aklogcatter" && \ +time ./tests/test_aklogcatter && \ rm ./tests/test_aklogcatter |