mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-05 13:18:17 +03:00
a24afd68f0
This large patch moves the core xattr logic down into libgsystem, which allows the gs_shutil_cp_a() API to copy them. In turn, this allows us to just use that API instead of rolling our own recursive copy here. As noted in the new comment though, one case that we are explicitly regressing is where the new /etc removes a parent directory that's needed by a modified file. This seems unlikely for most vendors now, but let's do that as a separate bug. https://bugzilla.gnome.org/show_bug.cgi?id=711058
91 lines
2.8 KiB
Plaintext
91 lines
2.8 KiB
Plaintext
# Makefile for tests code
|
|
#
|
|
# Copyright (C) 2013 Colin Walters <walters@verbum.org>
|
|
#
|
|
# This library is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
# License as published by the Free Software Foundation; either
|
|
# version 2 of the License, or (at your option) any later version.
|
|
#
|
|
# This library 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
|
|
# Lesser General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Lesser General Public
|
|
# License along with this library; if not, write to the
|
|
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
# Boston, MA 02111-1307, USA.
|
|
|
|
|
|
if BUILDOPT_INSTALL_TESTS
|
|
insttest_PROGRAMS =
|
|
|
|
insttestdir=$(pkglibexecdir)/installed-tests
|
|
testfiles = test-basic \
|
|
test-archivez \
|
|
test-remote-add \
|
|
test-commit-sign \
|
|
test-corruption \
|
|
test-libarchive \
|
|
test-pull-archive-z \
|
|
test-pull-corruption \
|
|
test-pull-resume \
|
|
test-gpg-signed-commit \
|
|
test-admin-deploy-1 \
|
|
test-admin-deploy-2 \
|
|
test-admin-deploy-etcmerge-cornercases \
|
|
test-admin-deploy-uboot \
|
|
test-setuid \
|
|
test-xattrs \
|
|
$(NULL)
|
|
insttest_SCRIPTS = $(addprefix tests/,$(testfiles:=.sh))
|
|
|
|
testmetadir = $(datadir)/installed-tests/$(PACKAGE)
|
|
testmeta_DATA = $(testfiles:=.test)
|
|
|
|
insttest_DATA = tests/archive-test.sh \
|
|
tests/pull-test.sh \
|
|
tests/libtest.sh \
|
|
$(NULL)
|
|
|
|
gpginsttestdir = $(pkglibexecdir)/installed-tests/gpghome
|
|
gpginsttest_DATA = tests/gpghome/secring.gpg \
|
|
tests/gpghome/pubring.gpg \
|
|
tests/gpghome/trustdb.gpg
|
|
|
|
%.test: tests/%.sh Makefile
|
|
$(AM_V_GEN) (echo '[Test]' > $@.tmp; \
|
|
echo 'Exec=$(pkglibexecdir)/installed-tests/$(notdir $<)' >> $@.tmp; \
|
|
echo 'Type=session' >> $@.tmp; \
|
|
echo 'Output=TAP' >> $@.tmp; \
|
|
mv $@.tmp $@)
|
|
|
|
%.test: tests/%.js Makefile
|
|
$(AM_V_GEN) (echo '[Test]' > $@.tmp; \
|
|
echo 'Exec=env TESTDATADIR=$(pkglibexecdir)/installed-tests $(pkglibexecdir)/installed-tests/$(notdir $<)' >> $@.tmp; \
|
|
echo 'Type=session' >> $@.tmp; \
|
|
mv $@.tmp $@)
|
|
|
|
%.test: tests/%.c Makefile
|
|
$(AM_V_GEN) (echo '[Test]' > $@.tmp; \
|
|
echo 'Exec=$(pkglibexecdir)/installed-tests/$(notdir $(<:.c=))' >> $@.tmp; \
|
|
echo 'Type=session' >> $@.tmp; \
|
|
mv $@.tmp $@)
|
|
|
|
insttest_PROGRAMS += test-varint
|
|
test_varint_SOURCES = src/libostree/ostree-varint.c tests/test-varint.c
|
|
test_varint_CFLAGS = $(ostree_bin_shared_cflags) $(OT_INTERNAL_GIO_UNIX_CFLAGS)
|
|
test_varint_LDADD = $(ostree_bin_shared_ldadd) $(OT_INTERNAL_GIO_UNIX_LIBS)
|
|
testmeta_DATA += test-varint.test
|
|
|
|
if BUILDOPT_GJS
|
|
insttest_SCRIPTS += tests/test-core.js \
|
|
tests/test-sizes.js \
|
|
tests/test-sysroot.js \
|
|
$(NULL)
|
|
testmeta_DATA += test-core.test test-sizes.test test-sysroot.test
|
|
endif
|
|
|
|
endif
|