blob: 150aa4a49beca85ae4b0b44319e8a7628f31ed26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/bin/env python3
import os
import sys
from conf import conf
from conf import sf
import initialize
import iteration
import kernel
import boot
def test():
initialize.parse_kconfig()
initialize.gen_requred() # Call this to check initial solution
iteration.reset() # Reset iteration
conf.kernel_make_output = True
kernel.make()
conf.boot_output = True
boot.boot()
print('------------------------------')
for nm in os.listdir(sf(conf.output_folder)):
if os.path.isfile(os.path.join(sf(conf.output_folder), nm)):
with open(os.path.join(sf(conf.output_folder), nm), 'r') as f:
print(nm + ':')
for line in f:
print(line, end='')
os.remove(os.path.join(sf(conf.output_folder), nm))
# To be sure also try remove other file
try:
os.remove(sf(conf.solved_file))
except OSError:
pass
#################################################################################
if __name__ == "__main__":
test()
|