summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am4
-rwxr-xr-xtests/runtests.sh3
-rwxr-xr-xtests/runtests.sh.in3
-rw-r--r--tests/testboundaries.c10
4 files changed, 13 insertions, 7 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index e15157ab..084453a5 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -11,4 +11,8 @@ testboundaries_SOURCES = testboundaries.c
## pangox should not actually be required, this is broken
testboundaries_LDADD = ../pango/libpango.la ../pango/libpangox.la $(X_LIBS)
+EXTRA_DIST = \
+ all-unicode.txt \
+ boundaries.utf8 \
+ runtests.sh
diff --git a/tests/runtests.sh b/tests/runtests.sh
index aa67ccde..3fd0b110 100755
--- a/tests/runtests.sh
+++ b/tests/runtests.sh
@@ -50,6 +50,3 @@ done
echo
echo "All tests passed."
-
-
-
diff --git a/tests/runtests.sh.in b/tests/runtests.sh.in
index aa67ccde..3fd0b110 100755
--- a/tests/runtests.sh.in
+++ b/tests/runtests.sh.in
@@ -50,6 +50,3 @@ done
echo
echo "All tests passed."
-
-
-
diff --git a/tests/testboundaries.c b/tests/testboundaries.c
index 895231ae..a405bd04 100644
--- a/tests/testboundaries.c
+++ b/tests/testboundaries.c
@@ -341,8 +341,16 @@ main (int argc,
char **argv)
{
gchar *text;
+ gchar *srcdir;
+ gchar *filename;
- if (!g_file_get_contents ("boundaries.utf8", &text, NULL, NULL))
+ srcdir = getenv ("srcdir");
+ if (!srcdir)
+ srcdir = ".";
+
+ filename = g_strdup_printf ("%s/boundaries.utf8", srcdir);
+
+ if (!g_file_get_contents (filename, &text, NULL, NULL))
fail ("Couldn't open sample text file");
check_invariants (text);