diff options
| author | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2025-11-12 21:49:50 +0100 |
|---|---|---|
| committer | Peter Mikkelsen <petermikkelsen10@gmail.com> | 2025-11-12 21:49:50 +0100 |
| commit | 7de14dbc0b642ee492fe592ccb53e8d81a4dc599 (patch) | |
| tree | 1c44602db0d917a3176da535cbfa327edeec4e4a /src/tests | |
Initial commit
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/Makefile.am | 7 | ||||
| -rw-r--r-- | src/tests/test1.c | 12 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am new file mode 100644 index 0000000..8a3efd3 --- /dev/null +++ b/src/tests/Makefile.am @@ -0,0 +1,7 @@ +AM_CPPFLAGS = -I$(top_srcdir)/src/include + +TESTS = test1 + +check_PROGRAMS = test1 +test1_SOURCES = test1.c +test1_LDADD = $(top_builddir)/src/core/libaplwc.la diff --git a/src/tests/test1.c b/src/tests/test1.c new file mode 100644 index 0000000..1c2f886 --- /dev/null +++ b/src/tests/test1.c @@ -0,0 +1,12 @@ +#include <stdio.h> +#include <stdlib.h> +#include <aplwc.h> + +int +main(int argc, char *argv[]) +{ + APLWCFunctions fns; + aplwc_init_fns(&fns); + APLWC *aplwc = aplwc_init(&fns, NULL); + exit(aplwc ? EXIT_SUCCESS : EXIT_FAILURE); +} |