Add TestEnvironment key to the installed tests launchers

The TestEnvironment key allows us to control the environment used by the
gnome-desktop-testing-runner harness.

We use it to disable the diagnostic messages without having to tweak the
Exec line.

https://bugzilla.gnome.org/show_bug.cgi?id=734115
This commit is contained in:
Emmanuele Bassi 2014-08-29 19:35:11 +01:00
parent 4bcf739d04
commit 98b64fec33

View File

@ -127,6 +127,7 @@ installed_test_meta_DATA = $(installed_testcases:=.test)
%.test: %$(EXEEXT) Makefile %.test: %$(EXEEXT) Makefile
$(AM_V_GEN) (echo '[Test]' > $@.tmp; \ $(AM_V_GEN) (echo '[Test]' > $@.tmp; \
echo 'Type=session' >> $@.tmp; \ echo 'Type=session' >> $@.tmp; \
echo 'TestEnvironment=G_ENABLE_DIAGNOSTIC=0;CLUTTER_ENABLE_DIAGNOSTIC=0;' >> $@.tmp; \
echo 'Exec=$(installed_testdir)/$<' >> $@.tmp; \ echo 'Exec=$(installed_testdir)/$<' >> $@.tmp; \
mv $@.tmp $@) mv $@.tmp $@)