[vala/staging] tests: Rerun a few tests with POSIX profile to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] tests: Rerun a few tests with POSIX profile to increase coverage
- Date: Fri, 6 Mar 2020 21:49:25 +0000 (UTC)
commit 9a47aefbb505b8c145999cf21660d8e13c92a52d
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Fri Mar 6 22:47:54 2020 +0100
tests: Rerun a few tests with POSIX profile to increase coverage
tests/Makefile.am | 11 ++++++++++-
tests/testrunner.sh | 2 +-
2 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 9fccb52de..0d9fcdaf6 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -901,6 +901,13 @@ LINUX_TESTS = \
posix/file-commandpipe.vala \
$(NULL)
+POSIX_TESTS = \
+ basic-types/arrays.vala \
+ structs/struct_only.vala \
+ delegates/delegate_only.vala \
+ enums/enum_only.vala \
+ $(NULL)
+
GENIE_TESTS = \
genie/class.gs \
genie/control-flow-if-do.gs \
@@ -973,7 +980,9 @@ check-TESTS: $(TESTS) $(NON_NULL_TESTS)
$(srcdir)/testrunner.sh $(TESTS)
if HAVE_LINUX
@EXEEXT=$(EXEEXT) CFLAGS='$(CFLAGS)' CPPFLAGS='$(CPPFLAGS)' LDFLAGS='$(LDFLAGS)'
TEST_CFLAGS='$(TEST_CFLAGS)' CC='$(CC)' \
- VALAFLAGS="--pkg linux" $(srcdir)/testrunner.sh $(LINUX_TESTS)
+ PACKAGES="linux" $(srcdir)/testrunner.sh $(LINUX_TESTS)
+ @EXEEXT=$(EXEEXT) CFLAGS='$(CFLAGS)' CPPFLAGS='$(CPPFLAGS)' LDFLAGS='$(LDFLAGS)'
TEST_CFLAGS='$(TEST_CFLAGS)' CC='$(CC)' \
+ VALAFLAGS="--profile posix" PACKAGES="posix linux" $(srcdir)/testrunner.sh $(POSIX_TESTS)
endif
@EXEEXT=$(EXEEXT) CFLAGS='$(CFLAGS)' CPPFLAGS='$(CPPFLAGS)' LDFLAGS='$(LDFLAGS)'
TEST_CFLAGS='$(TEST_CFLAGS)' CC='$(CC)' \
VALAFLAGS="--enable-experimental-non-null" $(srcdir)/testrunner.sh $(NON_NULL_TESTS)
diff --git a/tests/testrunner.sh b/tests/testrunner.sh
index d1cc5c78c..bfe3d6df6 100755
--- a/tests/testrunner.sh
+++ b/tests/testrunner.sh
@@ -152,7 +152,7 @@ all=0
fail=0
EOF
-PACKAGES=gio-2.0
+PACKAGES=$([ -z "$PACKAGES" ] && echo "gio-2.0" || echo $PACKAGES)
for testfile in "$@"; do
rm -f prepare check
echo 'set -e' >> prepare
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]