ctest.h 1.1 KB
Newer Older
1 2 3
/*
 * Copyright 2016, CZ.NIC z.s.p.o. (http://www.nic.cz/)
 *
4
 * This file is part of the turris updater.
5
 *
6
 * Updater is free software: you can redistribute it and/or modify
7 8 9 10
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
11
 * Updater is distributed in the hope that it will be useful,
12 13 14 15 16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
17
 * along with Updater.  If not, see <http://www.gnu.org/licenses/>.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
 */

/*
 * This module provides generic main for the C based tests.
 */

#ifndef C_TEST_H
#define C_TEST_H

#include <check.h>

/*
 * Header of the function a test case should provide. It shall
 * create a test suite, fill it with tests and pass as a result.
 * It will get called by the provided main() function.
 */
Suite *gen_test_suite(void) __attribute__((returns_nonnull));

#endif