Convert more tests to installed tests

This makes the tests in tests installed, except for
the performance tests.
This commit is contained in:
Matthias Clasen
2013-05-20 21:05:56 -04:00
parent 1808888a1f
commit 7ff5c08221
6 changed files with 62 additions and 19 deletions

View File

@@ -308,7 +308,7 @@ process (gint line,
int
main (int argc, char **argv)
{
gchar *srcdir = getenv ("srcdir");
const gchar *srcdir;
gchar *testfile;
gchar *contents;
GError *error = NULL;
@@ -321,7 +321,9 @@ main (int argc, char **argv)
GArray *ucs4;
Status status = VALID; /* Quiet GCC */
if (!srcdir)
if (g_getenv ("G_TEST_DATA"))
srcdir = g_getenv ("G_TEST_DATA");
else
srcdir = ".";
testfile = g_strconcat (srcdir, G_DIR_SEPARATOR_S "utf8.txt", NULL);