mirror of https://github.com/mgba-emu/mgba.git
Test: Remove GB test harness
This commit is contained in:
parent
8750f78808
commit
25627bf6a3
|
@ -642,10 +642,6 @@ if(BUILD_TEST)
|
|||
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
|
||||
|
|
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue