Skip to content
This repository has been archived by the owner on Mar 10, 2019. It is now read-only.

Commit

Permalink
use GResources to make widget tests work
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Matthew committed Aug 10, 2016
1 parent 823dac4 commit 9d45095
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,16 @@ test_audioscrobbler_LDADD = \

test_widgets_SOURCES = \
test-widgets.c \
test-widgets-resources.c \
$(test_utils)

test_resource_deps = $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies --sourcedir $(top_srcdir)/data $(srcdir)/test-widgets.gresource.xml)
test-widgets-resources.c: $(test_resource_deps) $(srcdir)/test-widgets.gresource.xml
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) \
--target="$@" \
--sourcedir="$(top_srcdir)/data" \
--generate-source "$(srcdir)/test-widgets.gresource.xml"

bench_rhythmdb_load_SOURCES = bench-rhythmdb-load.c

AM_CPPFLAGS = \
Expand Down Expand Up @@ -88,4 +96,7 @@ EXTRA_DIST = \
deserialization-test2.xml \
deserialization-test3.xml \
podcast-upgrade.xml \
test-widgets.gresource.xml \
$(OLD_TESTS)

CLEANFILES = test-widgets-resources.c
7 changes: 7 additions & 0 deletions tests/test-widgets.gresource.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/gnome/Rhythmbox">
<file preprocess="xml-stripblanks">ui/create-playlist.ui</file>
</gresource>
</gresources>

0 comments on commit 9d45095

Please sign in to comment.