forked from enlightenment/efl
Tests/Elm_Code: fix access to test files
Test files were not installed.
This commit is contained in:
parent
3857b1cde0
commit
18d27683fa
|
@ -1219,12 +1219,15 @@ edje_external_elementary_module_la_DEPENDENCIES = @USE_ELEMENTARY_INTERNAL_LIBS@
|
||||||
edje_external_elementary_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
|
edje_external_elementary_module_la_LDFLAGS = -module @EFL_LTMODULE_FLAGS@
|
||||||
edje_external_elementary_module_la_LIBTOOLFLAGS = --tag=disable-static
|
edje_external_elementary_module_la_LIBTOOLFLAGS = --tag=disable-static
|
||||||
|
|
||||||
|
testfilesdir = $(datadir)/elementary/
|
||||||
|
testfiles_DATA = \
|
||||||
|
tests/elementary/testfile.txt \
|
||||||
|
tests/elementary/testfile-windows.txt \
|
||||||
|
tests/elementary/testfile-withblanks.txt \
|
||||||
|
tests/elementary/testdiff.diff
|
||||||
|
|
||||||
### Tests
|
### Tests
|
||||||
EXTRA_DIST2 += \
|
EXTRA_DIST2 += $(testfiles_DATA)
|
||||||
tests/elementary/testfile.txt \
|
|
||||||
tests/elementary/testfile-windows.txt \
|
|
||||||
tests/elementary/testfile-withblanks.txt \
|
|
||||||
tests/elementary/testdiff.diff
|
|
||||||
|
|
||||||
if EFL_ENABLE_TESTS
|
if EFL_ENABLE_TESTS
|
||||||
|
|
||||||
|
|
|
@ -138,7 +138,7 @@ _elm_code_test_diff_inline_setup(Evas_Object *parent)
|
||||||
evas_object_show(diff);
|
evas_object_show(diff);
|
||||||
|
|
||||||
elm_code_parser_standard_add(code, ELM_CODE_PARSER_STANDARD_DIFF);
|
elm_code_parser_standard_add(code, ELM_CODE_PARSER_STANDARD_DIFF);
|
||||||
elm_code_file_open(code, PACKAGE_DATA_DIR "testdiff.diff");
|
elm_code_file_open(code, PACKAGE_DATA_DIR "/testdiff.diff");
|
||||||
|
|
||||||
return diff;
|
return diff;
|
||||||
}
|
}
|
||||||
|
@ -150,7 +150,7 @@ _elm_code_test_diff_setup(Evas_Object *parent)
|
||||||
Elm_Code *code;
|
Elm_Code *code;
|
||||||
|
|
||||||
code = elm_code_create();
|
code = elm_code_create();
|
||||||
elm_code_file_open(code, PACKAGE_DATA_DIR "testdiff.diff");
|
elm_code_file_open(code, PACKAGE_DATA_DIR "/testdiff.diff");
|
||||||
|
|
||||||
diff = elm_code_diff_widget_add(parent, code);
|
diff = elm_code_diff_widget_add(parent, code);
|
||||||
return diff;
|
return diff;
|
||||||
|
|
Loading…
Reference in New Issue