check_namespace.c 994 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. ============================================================================
  3. Name : check_stack.c
  4. Author :
  5. Version :
  6. Copyright : Your copyright notice
  7. Description :
  8. ============================================================================
  9. */
  10. #include <stdio.h>
  11. #include <stdlib.h>
  12. #include "opcua.h"
  13. #include "opcua_namespace.h"
  14. #include "check.h"
  15. START_TEST(test_Namespace) {
  16. namespace *ns = UA_NULL;
  17. create_ns(&ns, 512);
  18. delete_ns(ns);
  19. }
  20. END_TEST
  21. Suite * namespace_suite (void) {
  22. Suite *s = suite_create ("Namespace");
  23. TCase *tc_cd = tcase_create ("Create/Delete");
  24. tcase_add_test (tc_cd, test_Namespace);
  25. suite_add_tcase (s, tc_cd);
  26. return s;
  27. }
  28. int main (void) {
  29. return 0;
  30. int number_failed;
  31. Suite *s = namespace_suite ();
  32. SRunner *sr = srunner_create (s);
  33. srunner_run_all (sr, CK_NORMAL);
  34. number_failed = srunner_ntests_failed (sr);
  35. srunner_free (sr);
  36. number_failed = 1;
  37. return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE;
  38. }