[hipl-commit] [tiny] Rev 3595: Cleaned up test program for libmodularization.

  • From: Tim Just <tim.just@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Tue, 2 Mar 2010 12:39:36 +0200

Committer: Tim Just <tim.just@xxxxxxxxxxxxxx>
Date: Tue Mar 02 11:37:26 2010 +0100
Revision: 3595
Revision-id: tim.just@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: tiny

Log:
  Cleaned up test program for libmodularization.
  
  Due to API changes the tests where deprecated. Currently the test program
  has no functionality.

Modified:
  M  test/modularization.c

=== modified file 'test/modularization.c'
--- test/modularization.c       2010-02-23 11:31:56 +0000
+++ test/modularization.c       2010-03-02 10:37:26 +0000
@@ -15,132 +15,7 @@
 
 #include "lib/modularization/modularization.h"
 
-struct ha_state {
-    int id;
-    char name[10];
-};
-
-struct update_state {
-    int id;
-    char name[10];
-};
-
-
-static int test_function1(void)
-{
-    printf("test_function1\n");
-    return 0;
-}
-
-static int test_function2(void)
-{
-    printf("test_function2\n");
-    return 0;
-}
-
-static int test_function3(void)
-{
-    printf("test_function3\n");
-    return 0;
-}
-
-static int test_function4(void)
-{
-    printf("test_function4\n");
-    return 0;
-}
-
-static int test_function5(void)
-{
-    printf("test_function5\n");
-    return 0;
-}
-
-/*
-int test_modular_state(void)
-{
-    struct ha_state ha_state_item1;
-    struct update_state update_state_item1;
-    struct ha_state ha_state_item2;
-    struct update_state update_state_item2;
-    struct modular_state *entry1, *entry2;
-    void *tmp = NULL;
-
-    ha_state_item1.id = 11;
-    update_state_item1.id = 12;
-
-    ha_state_item2.id = 21;
-    update_state_item2.id = 22;
-
-    entry1 = hip_init_state();
-    entry2 = hip_init_state();
-
-    hip_add_state_item(entry1, &ha_state_item1, "ha");
-    hip_add_state_item(entry1, &update_state_item1, "update");
-
-    hip_add_state_item(entry2, &ha_state_item2, "ha");
-    hip_add_state_item(entry2, &update_state_item2, "update");
-
-    printf("update_state1: %p\n", hip_get_state_item(entry1, "update"));
-    tmp = hip_get_state_item(entry1, "update");
-    printf("ha_state2: %p\n", hip_get_state_item(entry1, "ha"));
-    printf("\n");
-    printf("update_state2: %p\n", hip_get_state_item(entry2, "update"));
-    tmp = hip_get_state_item(entry2, "update");
-    printf("ha_state2: %p\n", hip_get_state_item(entry2, "ha"));
-
-    hip_free_state(entry1);
-    hip_free_state(entry2);
-
-    return 0;
-}
-*/
-
-int test_handle_functions(void)
-{
-    hip_register_handle_function(0, 0, &test_function1, 0);
-    hip_register_handle_function(0, 0, &test_function2, 0);
-    hip_register_handle_function(0, 0, &test_function3, 0);
-    hip_register_handle_function(0, 0, &test_function4, 0);
-    hip_register_handle_function(0, 0, &test_function5, 0);
-
-    hip_unregister_handle_function(0, 0, &test_function1);
-    hip_unregister_handle_function(0, 0, &test_function3);
-    hip_unregister_handle_function(0, 0, &test_function5);
-
-    hip_run_handle_functions(0, 0, NULL);
-
-    printf("\n");
-
-    hip_register_handle_function(1, 1, &test_function1, 1003);
-    hip_register_handle_function(1, 1, &test_function2, 1002);
-    hip_register_handle_function(1, 1, &test_function3, 1000);
-    hip_register_handle_function(1, 1, &test_function4, 1005);
-    hip_register_handle_function(1, 1, &test_function5, 1004);
-
-    hip_unregister_handle_function(1, 1, &test_function3);
-
-    hip_run_handle_functions(1, 1, NULL);
-
-    printf("\n");
-
-    hip_register_handle_function(16, 16, &test_function1, 5);
-    hip_register_handle_function(16, 16, &test_function2, 4);
-    hip_register_handle_function(16, 16, &test_function3, 3);
-    hip_register_handle_function(16, 16, &test_function4, 2);
-    hip_register_handle_function(16, 16, &test_function5, 1);
-
-
-    hip_run_handle_functions(16, 16, NULL);
-
-    hip_uninit_handle_functions();
-
-    return 0;
-}
-
 int main(void)
 {
-    test_handle_functions();
-
     return 0;
 }

Other related posts:

  • » [hipl-commit] [tiny] Rev 3595: Cleaned up test program for libmodularization. - Tim Just