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_fs_build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/build_tree/ak_fs_build.sh') diff --git a/src/build_tree/ak_fs_build.sh b/src/build_tree/ak_fs_build.sh index d45fb0a..a18b824 100755 --- a/src/build_tree/ak_fs_build.sh +++ b/src/build_tree/ak_fs_build.sh @@ -5,11 +5,11 @@ gcc -c -shared -Wextra -Wall -Werror -pedantic -ggdb -fPIC -I./include akfs.c -o echo "Building tests/test_akfs" && \ gcc -Wextra -Wall -Werror -pedantic -ggdb -Wl,-rpath=lib -I./include tests/test_akfs.c lib/akfs.so -o tests/test_akfs && \ echo "Running test_akfs" && \ -time ./tests/test_akfs +time ./tests/test_akfs && \ rm ./tests/test_akfs echo "Building tests/test_akfs_mkdir.c" && \ gcc -Wextra -Wall -Werror -pedantic -ggdb -Wl,-rpath=lib -I./include tests/test_akfs_mkdir.c lib/akfs.so -o tests/test_akfs_mkdir && \ echo "Running test_akfs_mkdir" && \ -time ./tests/test_akfs_mkdir +time ./tests/test_akfs_mkdir && \ rm ./tests/test_akfs_mkdir -- cgit v1.2.3