-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Allow chaining of commands * Add tests * Update readme
- Loading branch information
1 parent
ba490de
commit 93ac9d2
Showing
4 changed files
with
78 additions
and
11 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
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
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,31 @@ | ||
import pytest | ||
import subprocess | ||
|
||
from tests.fixtures import create_package | ||
from tests import util | ||
|
||
|
||
def run(args): | ||
print("Running with args:", args) | ||
p = subprocess.run(args, shell=True) | ||
assert p.returncode == 0 | ||
|
||
|
||
@pytest.mark.parametrize("create_package", [util.get_simple_package_path()], indirect=True) | ||
def test_simple_package(create_package): | ||
run("sinol-make gen run") | ||
run("sinol-make gen prog/abcingen.cpp run --tests abc1a.in") | ||
run("sinol-make run --tests abc1a.in run --tests abc1a.in abc2a.in ingen prog/abcingen.cpp") | ||
run("sinol-make gen run export --no-statement") | ||
|
||
|
||
@pytest.mark.parametrize("create_package", [util.get_inwer_package_path()], indirect=True) | ||
def test_inwer_package(create_package): | ||
run("sinol-make ingen inwer run") | ||
run("sinol-make ingen prog/weringen.cpp inwer prog/werinwer.cpp --tests wer1a.in run --tests wer2a.in") | ||
run("sinol-make ingen inwer run export --no-statement") | ||
|
||
|
||
@pytest.mark.parametrize("create_package", [util.get_doc_package_path()], indirect=True) | ||
def test_doc_package(create_package): | ||
run("sinol-make doc doc/doczad.tex export") |