1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-23 20:29:42 +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"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
enableAddressSanitizer = "YES"
enableUBSanitizer = "YES"
codeCoverageEnabled = "YES"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>

View File

@ -84,7 +84,7 @@ class EmuTOS: public CPU::MC68000::BusHandler {
- (void)setUp {
// 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]));
}
@ -95,7 +95,7 @@ class EmuTOS: public CPU::MC68000::BusHandler {
- (void)testExample {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
_machine->run_for(HalfCycles(400));
_machine->run_for(HalfCycles(4000));
}
@end