~noskcaj/ubuntu/vivid/gnome-keyring/3.15.90

« back to all changes in this revision

Viewing changes to pkcs11/gnome2-store/tests/test-suite.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2012-05-14 22:13:02 UTC
  • mfrom: (1.3.1)
  • mto: (80.2.8 experimental) (1.1.77)
  • mto: This revision was merged to the branch mainline in revision 148.
  • Revision ID: package-import@ubuntu.com-20120514221302-0l3gjmqpe6xopond
ImportĀ upstreamĀ versionĀ 3.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* This is auto-generated code. Edit at your own peril. */
2
 
#include "testing/testing.h"
3
 
#include "test-suite.h"
4
 
 
5
 
typedef void (*TestingFunc)(int *, const void *);
6
 
 
7
 
static void start_tests (void) {
8
 
}
9
 
 
10
 
static void stop_tests (void) {
11
 
}
12
 
 
13
 
static void initialize_tests (void) {
14
 
        TestingFunc setup = NULL;
15
 
        TestingFunc teardown = NULL;
16
 
        setup = teardown = NULL;
17
 
setup = testing__setup__file_store;
18
 
teardown = testing__teardown__file_store;
19
 
g_test_add("/gnome2_file/test_file_create", int, NULL, setup, testing__test__test_file_create, teardown);
20
 
g_test_add("/gnome2_file/test_file_write_value", int, NULL, setup, testing__test__test_file_write_value, teardown);
21
 
g_test_add("/gnome2_file/test_file_read_value", int, NULL, setup, testing__test__test_file_read_value, teardown);
22
 
g_test_add("/gnome2_file/test_file_read", int, NULL, setup, testing__test__test_file_read, teardown);
23
 
g_test_add("/gnome2_file/test_file_lookup", int, NULL, setup, testing__test__test_file_lookup, teardown);
24
 
g_test_add("/gnome2_file/file_read_private_without_login", int, NULL, setup, testing__test__file_read_private_without_login, teardown);
25
 
g_test_add("/gnome2_file/test_file_write", int, NULL, setup, testing__test__test_file_write, teardown);
26
 
g_test_add("/gnome2_file/cant_write_private_without_login", int, NULL, setup, testing__test__cant_write_private_without_login, teardown);
27
 
g_test_add("/gnome2_file/write_private_with_login", int, NULL, setup, testing__test__write_private_with_login, teardown);
28
 
g_test_add("/gnome2_file/read_private_with_login", int, NULL, setup, testing__test__read_private_with_login, teardown);
29
 
g_test_add("/gnome2_file/destroy_entry", int, NULL, setup, testing__test__destroy_entry, teardown);
30
 
g_test_add("/gnome2_file/destroy_entry_by_loading", int, NULL, setup, testing__test__destroy_entry_by_loading, teardown);
31
 
g_test_add("/gnome2_file/destroy_private_without_login", int, NULL, setup, testing__test__destroy_private_without_login, teardown);
32
 
g_test_add("/gnome2_file/entry_added_signal", int, NULL, setup, testing__test__entry_added_signal, teardown);
33
 
g_test_add("/gnome2_file/entry_changed_signal", int, NULL, setup, testing__test__entry_changed_signal, teardown);
34
 
g_test_add("/gnome2_file/entry_removed_signal", int, NULL, setup, testing__test__entry_removed_signal, teardown);
35
 
g_test_add("/gnome2_file/data_file_foreach", int, NULL, setup, testing__test__data_file_foreach, teardown);
36
 
g_test_add("/gnome2_file/unique_entry", int, NULL, setup, testing__test__unique_entry, teardown);
37
 
g_test_add("/gnome2_file/have_sections", int, NULL, setup, testing__test__have_sections, teardown);
38
 
        setup = teardown = NULL;
39
 
}
40
 
 
41
 
static void run_externals (int *ret) {
42
 
        testing_external_run ("testing__external__user_module", testing__external__user_module, ret);
43
 
}
44
 
 
45
 
static int run(void) {
46
 
        int ret;
47
 
        initialize_tests ();
48
 
        start_tests ();
49
 
        ret = g_test_run ();
50
 
        if (ret == 0)
51
 
                run_externals (&ret);
52
 
        stop_tests();
53
 
        return ret;
54
 
}
55
 
#include "testing/testing.c"