aboutsummaryrefslogtreecommitdiff
path: root/c_implementation/tests/test_aksettings_read.c
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2025-04-02 20:54:37 +0300
committerkaotisk <kaotisk@arching-kaos.org>2025-04-02 20:54:37 +0300
commitb9f80a2b37edf9682f189b406542b3f7a93b24a3 (patch)
tree2c96484ccb77af8a59ed6fb7fe4632b5bafb9858 /c_implementation/tests/test_aksettings_read.c
parent0ec3188626275fa2678882c9827ade8d045ffc7d (diff)
downloadarching-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/tests/test_aksettings_read.c')
-rw-r--r--c_implementation/tests/test_aksettings_read.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/c_implementation/tests/test_aksettings_read.c b/c_implementation/tests/test_aksettings_read.c
new file mode 100644
index 0000000..ddef12f
--- /dev/null
+++ b/c_implementation/tests/test_aksettings_read.c
@@ -0,0 +1,23 @@
+#include <libaksettings.h>
+#include <libaklog.h>
+#include <stdio.h>
+
+void test_ak_settings_from_file()
+{
+ printf("Testing: %s\n", __func__);
+ if (!ak_settings_load_settings_binary()) {
+ ak_log_warning(__func__, "No existing settings or error loading.\n");
+ }
+ const char *theme = ak_settings_get_setting("theme");
+ if (theme) {
+ printf("Current theme: %s\n", theme);
+ }
+ ak_settings_free_settings();
+}
+
+
+int main()
+{
+ test_ak_settings_from_file();
+ return 0;
+}