aboutsummaryrefslogtreecommitdiff
path: root/scripts/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/test.py')
-rwxr-xr-xscripts/test.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/scripts/test.py b/scripts/test.py
index 5b94df2..b01a8b6 100755
--- a/scripts/test.py
+++ b/scripts/test.py
@@ -7,15 +7,25 @@ from conf import sf
import initialize
import kernel
import boot
+import database
def test():
initialize.base()
initialize.parse_kconfig()
- initialize.gen_requred() # Call this to check initial solution
+ print("-- Make --")
conf.kernel_make_output = True
- kernel.make()
+ img = kernel.make('test')
+ try:
+ os.remove(sf(conf.jobfolder_linux_image))
+ except FileNotFoundError:
+ pass
+ os.symlink(os.path.join(sf(conf.build_folder), img),
+ sf(conf.jobfolder_linux_image))
conf.boot_output = True
- boot.boot()
+ conf.parse_output = True
+ print("-- Boot --")
+ config = database.Config('0', 'test', img)
+ boot.boot(config, False)
#################################################################################