mu: update unit tests

They need to use 'mu init' as well.
This commit is contained in:
Dirk-Jan C. Binnema
2020-02-09 18:01:06 +02:00
parent 451309697d
commit 876f70d50d
5 changed files with 28 additions and 44 deletions

View File

@ -45,10 +45,12 @@ fill_database (void)
GError *err;
tmpdir = test_mu_common_get_random_tmpdir();
cmdline = g_strdup_printf ("%s index --muhome=%s --maildir=%s"
" --quiet",
MU_PROGRAM,
tmpdir, MU_TESTMAILDIR2);
cmdline = g_strdup_printf (
"/bin/sh -c '"
"%s init --muhome=%s --maildir=%s --quiet; "
"%s index --muhome=%s --quiet'",
MU_PROGRAM, tmpdir, MU_TESTMAILDIR2,
MU_PROGRAM, tmpdir);
if (g_test_verbose())
g_print ("%s\n", cmdline);
@ -118,7 +120,7 @@ test_mu_index (void)
gchar *xpath;
xpath = g_strdup_printf ("%s%c%s", DBPATH, G_DIR_SEPARATOR, "xapian");
g_printerr ("*** %s\n", DBPATH);
store = mu_store_new_readable (xpath, NULL);
g_assert (store);