File: test.c

package info (click to toggle)
389-ds-base 3.1.2%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 42,884 kB
  • sloc: ansic: 316,584; python: 113,772; cpp: 10,263; javascript: 6,338; perl: 2,872; makefile: 2,062; sh: 989; yacc: 806; xml: 379; lex: 366; java: 50
file content (31 lines) | stat: -rw-r--r-- 964 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/** BEGIN COPYRIGHT BLOCK
 * Copyright (C) 2017 Red Hat, Inc.
 * All rights reserved.
 *
 * License: GPL (version 3 or any later version).
 * See LICENSE for details.
 * END COPYRIGHT BLOCK **/

#include "../test_slapd.h"

void
test_plugin_hello(void **state __attribute__((unused)))
{
    /* It works! */
    assert_int_equal(1, 1);
}

int
run_plugin_tests(void)
{
    const struct CMUnitTest tests[] = {
        cmocka_unit_test(test_plugin_hello),
        cmocka_unit_test_setup_teardown(test_plugin_pwdstorage_pbkdf2_auth,
                                        test_plugin_pwdstorage_nss_setup,
                                        test_plugin_pwdstorage_nss_stop),
        cmocka_unit_test_setup_teardown(test_plugin_pwdstorage_pbkdf2_rounds,
                                        test_plugin_pwdstorage_nss_setup,
                                        test_plugin_pwdstorage_nss_stop),
    };
    return cmocka_run_group_tests(tests, NULL, NULL);
}