summaryrefslogtreecommitdiff
path: root/tests/i18n.c
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-04-05 16:07:39 -0300
committerEuAndreh <eu@euandre.org>2024-04-05 17:08:08 -0300
commitea60b1b08015060a08b1ead38e4e81c44a88017f (patch)
tree9be302cafc856410383e1b1ab315f8b1a371153d /tests/i18n.c
parentgit mv meta.capim meta.weave (diff)
downloadpindaiba-ea60b1b08015060a08b1ead38e4e81c44a88017f.tar.gz
pindaiba-ea60b1b08015060a08b1ead38e4e81c44a88017f.tar.xz
Move unit tests out of src/*.c into tests/
Diffstat (limited to 'tests/i18n.c')
-rw-r--r--tests/i18n.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/i18n.c b/tests/i18n.c
new file mode 100644
index 0000000..47a3247
--- /dev/null
+++ b/tests/i18n.c
@@ -0,0 +1,23 @@
+#include "../src/i18n.c"
+
+#include <stdlib.h>
+
+#include "../src/logerr.h"
+#include "../src/catalog.h"
+
+
+int
+main(void) {
+ int rc = 0;
+
+ if (getenv("DUMP_TRANSLATABLE_STRINGS")) {
+ if (dump_translatable_strings(MSGS)) {
+ logerr("dump_translatable_strings(MSGS)\n");
+ rc = -1;
+ goto out;
+ }
+ }
+
+out:
+ return !!rc;
+}