test.c 964 B

12345678910111213141516171819202122232425262728293031
  1. /** BEGIN COPYRIGHT BLOCK
  2. * Copyright (C) 2017 Red Hat, Inc.
  3. * All rights reserved.
  4. *
  5. * License: GPL (version 3 or any later version).
  6. * See LICENSE for details.
  7. * END COPYRIGHT BLOCK **/
  8. #include "../test_slapd.h"
  9. void
  10. test_plugin_hello(void **state __attribute__((unused)))
  11. {
  12. /* It works! */
  13. assert_int_equal(1, 1);
  14. }
  15. int
  16. run_plugin_tests(void)
  17. {
  18. const struct CMUnitTest tests[] = {
  19. cmocka_unit_test(test_plugin_hello),
  20. cmocka_unit_test_setup_teardown(test_plugin_pwdstorage_pbkdf2_auth,
  21. test_plugin_pwdstorage_nss_setup,
  22. test_plugin_pwdstorage_nss_stop),
  23. cmocka_unit_test_setup_teardown(test_plugin_pwdstorage_pbkdf2_rounds,
  24. test_plugin_pwdstorage_nss_setup,
  25. test_plugin_pwdstorage_nss_stop),
  26. };
  27. return cmocka_run_group_tests(tests, NULL, NULL);
  28. }