[KERNEL][TEST] Rename umka_shell to umka_shell.exe

git-svn-id: svn://kolibrios.org@9339 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Magomed Kostoev (mkostoevr) 2021-11-27 20:04:04 +00:00
parent 147fb23071
commit 17af3bd52c

View File

@ -190,7 +190,7 @@ def build_umka_asm():
def build_umka(): def build_umka():
if not enable_umka: if not enable_umka:
return return
if os.path.exists("umka_shell"): if os.path.exists("umka_shell.exe"):
return return
os.makedirs("umka/build/linux", exist_ok = True) os.makedirs("umka/build/linux", exist_ok = True)
sources = [ "umka_shell.c", sources = [ "umka_shell.c",
@ -209,7 +209,7 @@ def build_umka():
build_umka_asm() build_umka_asm()
objects.append("umka/build/umka.o") objects.append("umka/build/umka.o")
objects = " ".join(objects) objects = " ".join(objects)
command = f"gcc -m32 -no-pie -o umka_shell -static -T umka/umka.ld {objects}" command = f"gcc -m32 -no-pie -o umka_shell.exe -static -T umka/umka.ld {objects}"
print(command) print(command)
os.system(command) os.system(command)
@ -227,7 +227,7 @@ def run_umka_test(root_dir, test_file_path):
test = create_relocated(root_dir, test_file_path) test = create_relocated(root_dir, test_file_path)
ref_log = create_relocated(root_dir, f"{test_file_path[:-2]}.ref.log") ref_log = create_relocated(root_dir, f"{test_file_path[:-2]}.ref.log")
out_log = f"{test_file_path[:-2]}.out.log.o" out_log = f"{test_file_path[:-2]}.out.log.o"
os.system(f"./umka_shell < {test} > {out_log}") os.system(f"./umka_shell.exe < {test} > {out_log}")
if os.system(f"cmp {ref_log} {out_log}") != 0: if os.system(f"cmp {ref_log} {out_log}") != 0:
print(f"FAILURE: {test_file_path}\n", end = "") print(f"FAILURE: {test_file_path}\n", end = "")
else: else: