Skip to content

Commit

Permalink
Test cases with bochs BIOS
Browse files Browse the repository at this point in the history
  • Loading branch information
copy committed Feb 5, 2016
1 parent 28c0715 commit 031f4f3
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 5 deletions.
Binary file added bios/bochs-bios.bin
Binary file not shown.
Binary file added bios/bochs-vgabios.bin
Binary file not shown.
43 changes: 38 additions & 5 deletions tests/full/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ if(cluster.isMaster)
"Welcome to FreeDOS",
],
},
{
name: "FreeDOS boot with Bochs BIOS",
fda: root_path + "/images/freedos722.img",
timeout: 10,
alternative_bios: true,
expected_texts: [
"Welcome to FreeDOS",
],
},
{
name: "Windows 1.01 boot",
fda: root_path + "/images/windows101.img",
Expand All @@ -68,7 +77,7 @@ if(cluster.isMaster)
{
name: "Sol OS",
fda: root_path + "/images/os8.dsk",
timeout: 10,
timeout: 20,
expect_graphical_mode: true,
expect_mouse_registered: true,
actions: [
Expand All @@ -81,11 +90,27 @@ if(cluster.isMaster)
{
name: "Linux",
cdrom: root_path + "/images/linux.iso",
timeout: 70,
timeout: 75,
expected_texts: [
"/root%",
"test passed",
],
actions: [
{
on_text: "/root%",
run: "cd tests; ./test-i386 > emu.test; diff emu.test reference.test > /dev/null && echo test pas''sed || echo failed\n",
},
],
},
{
name: "Linux with Bochs BIOS",
cdrom: root_path + "/images/linux.iso",
timeout: 75,
expected_texts: [
"/root%",
"test passed",
],
alternative_bios: true,
actions: [
{
on_text: "/root%",
Expand Down Expand Up @@ -117,7 +142,7 @@ if(cluster.isMaster)
{
name: "OpenBSD",
fda: root_path + "/images/openbsd.img",
timeout: 120,
timeout: 180,
expected_texts: ["(I)nstall, (U)pgrade or (S)hell"],
},
];
Expand Down Expand Up @@ -187,8 +212,16 @@ function run_test(test, done)
{
console.log("Starting test: %s", test.name);

var bios = readfile(root_path + "/bios/seabios.bin");
var vga_bios = readfile(root_path + "/bios/vgabios.bin");
if(test.alternative_bios)
{
var bios = readfile(root_path + "/bios/bochs-bios.bin");
var vga_bios = readfile(root_path + "/bios/bochs-vgabios.bin");
}
else
{
var bios = readfile(root_path + "/bios/seabios.bin");
var vga_bios = readfile(root_path + "/bios/vgabios.bin");
}

var settings = {
bios: { buffer: bios },
Expand Down

0 comments on commit 031f4f3

Please sign in to comment.