library_independ.c 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* libmc - check if library is independ to $(topsrc)/src directory
  2. Copyright (C) 2011 Free Software Foundation, Inc.
  3. Written by:
  4. Slava Zanko <slavazanko@gmail.com>, 2011
  5. This program is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Library General Public License
  7. as published by the Free Software Foundation; either version 2 of
  8. the License, or (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU Library General Public License for more details.
  13. You should have received a copy of the GNU Library General Public
  14. License along with this program; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16. */
  17. #define TEST_SUITE_NAME "lib/library_independ"
  18. #include <check.h>
  19. #include "lib/global.h"
  20. /* --------------------------------------------------------------------------------------------- */
  21. START_TEST (test_library_independ)
  22. {
  23. }
  24. END_TEST
  25. /* --------------------------------------------------------------------------------------------- */
  26. int
  27. main (void)
  28. {
  29. int number_failed;
  30. Suite *s = suite_create (TEST_SUITE_NAME);
  31. TCase *tc_core = tcase_create ("Core");
  32. SRunner *sr;
  33. /* Add new tests here: *************** */
  34. tcase_add_test (tc_core, test_library_independ);
  35. /* *********************************** */
  36. suite_add_tcase (s, tc_core);
  37. sr = srunner_create (s);
  38. srunner_run_all (sr, CK_NORMAL);
  39. number_failed = srunner_ntests_failed (sr);
  40. srunner_free (sr);
  41. return (number_failed == 0) ? 0 : 1;
  42. }
  43. /* --------------------------------------------------------------------------------------------- */