library_independ.c 1.8 KB

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