Missed commit in order to fix compilation using '--enable-fatal' and '--disable-depre...
[hildon] / tests / check_test.c
index 826bb5e..c82c438 100644 (file)
@@ -1,11 +1,13 @@
 /*
- * Copyright (C) 2006 Nokia Corporation.
+ * This file is a part of hildon tests
  *
- * Contact: Luc Pionchon <luc.pionchon@nokia.com>
+ * Copyright (C) 2006, 2007 Nokia Corporation, all rights reserved.
+ *
+ * Contact: Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public License
- * as published by the Free Software Foundation; either version 2.1 of
+ * as published by the Free Software Foundation; version 2.1 of
  * the License, or (at your option) any later version.
  *
  * This library is distributed in the hope that it will be useful, but
@@ -48,7 +50,9 @@ configure_tests(gint environment)
   SRunner *sr;
   
   /* Create srunner object with the first test suite */
-  sr = srunner_create(create_hildon_range_editor_suite());
+
+  sr = srunner_create(create_hildon_caption_suite());
+#ifndef HILDON_DISABLE_DEPRECATED
   srunner_add_suite(sr, create_hildon_number_editor_suite());
   srunner_add_suite(sr, create_hildon_time_editor_suite());
   srunner_add_suite(sr, create_hildon_time_picker_suite());
@@ -60,22 +64,29 @@ configure_tests(gint environment)
   srunner_add_suite(sr, create_hildon_seekbar_suite());
   /* srunner_add_suite(sr, create_hildon_dialoghelp_suite()); */
   srunner_add_suite(sr, create_hildon_calendar_popup_suite());
-  srunner_add_suite(sr, create_hildon_caption_suite());
-  srunner_add_suite(sr, create_hildon_defines_suite());
-  srunner_add_suite(sr, create_hildon_find_toolbar_suite());
+  srunner_add_suite(sr, create_hildon_range_editor_suite());
   /* srunner_add_suite(sr, create_hildon_name_password_dialog_suite());
   srunner_add_suite(sr, create_hildon_get_password_dialog_suite());
   srunner_add_suite(sr, create_hildon_set_password_dialog_suite()); */
   srunner_add_suite(sr, create_hildon_sort_dialog_suite());
   srunner_add_suite(sr, create_hildon_code_dialog_suite());
-  srunner_add_suite(sr, create_hildon_note_suite());
   srunner_add_suite(sr, create_hildon_volumebar_suite());
   srunner_add_suite(sr, create_hildon_volumebar_range_suite());
+  srunner_add_suite(sr, create_hildon_font_selection_dialog_suite());
+#endif /* HILDON_DISABLE_DEPRECATED */
+
+  srunner_add_suite(sr, create_hildon_find_toolbar_suite());
+  srunner_add_suite(sr, create_hildon_note_suite());
   srunner_add_suite(sr, create_hildon_wizard_dialog_suite());
   /* srunner_add_suite(sr, create_hildon_scroll_area_suite()); */
+#ifndef HILDON_DISABLE_DEPRECATED
+  /* HildonBanner is not deprecated, but all the functions tested in
+     this suite are deprecated*/
   srunner_add_suite(sr, create_hildon_banner_suite());
-  srunner_add_suite(sr, create_hildon_font_selection_dialog_suite());
+#endif
   srunner_add_suite(sr, create_hildon_window_suite());
+  srunner_add_suite(sr, create_hildon_helper_suite());
+  srunner_add_suite(sr, create_hildon_picker_button_suite());
 
   /* Disable tests that need maemo environment to be up if it is not running */
   if (environment != ENVIRONMENT_MAEMO_ERROR)