/*
 * SPDX-License-Identifier: LGPL-2.0-or-later
 */

#include "camel-test-provider.h"
#include "camel-test.h"

void
camel_test_provider_init (gint argc,
                          const gchar **argv)
{
	gchar *name, *path;
	gint i;
	GError *error = NULL;

	for (i = 0; i < argc; i++) {
		name = g_strdup_printf ("libcamel%s."G_MODULE_SUFFIX, argv[i]);
		path = g_build_filename (CAMEL_BUILD_DIR, "providers", argv[i], name, NULL);
		g_free (name);
		camel_provider_load (path, &error);
		g_assert_no_error (error);
		g_free (path);
	}
}
