Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lwc
/
compare
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d4fb65b1
authored
Jul 09, 2019
by
Enrico Pozzobon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
blackpill template builds
parent
cac7c7a9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
compile_all.py
+8
-4
templates/blackpill/Src/main.c
+0
-0
No files found.
compile_all.py
View file @
d4fb65b1
...
...
@@ -8,7 +8,7 @@ import random
import
subprocess
def
build
(
algo_dir
,
template_dir
=
"templates/linux"
):
def
build
(
algo_dir
,
template_dir
):
# create a new directory for the build
build_dir
=
None
while
build_dir
is
None
:
...
...
@@ -131,8 +131,8 @@ def main(argv):
# For testing, we only do the first
files
=
files
[:
1
]
# For testing, we only do the first
5
files
=
files
[:
5
]
# Clear the build directory as it is a leftover from the previous execution
if
os
.
path
.
isdir
(
'build'
):
...
...
@@ -148,11 +148,15 @@ def main(argv):
for
t
,
d
in
files
:
print
()
print
(
d
)
b
=
build
(
d
)
b
=
build
(
d
,
template_dir
)
test_script
.
write
(
"./test.py
%
s
%
s
\n
"
%
(
t
,
os
.
path
.
join
(
b
,
'test'
)))
st
=
os
.
stat
(
test_script_path
)
os
.
chmod
(
test_script_path
,
st
.
st_mode
|
stat
.
S_IEXEC
)
print
()
print
()
print
(
"Now execute '
%
s ' to start the test"
%
test_script_path
)
if
__name__
==
"__main__"
:
sys
.
exit
(
main
(
sys
.
argv
))
templates/blackpill/Src/main.c
View file @
d4fb65b1
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment