From: Michael Tremer Date: Thu, 11 Feb 2021 16:58:38 +0000 (+0000) Subject: tests: Prepare repository tests X-Git-Tag: 0.9.28~1285^2~754 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b9888230a2dcce7f4ba0ffb8c5933120293867c7;p=pakfire.git tests: Prepare repository tests Signed-off-by: Michael Tremer --- diff --git a/.gitignore b/.gitignore index a4fe5de2b..fdc0776dd 100644 --- a/.gitignore +++ b/.gitignore @@ -18,6 +18,7 @@ /tests/libpakfire/main /tests/libpakfire/makefile /tests/libpakfire/parser +/tests/libpakfire/repo /tests/libpakfire/util /tmp *.py[co] diff --git a/Makefile.am b/Makefile.am index 156446725..3ee6db7b4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -364,6 +364,7 @@ check_PROGRAMS += \ tests/libpakfire/key \ tests/libpakfire/makefile \ tests/libpakfire/parser \ + tests/libpakfire/repo \ tests/libpakfire/util dist_tests_libpakfire_main_SOURCES = \ @@ -449,6 +450,16 @@ tests_libpakfire_parser_LDADD = \ $(TESTSUITE_LDADD) \ $(PAKFIRE_LIBS) +dist_tests_libpakfire_repo_SOURCES = \ + tests/libpakfire/repo.c + +tests_libpakfire_repo_CPPFLAGS = \ + $(TESTSUITE_CPPFLAGS) + +tests_libpakfire_repo_LDADD = \ + $(TESTSUITE_LDADD) \ + $(PAKFIRE_LIBS) + dist_tests_libpakfire_util_SOURCES = \ tests/libpakfire/util.c diff --git a/tests/libpakfire/repo.c b/tests/libpakfire/repo.c new file mode 100644 index 000000000..c882ec5b3 --- /dev/null +++ b/tests/libpakfire/repo.c @@ -0,0 +1,25 @@ +/*############################################################################# +# # +# Pakfire - The IPFire package management system # +# Copyright (C) 2021 Pakfire development team # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see . # +# # +#############################################################################*/ + +#include "../testsuite.h" + +int main(int argc, char** argv) { + return testsuite_run(); +}