Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
clg0803
Compiler
Commits
9e71842b
Commit
9e71842b
authored
3 years ago
by
ATRI
Browse files
Options
Download
Patches
Plain Diff
update script
parent
0f6d31ed
master
CI
backend-opt
backend-opt-divconst
backend-opt-new
backend_TwoRegAllocator
backend_reverse
backend_temporary
bugfix-07150
bugfix0714
debug
dev-dph0713
dev-opt
dev-opt0713
fronte-opt-deadcode
fronted-opt-deadcode
fronted-opt-shj
fronted-shj
frontend-opt-GCM
frontend-opt-LCSSA
frontend-opt-dph-0725
new_master
new_submit
new_version
pre_version
revert-c09b790a
submit
test-phi
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CI/test.py
+34
-0
CI/test.py
with
34 additions
and
0 deletions
+34
-0
CI/test.py
+
34
−
0
View file @
9e71842b
import
subprocess
from
tester
import
Tester
from
presenter
import
Presenter
from
tester
import
get_sy_testcases
from
pretty_print
import
Print_C
thu_compiler
=
"build/bin/thu_compiler "
ustc_compiler
=
"build/bin/ustc_compiler "
ustc_compiler_no_vec
=
"build/bin/ustc_compiler_no_vec "
clang_llvm_scheme
=
{
"scheme"
:
"clang_llvm"
,
"frontend_instr"
:
"clang -x c -c -Ofast -mcpu=cortex-a72 -S -emit-llvm -include {header} {sy} -o {ir}"
,
"emit_llvm_ir"
:
True
}
all_schemes
=
[
clang_llvm_scheme
]
# gcc_gcc_scheme, ustc_ustc_scheme, ustc_ustc_no_vec_scheme]
testers
=
[]
Print_C
.
print_header
(
"[Removing old data...]
\n\n
"
)
subprocess
.
run
(
"rm -rf build/test_results/"
.
split
())
subprocess
.
run
(
"rm -rf build/output/"
.
split
())
subprocess
.
run
(
"rm -rf build/log/compile_log"
.
split
())
subprocess
.
run
(
"rm -rf build/log/run_log"
.
split
())
subprocess
.
run
(
"rm -rf build/log/test_result.log"
.
split
())
for
scheme
in
all_schemes
:
tester
=
Tester
(
scheme
,
is_trivial
=
True
)
testers
.
append
(
tester
)
tester
.
test
()
# Tester(ustc_llvm_scheme).test_ir()
presenter
=
Presenter
(
schemes
=
[
scheme
[
"scheme"
]
for
scheme
in
all_schemes
],
testcases
=
get_sy_testcases
())
presenter
.
present_all_testcases
()
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets