-
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
1 parent
98d63e9
commit b6d25f6
Showing
10 changed files
with
69 additions
and
43 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
2 changes: 1 addition & 1 deletion
2
...oject_slug }}/include/{{ cookiecutter.project_slug }}/{{ cookiecutter.project_slug }}.hpp
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,3 +1,3 @@ | ||
#pragma once | ||
|
||
#include "{{ cookiecutter.project_slug }}_mm.hpp" | ||
#include <{{ cookiecutter.project_slug }}/{{ cookiecutter.project_slug }}_mm.hpp> |
File renamed without changes.
9 changes: 4 additions & 5 deletions
9
...roject_slug }}/src/{{ cookiecutter.project_slug }}/{{ cookiecutter.project_slug }}_mm.cpp
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
16 changes: 0 additions & 16 deletions
16
...kiecutter.project_slug }}/tests/integration_tests/test_{{ cookiecutter.project_slug }}.py
This file was deleted.
Oops, something went wrong.
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
33 changes: 33 additions & 0 deletions
33
...s/integration_tests/{{cookiecutter.project_slug}}/test_{{ cookiecutter.project_slug }}.py
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,33 @@ | ||
"""Driver for integration tests. | ||
This file drives your integration tests. To run the integration tests (assuming | ||
your Python path is setup correctly) simply type: | ||
.. code-block:: terminal | ||
python test_{{ cookiecutter.project_slug }}.py | ||
The driver assumes that your integration tests live in importable Python | ||
modules next to this file. | ||
""" | ||
|
||
import os | ||
import parallelzone as pz | ||
import sys | ||
import unittest | ||
|
||
if __name__ == '__main__': | ||
|
||
# Ensure a RuntimeView object persists through all tests | ||
rv = pz.runtime.RuntimeView() | ||
|
||
# Works out the path to the directory containing the driver | ||
my_dir = os.path.dirname(os.path.realpath(__file__)) | ||
|
||
#Find and run the tests, then return the result | ||
loader = unittest.TestLoader() | ||
tests = loader.discover(my_dir) | ||
testrunner = unittest.runner.TextTestRunner() | ||
ret = not testrunner.run(tests).wasSuccessful() | ||
sys.exit(ret) |