-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Joel Lefkowitz
committed
Apr 14, 2024
1 parent
42aa4ea
commit a89ac6c
Showing
11 changed files
with
49 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
from .models.build import Build | ||
from .models.cli import CLI | ||
from .models.flag import Flag | ||
from .models.routine import Routine | ||
from .models.script import Script | ||
from .models.target import Target | ||
from .models.builds.build import Build | ||
from .models.builds.target import Target | ||
from .models.scripts.flag import Flag | ||
from .models.scripts.routine import Routine | ||
from .models.scripts.script import Script | ||
from .models.tasks import Tasks | ||
from .services.compiler import compiler | ||
from .services.environment import inherit |
Empty file.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from textwrap import dedent | ||
from src.models.tasks import Tasks | ||
from src.models.builds.build import Build | ||
|
||
|
||
def test_targets(): | ||
assert str(Tasks([Build("main", [])])) == dedent( | ||
""" | ||
builds: | ||
main | ||
targets: | ||
- | ||
scripts: | ||
- | ||
routines: | ||
- | ||
flags: | ||
- | ||
""" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
from src.services.compiler import compiler | ||
from src.services.environment import inherit | ||
|
||
|
||
def test_compiler(): | ||
assert compiler("c++11", ["all"], ["deprecated-declarations"],) == [ | ||
assert compiler("c++11", ["all"], ["deprecated-declarations"]) == [ | ||
"-std=c++11", | ||
"-Wall", | ||
"-Wno-deprecated-declarations", | ||
] | ||
|
||
|
||
def test_environment(): | ||
assert "PATH" in inherit() |