all repos — mgba @ 25627bf6a31cee7f1dcf4bb09bec71d0ad3fe388

mGBA Game Boy Advance Emulator

Test: Remove GB test harness
Jeffrey Pfau jeffrey@endrift.com
Thu, 21 Jan 2016 19:31:57 -0800
commit

25627bf6a31cee7f1dcf4bb09bec71d0ad3fe388

parent

8750f78808736560c24cc662d5a570b81e64b6e0

2 files changed, 0 insertions(+), 30 deletions(-)

jump to
M CMakeLists.txtCMakeLists.txt

@@ -642,10 +642,6 @@ add_executable(${BINARY_NAME}-fuzz ${CMAKE_SOURCE_DIR}/src/platform/test/fuzz-main.c)

target_link_libraries(${BINARY_NAME}-fuzz ${BINARY_NAME}) set_target_properties(${BINARY_NAME}-fuzz PROPERTIES COMPILE_DEFINITIONS "${OS_DEFINES};${FEATURE_DEFINES};${FUNCTION_DEFINES}") install(TARGETS ${BINARY_NAME}-fuzz DESTINATION bin COMPONENT ${BINARY_NAME}-test) - - add_executable(${BINARY_NAME}-gb ${CMAKE_SOURCE_DIR}/src/platform/test/gb-main.c) - target_link_libraries(${BINARY_NAME}-gb ${BINARY_NAME}) - set_target_properties(${BINARY_NAME}-gb PROPERTIES COMPILE_DEFINITIONS "${OS_DEFINES};${FEATURE_DEFINES};${FUNCTION_DEFINES}") endif() # Packaging
D src/platform/test/gb-main.c

@@ -1,26 +0,0 @@

-/* Copyright (c) 2013-2016 Jeffrey Pfau - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include "lr35902/lr35902.h" -#include "gb/gb.h" -#include "util/vfs.h" - -int main(int argc, char* argv[]) { - struct LR35902Core cpu; - struct GB gb; - - GBCreate(&gb); - LR35902SetComponents(&cpu, &gb.d, 0, 0); - LR35902Init(&cpu); - struct VFile* vf = VFileOpen(argv[1], O_RDONLY); - GBLoadROM(&gb, vf, 0, argv[1]); - - LR35902Reset(&cpu); - while (true) { - LR35902Tick(&cpu); - } - vf->close(vf); - return 0; -}