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

@@ -11,6 +11,8 @@
#define BUFFER_SIZE 1024
static const gchar *datapath;
static void
test_small_writes (void)
{
@@ -58,16 +60,18 @@ gint main (gint argc, gchar * argv[])
GError *gerr = NULL;
GString *buffer;
char *filename;
char *srcdir = getenv ("srcdir");
gint rlength = 0;
glong wlength = 0;
gsize length_out;
const gchar encoding[] = "EUC-JP";
GIOStatus status;
if (!srcdir)
srcdir = ".";
filename = g_strconcat (srcdir, G_DIR_SEPARATOR_S, "iochannel-test-infile", NULL);
if (g_getenv ("G_TEST_DATA"))
datapath = g_getenv ("G_TEST_DATA");
else
datapath = ".";
filename = g_build_filename (datapath, "iochannel-test-infile", NULL);
setbuf (stdout, NULL); /* For debugging */