From ea60b1b08015060a08b1ead38e4e81c44a88017f Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 5 Apr 2024 16:07:39 -0300 Subject: Move unit tests out of src/*.c into tests/ --- tests/i18n.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/i18n.c (limited to 'tests/i18n.c') 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 + +#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; +} -- cgit v1.2.3