| 1 | /* |
| 2 | * AIDE (Advanced Intrusion Detection Environment) |
| 3 | * |
| 4 | * Copyright (C) 2019,2024 Hannes von Haugwitz |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License as |
| 8 | * published by the Free Software Foundation; either version 2 of the |
| 9 | * License, or (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, but |
| 12 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 | * General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License along |
| 17 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 19 | */ |
| 20 | |
| 21 | #include <stdlib.h> |
| 22 | |
| 23 | #include "check_aide.h" |
| 24 | #include "hashsum.h" |
| 25 | #include "log.h" |
| 26 | |
| 27 | int main (void) { |
| 28 | int number_failed; |
| 29 | SRunner *sr; |
| 30 | |
| 31 | init_hashsum_lib(); |
| 32 | |
| 33 | sr = srunner_create (make_attributes_suite()); |
| 34 | srunner_add_suite(sr, make_base64_suite()); |
| 35 | srunner_add_suite(sr, make_progress_suite()); |
| 36 | srunner_add_suite(sr, make_seltree_suite()); |
| 37 | srunner_add_suite(sr, make_hashsum_suite()); |
| 38 | |
| 39 | set_log_level(LOG_LEVEL_DEBUG); |
| 40 | set_colored_log(false); |
| 41 | |
| 42 | srunner_run_all (sr, CK_NORMAL); |
| 43 | number_failed = srunner_ntests_failed (sr); |
| 44 | |
| 45 | srunner_free (sr); |
| 46 | return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; |
| 47 | } |