From: Michael Tremer Date: Tue, 19 Jul 2022 16:39:56 +0000 (+0000) Subject: tests: Build scaffolding for a simple statically linked command X-Git-Tag: 0.9.28~664 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b71054e86f2b84e1dc499d115ffcff131d61f02;p=pakfire.git tests: Build scaffolding for a simple statically linked command This can then be used to test the execution container. Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index b9c4d8fdf..67be32c6a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -604,6 +604,24 @@ tests_libpakfire_util_LDADD = \ # ------------------------------------------------------------------------------ +tests_stubdir = $(testsdir)/stub + +tests_stub_rootdir = $(tests_stubdir)/root + +tests_stub_root_PROGRAMS = \ + tests/stub/root/command + +tests_stub_root_command_SOURCES = \ + tests/stub/command.c + +tests_stub_root_command_LDFLAGS = \ + -all-static + +CLEANFILES += \ + tests/stub/root/command + +# ------------------------------------------------------------------------------ + dist_scripts_SCRIPTS = \ src/scripts/check-buildroot \ src/scripts/check-fhs \ diff --git a/tests/stub/command.c b/tests/stub/command.c new file mode 100644 index 000000000..dd1b781b6 --- /dev/null +++ b/tests/stub/command.c @@ -0,0 +1,23 @@ +/*############################################################################# +# # +# Pakfire - The IPFire package management system # +# Copyright (C) 2022 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 . # +# # +#############################################################################*/ + +int main(int argc, char* argv[]) { + return 0; +}