Mercurial > lcfOS
changeset 187:bf5ab358f43a
Renamed readme and added status badge
author | Windel Bouwman |
---|---|
date | Sat, 25 May 2013 14:41:19 +0200 |
parents | 46d62dadd61b |
children | 1113da536872 |
files | README README.md python/testc3.py |
diffstat | 3 files changed, 58 insertions(+), 54 deletions(-) [+] |
line wrap: on
line diff
--- a/README Sat May 25 14:26:25 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,48 +0,0 @@ -= Project goals = -* To write a microkernel sort of OS. -* Write the kernel in C ('cos') -* Write a kernel in oberon like language and be able to compile this with the ide. -* Create python scripts that form the major part of the OS. -* Make IDE in python that can compile the OS. - -= Directory structure = -'os' contains the os written in oberon like language. -'ide' contains the python3 qt4 ide to build the os. -'cos' contains the os written in C and assembler. - -= Software required = - * python3 - * pyqt4 -Optional: - * bochs - * nasm - -= How to start the IDE = - -$ cd ide -$ python runide.py - -= About the C version of the OS = - -To build the C kernel, enter: -$ cd cos -$ make - -Running the OS with bochs: -$ bochs -q - -Running the OS with kvm: -$ kvm -fda bootdisk.img -or: -$ qemu-kvm -fda bootdisk.img - -required tools: -- bochs: for simulating the OS -- mtools: for copying files to the bootdisk -- nasm: for assembler instructions -- gcc: for compiling the C sources -- make: for building the system -- python 3: for building the initial ramdisk - -Enjoy! -
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.md Sat May 25 14:41:19 2013 +0200 @@ -0,0 +1,53 @@ + +Status badge: + +[![Build Status](https://drone.io/bitbucket.org/windel/lcfos/status.png)](https://drone.io/bitbucket.org/windel/lcfos/latest) + += Project goals = +* To write a microkernel sort of OS. +* Write the kernel in C ('cos') +* Write a kernel in oberon like language and be able to compile this with the ide. +* Create python scripts that form the major part of the OS. +* Make IDE in python that can compile the OS. + += Directory structure = +'os' contains the os written in oberon like language. +'ide' contains the python3 qt4 ide to build the os. +'cos' contains the os written in C and assembler. + += Software required = + * python3 + * pyqt4 +Optional: + * bochs + * nasm + += How to start the IDE = + +$ cd ide +$ python runide.py + += About the C version of the OS = + +To build the C kernel, enter: +$ cd cos +$ make + +Running the OS with bochs: +$ bochs -q + +Running the OS with kvm: +$ kvm -fda bootdisk.img +or: +$ qemu-kvm -fda bootdisk.img + +required tools: +- bochs: for simulating the OS +- mtools: for copying files to the bootdisk +- nasm: for assembler instructions +- gcc: for compiling the C sources +- make: for building the system +- python 3: for building the initial ramdisk + +Enjoy! +
--- a/python/testc3.py Sat May 25 14:26:25 2013 +0200 +++ b/python/testc3.py Sat May 25 14:41:19 2013 +0200 @@ -137,7 +137,7 @@ """ self.diag.clear() ir = self.builder.build(snippet) - assert len(self.diag.diags) == 3 + self.assertEqual(len(self.diag.diags), 3) self.assertEqual(self.diag.diags[0].loc.row, 8) self.assertEqual(self.diag.diags[1].loc.row, 9) self.assertEqual(self.diag.diags[2].loc.row, 10) @@ -175,10 +175,10 @@ } } """ - ir = self.builder.build(snippet) - if not ir: + ircode = self.builder.build(snippet) + if not ircode: self.diag.printErrors(snippet) - self.assertTrue(ir) + self.assertTrue(ircode) def testIf(self): snippet = """ package tstIFF; @@ -207,8 +207,7 @@ # testsrc2 is valid code: self.diag.clear() ir = self.builder.build(testsrc2) - assert ir - #ir.dump() + self.assertTrue(ir) if __name__ == '__main__': do()