]> git.ipfire.org Git - pakfire.git/commitdiff
tests: Prepare repository tests
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 11 Feb 2021 16:58:38 +0000 (16:58 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 11 Feb 2021 16:58:38 +0000 (16:58 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
.gitignore
Makefile.am
tests/libpakfire/repo.c [new file with mode: 0644]

index a4fe5de2b218132bc137618730438ca07a9e4820..fdc0776ddac15502e0707e7b1cd16bc8c4d363ce 100644 (file)
@@ -18,6 +18,7 @@
 /tests/libpakfire/main
 /tests/libpakfire/makefile
 /tests/libpakfire/parser
+/tests/libpakfire/repo
 /tests/libpakfire/util
 /tmp
 *.py[co]
index 156446725aad6813b4ac6cc23c4c363e1063f520..3ee6db7b4d429167a0561d97883394252527a689 100644 (file)
@@ -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 (file)
index 0000000..c882ec5
--- /dev/null
@@ -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 <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+#############################################################################*/
+
+#include "../testsuite.h"
+
+int main(int argc, char** argv) {
+       return testsuite_run();
+}