]> rtime.felk.cvut.cz Git - linux-conf-perf.git/commitdiff
First implementation of test.py
authorKarel Kočí <cynerd@email.cz>
Mon, 27 Apr 2015 10:17:23 +0000 (12:17 +0200)
committerKarel Kočí <cynerd@email.cz>
Mon, 27 Apr 2015 10:17:23 +0000 (12:17 +0200)
Not yet finished.

Makefile
scripts/test.py [new file with mode: 0644]

index 98af2c01a42ff2daee1c2d66edcf96e246a178a6..1fee43de4184be7811818a8424b0e5b2af7f69c4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,7 @@ deflinux:
        ARCH=$(SRCARCH) $(MAKE) -C linux defconfig
 
 test: $(INITRAM)
-       @ #TODO
+       scripts/test.py
 
 run: kconfig_parser write_config $(INITRAM)
        scripts/main_loop.py
diff --git a/scripts/test.py b/scripts/test.py
new file mode 100644 (file)
index 0000000..5c70d13
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/env python3
+import os
+import sys
+
+from conf import conf
+import initialize
+import kernel
+import boot
+
+def test():
+       initialize.gen_requred() # Call this to check initial solution
+       kernel.make()
+
+#################################################################################
+
+if __name__ == "__main__":
+       test()