src/platform/test/suite-main.c (view raw)
1/* Copyright (c) 2013-2016 Jeffrey Pfau
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6#include "util/test/suite.h"
7
8#include "util/test/util.h"
9#include "core/test/core.h"
10#ifdef M_CORE_GBA
11#include "gba/test/gba.h"
12#endif
13#ifdef M_CORE_GB
14#include "gb/test/gb.h"
15#endif
16
17int main() {
18 int failures = TestRunUtil();
19 failures += TestRunCore();
20#ifdef M_CORE_GBA
21 failures += TestRunGBA();
22#endif
23#ifdef M_CORE_GB
24 failures += TestRunGB();
25#endif
26 return failures != 0;
27}