ajwillia-ms pushed a commit to branch master. http://git.enlightenment.org/tools/edi.git/commit/?id=664cff7d4d52194feef3ea9d33aace341224b953
commit 664cff7d4d52194feef3ea9d33aace341224b953 Author: Andy Williams <a...@andywilliams.me> Date: Fri Jan 23 23:41:53 2015 +0000 install our test diff for elm_code_test binaries --- elm_code/bin/elm_code_test_main.c | 4 +++- elm_code/tests/Makefile.am | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/elm_code/bin/elm_code_test_main.c b/elm_code/bin/elm_code_test_main.c index e81a4e5..0bb6092 100644 --- a/elm_code/bin/elm_code_test_main.c +++ b/elm_code/bin/elm_code_test_main.c @@ -72,10 +72,12 @@ _elm_code_test_welcome_setup(Evas_Object *parent) static Evas_Object * _elm_code_test_diff_setup(Evas_Object *parent) { - char *path = "elm_code/tests/testdiff.diff"; + char path[PATH_MAX]; Evas_Object *diff; Elm_Code *code; + snprintf(path, sizeof(path), "%s/../edi/data/testdiff.diff", elm_app_data_dir_get()); + code = elm_code_create(); elm_code_file_open(code, path); diff --git a/elm_code/tests/Makefile.am b/elm_code/tests/Makefile.am index d1edb30..2f63f38 100644 --- a/elm_code/tests/Makefile.am +++ b/elm_code/tests/Makefile.am @@ -23,4 +23,7 @@ elm_code_suite_DEPENDENCIES = $(top_builddir)/elm_code/lib/libelm_code.la endif -EXTRA_DIST = elm_code_suite.h +testdir = $(datadir)/$(PACKAGE)/data +test_DATA = testdiff.diff + +EXTRA_DIST = elm_code_suite.h $(test_DATA) --