Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
typon-compiler
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
typon
typon-compiler
Commits
3ae054f1
Commit
3ae054f1
authored
Sep 11, 2023
by
Tom Niget
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README and .env.example
parent
4e714a9c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
README.md
README.md
+3
-1
trans/.env.example
trans/.env.example
+1
-1
trans/test_runner.py
trans/test_runner.py
+1
-1
No files found.
README.md
View file @
3ae054f1
...
@@ -28,4 +28,6 @@ Install the dependencies using `pip3 install -r requirements.txt`.
...
@@ -28,4 +28,6 @@ Install the dependencies using `pip3 install -r requirements.txt`.
## Test harness
## Test harness
From inside the
`trans`
directory, run
`python3 test_runner.py`
.
`cd`
into the
`trans`
directory, set up your
`.env`
file (you can copy the
`.env.example`
file), and run
`python3 test_runner.py`
.
\ No newline at end of file
If you're getting include errors, make sure you've cloned the runtime submodule. If you forgot, run
`git submodule update --init --recursive`
.
\ No newline at end of file
trans/.env.example
View file @
3ae054f1
ALT_RUNNER='
ssh tom@ubuntu-nexedi "cd /mnt/hgfs/C/GitHub/typon/trans; clang++-16 -O3 -Wno-deprecated-declarations -Wno-return-type -Wno-unused-result -I../rt/include -std=c++20 $(python3 -m pybind11 --includes) -o {name_bin} {name_cpp_posix} -pthread -luring -lfmt -lssl -lcrypto -lpython3.10 && {run_file} && {name_bin}"
'
ALT_RUNNER='
clang++-16 -O3 -Wno-deprecated-declarations -Wno-return-type -Wno-unused-result -std=c++20 $(python3 __main__.py --cpp-flags) -o {name_bin} {name_cpp_posix} && {run_file} && {name_bin}
'
\ No newline at end of file
trans/test_runner.py
View file @
3ae054f1
...
@@ -25,7 +25,7 @@ args = parser.parse_args()
...
@@ -25,7 +25,7 @@ args = parser.parse_args()
def
run_tests
():
def
run_tests
():
for
path
in
Path
(
'tests'
).
glob
(
'*.py'
):
for
path
in
sorted
(
Path
(
'tests'
).
glob
(
'*.py'
)
):
if
args
.
only
and
path
.
stem
not
in
args
.
only
:
if
args
.
only
and
path
.
stem
not
in
args
.
only
:
continue
continue
print
(
path
.
name
)
print
(
path
.
name
)
...
...
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