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-time.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test-time.c (limited to 'test-time.c') diff --git a/test-time.c b/test-time.c new file mode 100644 index 0000000..a717b39 --- /dev/null +++ b/test-time.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 != 1) { + fprintf(stderr, "usage: %s", argv[0]); + return 1; + } + + test_common_init(&ctx, &data, argv[0]); + if (libgeome_get_from_time(&ctx, &data)) + return 1; + test_common_print(&data); + return 0; +} -- cgit v1.2.3-70-g09d2