From 024cf2f59a7ee23f46140932b7b617f1f3fc1508 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 25 Mar 2025 21:47:16 +0100 Subject: Add tests and some fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- test-file.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test-file.c (limited to 'test-file.c') diff --git a/test-file.c b/test-file.c new file mode 100644 index 0000000..1e9743d --- /dev/null +++ b/test-file.c @@ -0,0 +1,21 @@ +/* See LICENSE file for copyright and license details. */ +#include "test-common.h" + + +int +main(int argc, char *argv[]) +{ + struct libgeome_context ctx; + struct libgeome_data data; + + if (argc > 2) { + fprintf(stderr, "usage: %s [file]", argv[0]); + return 1; + } + + test_common_init(&ctx, &data, argv[0]); + if (libgeome_get_from_file(&ctx, &data, argv[1])) + return 1; + test_common_print(&data); + return 0; +} -- cgit v1.2.3-70-g09d2