1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-24 12:30:17 +00:00

Switches to running the real TOS, at least temporarily, and enables better testing.

This commit is contained in:
Thomas Harte 2019-03-31 22:27:57 -04:00
parent a9ceef5c37
commit 2c5ff9ada0
2 changed files with 4 additions and 2 deletions

View File

@ -26,6 +26,8 @@
buildConfiguration = "Debug" buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
enableAddressSanitizer = "YES"
enableUBSanitizer = "YES"
codeCoverageEnabled = "YES" codeCoverageEnabled = "YES"
shouldUseLaunchSchemeArgsEnv = "YES"> shouldUseLaunchSchemeArgsEnv = "YES">
<Testables> <Testables>

View File

@ -84,7 +84,7 @@ class EmuTOS: public CPU::MC68000::BusHandler {
- (void)setUp { - (void)setUp {
// Put setup code here. This method is called before the invocation of each test method in the class. // Put setup code here. This method is called before the invocation of each test method in the class.
const auto roms = CSROMFetcher()("AtariST", {"etos192uk.img"}); const auto roms = CSROMFetcher()("AtariST", {"tos100.img"});
_machine.reset(new EmuTOS(*roms[0])); _machine.reset(new EmuTOS(*roms[0]));
} }
@ -95,7 +95,7 @@ class EmuTOS: public CPU::MC68000::BusHandler {
- (void)testExample { - (void)testExample {
// This is an example of a functional test case. // This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results. // Use XCTAssert and related functions to verify your tests produce the correct results.
_machine->run_for(HalfCycles(400)); _machine->run_for(HalfCycles(4000));
} }
@end @end