From 53c9f60b7438764853c54d977a37b267bdf64485 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 16 Feb 2010 15:24:51 -0600 Subject: Adding in a basic test desktop file test --- tests/Makefile.am | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'tests/Makefile.am') diff --git a/tests/Makefile.am b/tests/Makefile.am index b111655..ab776a9 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -33,6 +33,41 @@ test_loader_LDADD = \ -L$(top_builddir)/libindicator/.libs \ -lindicator +############################# +# Test Desktop Shortcuts +############################# + +check_PROGRAMS += test-desktop-shortcuts + +test_desktop_shortcuts_SOURCES = \ + test-desktop-shortcuts.c + +test_desktop_shortcuts_CFLAGS = \ + -Wall -Werror \ + -DSRCDIR="\"$(srcdir)\"" \ + $(LIBINDICATOR_CFLAGS) -I$(top_srcdir) \ + -DBUILD_DIR="\"$(builddir)\"" + +test_desktop_shortcuts_LDADD = \ + $(LIBINDICATOR_LIBS) \ + -L$(top_builddir)/libindicator/.libs \ + -lindicator + +DS_XML_REPORT = desktop-shortcuts-check-results.xml +DS_HTML_REPORT = desktop-shortcuts-check-results.html + +test-desktop-shortcuts-tester: test-desktop-shortcuts Makefile.am + @echo "#!/bin/bash" > $@ + @echo $(XVFB_RUN) >> $@ + @echo gtester -k --verbose -o=$(XML_REPORT) ./test-desktop-shortcuts >> $@ + @chmod +x $@ + +TESTS += test-desktop-shortcuts-tester +DISTCLEANFILES += test-desktop-shortcuts-tester \ + $(DS_XML_REPORT) + $(DS_HTML_REPORT) + + ############################# # Dummy Indicator Blank ############################# -- cgit v1.2.3 From 0a4d6689dccccc0556c4ec811e2783442a97fae9 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 16 Feb 2010 15:26:03 -0600 Subject: A backslash off --- tests/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/Makefile.am') diff --git a/tests/Makefile.am b/tests/Makefile.am index ab776a9..c7c9a1d 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -64,7 +64,7 @@ test-desktop-shortcuts-tester: test-desktop-shortcuts Makefile.am TESTS += test-desktop-shortcuts-tester DISTCLEANFILES += test-desktop-shortcuts-tester \ - $(DS_XML_REPORT) + $(DS_XML_REPORT) \ $(DS_HTML_REPORT) -- cgit v1.2.3 From 7e69f61eb09bc73067a4cf963b2fe4c44bf936a1 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 16 Feb 2010 22:39:45 -0600 Subject: Clean up touch file --- tests/Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/Makefile.am') diff --git a/tests/Makefile.am b/tests/Makefile.am index c7c9a1d..1f000bd 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -64,6 +64,7 @@ test-desktop-shortcuts-tester: test-desktop-shortcuts Makefile.am TESTS += test-desktop-shortcuts-tester DISTCLEANFILES += test-desktop-shortcuts-tester \ + test-desktop-shortcuts-touch-test \ $(DS_XML_REPORT) \ $(DS_HTML_REPORT) -- cgit v1.2.3 From ef9c19ed6aec8a078a612a9e9b069934bf262b80 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 16 Feb 2010 22:43:11 -0600 Subject: Shipping our test desktop file --- tests/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/Makefile.am') diff --git a/tests/Makefile.am b/tests/Makefile.am index 1f000bd..cd1a958 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -67,7 +67,7 @@ DISTCLEANFILES += test-desktop-shortcuts-tester \ test-desktop-shortcuts-touch-test \ $(DS_XML_REPORT) \ $(DS_HTML_REPORT) - +EXTRA_DIST += test-well-formed.desktop ############################# # Dummy Indicator Blank -- cgit v1.2.3