summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-04-17 22:39:30 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-04-17 22:39:30 +0000
commita1a5c040896150d7e41bf702a6bacecce6fc2461 (patch)
treece1c8fc7987cdf225d266a9f1c847a508966b6c7 /tests
parentd17adb44478e516b207b25afc1d6e87d5d274c96 (diff)
downloadpango-a1a5c040896150d7e41bf702a6bacecce6fc2461.tar.gz
Release 0.15PANGO_0_15
Tue Apr 17 15:44:53 2001 Owen Taylor <otaylor@redhat.com> * Release 0.15 * tests/testboundaries.c: Look for files in $srcdir. * Makefile.am (SUBDIRS): Add tests, remove fonts * tests/Makefile.am (EXTRA_DIST): added missing stuff * fonts/: Remove. Nothing in here is needed any more.
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);