diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2025-04-02 20:54:37 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2025-04-02 20:54:37 +0300 |
commit | b9f80a2b37edf9682f189b406542b3f7a93b24a3 (patch) | |
tree | 2c96484ccb77af8a59ed6fb7fe4632b5bafb9858 /c_implementation/build_tree | |
parent | 0ec3188626275fa2678882c9827ade8d045ffc7d (diff) | |
download | arching-kaos-tools-b9f80a2b37edf9682f189b406542b3f7a93b24a3.tar.gz arching-kaos-tools-b9f80a2b37edf9682f189b406542b3f7a93b24a3.tar.bz2 arching-kaos-tools-b9f80a2b37edf9682f189b406542b3f7a93b24a3.zip |
Moved directory and some experimental changes
Diffstat (limited to 'c_implementation/build_tree')
-rwxr-xr-x | c_implementation/build_tree/ak_fs_build.sh | 15 | ||||
-rwxr-xr-x | c_implementation/build_tree/ak_log_build.sh | 13 | ||||
-rwxr-xr-x | c_implementation/build_tree/ak_logcatter_build.sh | 7 | ||||
-rwxr-xr-x | c_implementation/build_tree/ak_settings_build.sh | 11 | ||||
-rwxr-xr-x | c_implementation/build_tree/ak_utils_build.sh | 2 | ||||
-rwxr-xr-x | c_implementation/build_tree/libsodium_test_build.sh | 1 |
6 files changed, 49 insertions, 0 deletions
diff --git a/c_implementation/build_tree/ak_fs_build.sh b/c_implementation/build_tree/ak_fs_build.sh new file mode 100755 index 0000000..a18b824 --- /dev/null +++ b/c_implementation/build_tree/ak_fs_build.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +echo "Building lib/akfs.so" && \ +gcc -c -shared -Wextra -Wall -Werror -pedantic -ggdb -fPIC -I./include akfs.c -o lib/akfs.so && \ +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 && \ +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 && \ +rm ./tests/test_akfs_mkdir diff --git a/c_implementation/build_tree/ak_log_build.sh b/c_implementation/build_tree/ak_log_build.sh new file mode 100755 index 0000000..713b915 --- /dev/null +++ b/c_implementation/build_tree/ak_log_build.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +echo "Building lib/aklog.so" && \ +gcc -c -shared -Wextra -Wall -Werror -pedantic -ggdb -fPIC -I./include aklog.c -o lib/aklog.so && \ +echo "Building tests/test_aklog" && \ +gcc -Wextra -Wall -Werror -pedantic -ggdb -Wl,-rpath=lib -I./include tests/test_aklog.c lib/aklog.so -o tests/test_aklog && \ +echo "Running test_aklog" && \ +time ./tests/test_aklog # && \ +# rm ./tests/test_aklog +gcc -Wextra -Wall -Werror -pedantic -ggdb -Wl,-rpath=lib -I./include tests/test_aklogwrite.c lib/aklog.so -o tests/test_aklogwrite && \ +echo "Running test_aklogwrite" && \ +time ./tests/test_aklogwrite && \ +rm ./tests/test_aklogwrite diff --git a/c_implementation/build_tree/ak_logcatter_build.sh b/c_implementation/build_tree/ak_logcatter_build.sh new file mode 100755 index 0000000..5038073 --- /dev/null +++ b/c_implementation/build_tree/ak_logcatter_build.sh @@ -0,0 +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 && \ +rm ./tests/test_aklogcatter diff --git a/c_implementation/build_tree/ak_settings_build.sh b/c_implementation/build_tree/ak_settings_build.sh new file mode 100755 index 0000000..09009a8 --- /dev/null +++ b/c_implementation/build_tree/ak_settings_build.sh @@ -0,0 +1,11 @@ +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/aklog.so lib/aksettings.so -o tests/test_aksettings && \ +echo "Running test_aksettings" && \ +time ./tests/test_aksettings && \ +rm ./tests/test_aksettings +gcc -Wextra -Wall -Werror -pedantic -ggdb -Wl,-rpath=lib -I./include tests/test_aksettings_read.c lib/aklog.so lib/aksettings.so -o tests/test_aksettings_read && \ +echo "Running test_aksettings_read" && \ +time ./tests/test_aksettings_read && \ +rm ./tests/test_aksettings_read diff --git a/c_implementation/build_tree/ak_utils_build.sh b/c_implementation/build_tree/ak_utils_build.sh new file mode 100755 index 0000000..4300307 --- /dev/null +++ b/c_implementation/build_tree/ak_utils_build.sh @@ -0,0 +1,2 @@ +echo "Building lib/akutils.so" && gcc -c -shared -Wextra -Wall -Werror -pedantic -ggdb -fPIC -I./include akutils.c -o lib/akutils.so && echo "Building tests/test_akutils" && gcc -Wextra -Wall -Werror -pedantic -ggdb -Wl,-rpath=lib -I./include tests/test_akutils.c lib/akutils.so -o tests/test_akutils && echo "Running test_akutils" && time ./tests/test_akutils +rm ./tests/test_akutils diff --git a/c_implementation/build_tree/libsodium_test_build.sh b/c_implementation/build_tree/libsodium_test_build.sh new file mode 100755 index 0000000..0897835 --- /dev/null +++ b/c_implementation/build_tree/libsodium_test_build.sh @@ -0,0 +1 @@ +gcc -Wextra -Wall -Werror -pedantic -ggdb -Wl,-rpath=lib -I./include -lsodium tests/libsodium.c lib/aklog.so -o watah |