2023-02-02 13:59:42 +00:00
|
|
|
#!/usr/bin/python3
|
|
|
|
import os
|
|
|
|
import subprocess
|
|
|
|
|
2023-02-20 00:03:46 +00:00
|
|
|
print("Give BarinkOS A Test Run")
|
2023-02-02 13:59:42 +00:00
|
|
|
|
|
|
|
# list and run build scripts
|
|
|
|
print("Running build-scripts")
|
|
|
|
os.chdir("scripts")
|
|
|
|
scripts=os.listdir()
|
|
|
|
currentScript=os.path.basename(__file__)
|
|
|
|
|
2023-02-20 00:03:46 +00:00
|
|
|
os.chdir("../CoreLib")
|
|
|
|
print("Building CoreLib")
|
|
|
|
subprocess.call("make")
|
2023-02-02 13:59:42 +00:00
|
|
|
|
2023-02-20 00:03:46 +00:00
|
|
|
os.chdir("../kernel")
|
|
|
|
print("Building kernel")
|
|
|
|
subprocess.call("make")
|
2023-02-02 13:59:42 +00:00
|
|
|
|
2023-02-20 00:03:46 +00:00
|
|
|
os.chdir("..")
|
|
|
|
subprocess.call("scripts/update_harddrive.sh", cwd=os.getcwd())
|
|
|
|
subprocess.call("scripts/create_symbol_lookup.sh", cwd=os.getcwd())
|
|
|
|
subprocess.call("scripts/run_qemu.sh", cwd=os.getcwd())
|