2007-08-22 15:26:59 -07:00
|
|
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
|
|
|
|
*
|
2008-06-24 07:43:28 -07:00
|
|
|
* Copyright (C) 2007-2008 Richard Hughes <richard@hughsie.com>
|
2007-08-22 15:26:59 -07:00
|
|
|
*
|
|
|
|
* Licensed under the GNU General Public License Version 2
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
2007-11-04 10:31:33 -08:00
|
|
|
#include "config.h"
|
|
|
|
|
2007-08-22 15:26:59 -07:00
|
|
|
#include <glib.h>
|
2007-08-30 16:20:13 -07:00
|
|
|
#include <glib-object.h>
|
2008-09-04 01:29:54 -07:00
|
|
|
#include "egg-test.h"
|
|
|
|
#include "egg-debug.h"
|
2007-08-22 15:26:59 -07:00
|
|
|
|
2007-08-30 16:20:13 -07:00
|
|
|
/* prototypes */
|
2008-09-04 08:17:26 -07:00
|
|
|
void egg_string_test (EggTest *test);
|
|
|
|
void egg_obj_list_test (EggTest *test);
|
2008-09-04 01:29:54 -07:00
|
|
|
void pk_package_id_test (EggTest *test);
|
2008-09-11 09:36:15 -07:00
|
|
|
void pk_package_ids_test (EggTest *test);
|
2008-09-04 01:29:54 -07:00
|
|
|
void pk_package_obj_test (EggTest *test);
|
|
|
|
void pk_package_list_test (EggTest *test);
|
|
|
|
void pk_enum_test (EggTest *test);
|
|
|
|
void pk_bitfield_test (EggTest *test);
|
|
|
|
void pk_common_test (EggTest *test);
|
|
|
|
void pk_enum_test_list (EggTest *test);
|
|
|
|
void pk_extra_test (EggTest *test);
|
|
|
|
void pk_client_test (EggTest *test);
|
|
|
|
void pk_control_test (EggTest *test);
|
|
|
|
void pk_task_list_test (EggTest *test);
|
|
|
|
void pk_catalog_test (EggTest *test);
|
|
|
|
void pk_update_detail_test (EggTest *test);
|
|
|
|
void pk_details_test (EggTest *test);
|
2007-08-22 15:26:59 -07:00
|
|
|
|
2007-08-30 16:20:13 -07:00
|
|
|
int
|
|
|
|
main (int argc, char **argv)
|
2007-08-22 15:26:59 -07:00
|
|
|
{
|
2008-09-04 01:29:54 -07:00
|
|
|
EggTest *test;
|
2007-08-22 15:26:59 -07:00
|
|
|
|
2007-08-30 16:20:13 -07:00
|
|
|
g_type_init ();
|
2008-09-04 01:29:54 -07:00
|
|
|
test = egg_test_init ();
|
2008-08-28 04:44:24 -07:00
|
|
|
egg_debug_init (TRUE);
|
2007-08-22 15:26:59 -07:00
|
|
|
|
2007-08-30 16:20:13 -07:00
|
|
|
/* tests go here */
|
2008-09-04 08:17:26 -07:00
|
|
|
egg_string_test (test);
|
|
|
|
egg_obj_list_test (test);
|
2008-09-04 01:29:54 -07:00
|
|
|
pk_common_test (test);
|
|
|
|
pk_package_id_test (test);
|
2008-09-11 09:36:15 -07:00
|
|
|
pk_package_ids_test (test);
|
2008-09-04 01:29:54 -07:00
|
|
|
pk_package_obj_test (test);
|
|
|
|
pk_package_list_test (test);
|
|
|
|
pk_enum_test (test);
|
|
|
|
pk_bitfield_test (test);
|
|
|
|
pk_extra_test (test);
|
|
|
|
pk_client_test (test);
|
|
|
|
pk_catalog_test (test);
|
|
|
|
pk_control_test (test);
|
|
|
|
pk_task_list_test (test);
|
|
|
|
pk_update_detail_test (test);
|
|
|
|
pk_details_test (test);
|
2007-08-22 15:26:59 -07:00
|
|
|
|
2008-09-04 01:29:54 -07:00
|
|
|
return (egg_test_finish (test));
|
2007-08-30 16:20:13 -07:00
|
|
|
}
|
2007-08-22 15:26:59 -07:00
|
|
|
|