mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
cogl: Pass unit-tests file to run-tests.sh
There are different unit-tests file generated containing lists of tests the test-runner.sh should run. Running run-tests.sh read the unit-tests in the current directory, which is inconvenient to do when using meson.
This commit is contained in:
parent
331e830cf6
commit
8894ec462a
@ -135,7 +135,7 @@ test_conformance_LDADD += $(top_builddir)/cogl-path/libmutter-cogl-path-$(LIBMUT
|
||||
test_conformance_LDFLAGS = -export-dynamic
|
||||
|
||||
test: wrappers
|
||||
@$(top_srcdir)/tests/run-tests.sh $(abs_builddir)/../config.env $(abs_builddir)/test-conformance$(EXEEXT)
|
||||
@$(top_srcdir)/tests/run-tests.sh $(abs_builddir)/../config.env $(abs_builddir)/test-conformance$(EXEEXT) unit-tests
|
||||
|
||||
# XXX: we could prevent the conformance test suite from running
|
||||
# by simply defining this variable conditionally
|
||||
@ -164,7 +164,7 @@ conform.test:
|
||||
echo " GEN $@"; \
|
||||
echo "[Test]" > $@.tmp; \
|
||||
echo "Type=session" >> $@.tmp; \
|
||||
echo "Exec=sh -c \"cd $(libexecdir)/installed-tests/mutter-cogl/conform; ../run-tests.sh ../config.env ./test-conformance\"" >> $@.tmp; \
|
||||
echo "Exec=sh -c \"cd $(libexecdir)/installed-tests/mutter-cogl/conform; ../run-tests.sh ../config.env ./test-conformance unit-tests\"" >> $@.tmp; \
|
||||
mv $@.tmp $@
|
||||
|
||||
CLEANFILES = conform.test
|
||||
|
@ -14,6 +14,9 @@ shift
|
||||
TEST_BINARY=$1
|
||||
shift
|
||||
|
||||
UNIT_TESTS_FILE=$1
|
||||
shift
|
||||
|
||||
. $ENVIRONMENT_CONFIG
|
||||
|
||||
set +m
|
||||
@ -98,7 +101,12 @@ fi
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
for test in `cat unit-tests`
|
||||
if [ ! -f $UNIT_TESTS_FILE ]; then
|
||||
echo Missing unit-tests file
|
||||
exit 1
|
||||
fi
|
||||
|
||||
for test in `cat $UNIT_TESTS_FILE`
|
||||
do
|
||||
export COGL_DEBUG=
|
||||
|
||||
|
@ -68,7 +68,7 @@ test_unit_LDFLAGS = -export-dynamic
|
||||
|
||||
# XXX: uncomment when tests get fixed
|
||||
#test: wrappers
|
||||
# @$(top_srcdir)/tests/run-tests.sh $(abs_builddir)/../config.env $(abs_builddir)/test-unit$(EXEEXT)
|
||||
# @$(top_srcdir)/tests/run-tests.sh $(abs_builddir)/../config.env $(abs_builddir)/test-unit$(EXEEXT) unit-tests
|
||||
|
||||
# XXX: we could prevent the unit test suite from running
|
||||
# by simply defining this variable conditionally
|
||||
|
Loading…
Reference in New Issue
Block a user