From f5f2a9a299fa0a1e5f072c415eb8e021a44d3cc2 Mon Sep 17 00:00:00 2001 From: 15750821961 Date: Fri, 19 Nov 2021 11:29:58 +0800 Subject: [PATCH] change path of test.py --- Student/task3/{test => }/test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename Student/task3/{test => }/test.py (95%) diff --git a/Student/task3/test/test.py b/Student/task3/test.py similarity index 95% rename from Student/task3/test/test.py rename to Student/task3/test.py index 2341fed..cede8f7 100644 --- a/Student/task3/test/test.py +++ b/Student/task3/test.py @@ -3,7 +3,7 @@ import subprocess import os IRBuild_ptn = '"{}" "-emit-ir" "-o" "{}" "{}"' -ExeGen_ptn = '"clang" "{}" "-o" "{}" "{}" "../../../lib/lib.c"' +ExeGen_ptn = '"clang" "{}" "-o" "{}" "{}" "../../lib/lib.c"' Exe_ptn = '"{}"' def eval(EXE_PATH, TEST_BASE_PATH, optimization): @@ -75,14 +75,14 @@ if __name__ == "__main__": # you can only modify this to add your testcase TEST_DIRS = [ - './Easy/', + './test/', ] # you can only modify this to add your testcase optimization = "-O0" # -O0 -O1 -O2 -O3 -O4(currently = -O3) -Ofast for TEST_BASE_PATH in TEST_DIRS: testcases = {} # { name: need_input } - EXE_PATH = os.path.abspath('../../../build/SysYFCompiler') + EXE_PATH = os.path.abspath('../../build/SysYFCompiler') testcase_list = list(map(lambda x: x.split('.'), os.listdir(TEST_BASE_PATH))) testcase_list.sort() for i in range(len(testcase_list)):