library_independ.c 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. libmc - check if library is independ to $(topsrc)/src directory
  3. Copyright (C) 2011-2015
  4. Free Software Foundation, Inc.
  5. Written by:
  6. Slava Zanko <slavazanko@gmail.com>, 2011, 2013
  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 "tests/mctest.h"
  21. /* --------------------------------------------------------------------------------------------- */
  22. /* *INDENT-OFF* */
  23. START_TEST (test_library_independ)
  24. /* *INDENT-ON* */
  25. {
  26. }
  27. /* *INDENT-OFF* */
  28. END_TEST
  29. /* *INDENT-ON* */
  30. /* --------------------------------------------------------------------------------------------- */
  31. int
  32. main (void)
  33. {
  34. int number_failed;
  35. Suite *s = suite_create (TEST_SUITE_NAME);
  36. TCase *tc_core = tcase_create ("Core");
  37. SRunner *sr;
  38. /* Add new tests here: *************** */
  39. tcase_add_test (tc_core, test_library_independ);
  40. /* *********************************** */
  41. suite_add_tcase (s, tc_core);
  42. sr = srunner_create (s);
  43. srunner_run_all (sr, CK_NORMAL);
  44. number_failed = srunner_ntests_failed (sr);
  45. srunner_free (sr);
  46. return (number_failed == 0) ? 0 : 1;
  47. }
  48. /* --------------------------------------------------------------------------------------------- */