ajout d'un systeme de test unitaires

This commit is contained in:
Thomas Bernard
2019-10-28 20:57:59 +01:00
parent a76aa44f4d
commit 1810cdfb61
8 changed files with 381 additions and 8 deletions

29
src/tests/tests.h Normal file
View File

@@ -0,0 +1,29 @@
/* vim:expandtab:ts=2 sw=2:
*/
/* Grafx2 - The Ultimate 256-color bitmap paint program
Copyright 2019 Thomas Bernard
Copyright 2007-2011 Adrien Destugues
Copyright 1996-2001 Sunset Design (Guillaume Dorme & Karl Maritaud)
Grafx2 is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2
of the License.
Grafx2 is distributed in the hope that it will be useful,
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
along with Grafx2; if not, see <http://www.gnu.org/licenses/>
*/
#ifndef TESTS_H_INCLUDED
#define TESTS_H_INCLUDED
#define TEST(func) int Test_ ## func (void);
#include "testlist.h"
#undef TEST
#endif