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

« back to all changes in this revision

Viewing changes to pkcs11/ssh-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
 
g_test_add("/ssh_openssh/parse_public", int, NULL, setup, testing__test__parse_public, teardown);
18
 
g_test_add("/ssh_openssh/parse_private", int, NULL, setup, testing__test__parse_private, teardown);
19
 
        setup = teardown = NULL;
20
 
setup = testing__setup__private_key_setup;
21
 
teardown = testing__teardown__private_key_teardown;
22
 
g_test_add("/private_key/private_key_parse_plain", int, NULL, setup, testing__test__private_key_parse_plain, teardown);
23
 
g_test_add("/private_key/private_key_parse_and_unlock", int, NULL, setup, testing__test__private_key_parse_and_unlock, teardown);
24
 
        setup = teardown = NULL;
25
 
}
26
 
 
27
 
static void run_externals (int *ret) {
28
 
        testing_external_run ("testing__external__ssh_module", testing__external__ssh_module, ret);
29
 
}
30
 
 
31
 
static int run(void) {
32
 
        int ret;
33
 
        initialize_tests ();
34
 
        start_tests ();
35
 
        ret = g_test_run ();
36
 
        if (ret == 0)
37
 
                run_externals (&ret);
38
 
        stop_tests();
39
 
        return ret;
40
 
}
41
 
#include "testing/testing.c"