Mercurial > lcfOS
comparison test/testzcc.py @ 313:04cf4d26a3bc
Added constant function
author | Windel Bouwman |
---|---|
date | Wed, 18 Dec 2013 18:02:26 +0100 |
parents | 2c9768114877 |
children | 084cccaa5deb |
comparison
equal
deleted
inserted
replaced
312:2c9768114877 | 313:04cf4d26a3bc |
---|---|
35 self.assertEqual(0, zcc.main(args)) | 35 self.assertEqual(0, zcc.main(args)) |
36 | 36 |
37 def testKernel(self): | 37 def testKernel(self): |
38 # Build kernel using zcc: | 38 # Build kernel using zcc: |
39 kerneldir = os.path.normpath(os.path.join('..', 'kernel')) | 39 kerneldir = os.path.normpath(os.path.join('..', 'kernel')) |
40 sys.path.insert(0, kerneldir) | 40 sys.path.insert(0, kerneldir) |
41 from make import make_kernel | 41 from make import make_kernel |
42 os.chdir(kerneldir) | 42 os.chdir(kerneldir) |
43 make_kernel() | 43 make_kernel() |
44 sys.path.pop(-1) | 44 sys.path.pop(-1) |
45 | 45 |
46 def testUser(self): | 46 def testUser(self): |
47 # Build userspace using zcc: | 47 # Build userspace using zcc: |
48 userdir = os.path.normpath(os.path.join('..', 'user')) | 48 userdir = os.path.normpath(os.path.join('..', 'user')) |
49 sys.path.insert(0, userdir) | 49 sys.path.insert(0, userdir) |
50 from makeuser import make_user | 50 from makeuser import make_user |
51 os.chdir(userdir) | 51 os.chdir(userdir) |
52 make_user() | 52 make_user() |
53 sys.path.pop(-1) | 53 sys.path.pop(-1) |
54 | 54 |