-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed duplicates in
U.EXE
, added simple test (#26)
- Loading branch information
Showing
14 changed files
with
112 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.dockerignore | ||
Dockerfile | ||
docker-compose.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ services: | |
|
||
test: | ||
build: . | ||
pull_policy: build | ||
environment: | ||
- DISPLAY | ||
volumes: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,7 @@ | ||
import time | ||
|
||
import testbox | ||
import tests | ||
|
||
|
||
class TestInstall(tests.TestCase): | ||
class TestInstall(tests.InstalledTestCase): | ||
def testInstall(self): | ||
configuration = { | ||
'cpu': { | ||
'cycles': 'max', | ||
}, | ||
'render': { | ||
'scaler': 'normal2x forced', | ||
}, | ||
} | ||
|
||
with testbox.TestBox( | ||
[ | ||
'-c', 'MOUNT C: .', | ||
'-c', 'C:', | ||
'-c', 'RK.COM /L:RUSSIAN.RK /F:8X16.RK', | ||
'INSTALL.EXE', | ||
], | ||
configuration, | ||
timeout_error=AssertionError, | ||
) as box: | ||
for keys in ( | ||
'H', # Hard disk. | ||
'C', # Drive C:. | ||
'5', # VGA. | ||
'Y', # Mouse. | ||
'1', # Adlib. | ||
'\r', # Default port. | ||
'Y', # Everything is correct. | ||
'2', # Don't create character. | ||
): | ||
# FIXME save screenshots and pack as artifacts. | ||
box.send_keys(keys) | ||
time.sleep(0.1) | ||
box.wait_image('screenshots/INSTALL/install.png', bbox=(0, 16, 640, 400), timeout=1) | ||
|
||
with open('CONFIG.U6', 'rb') as f: | ||
self.assertEqual(f.read(), b'\x76\x6d\x61\x33\x38\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') | ||
with open('CONFIG.U6', 'rb') as f: | ||
self.assertEqual(f.read(), b'\x76\x6d\x61\x33\x38\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters