Skip to content
Snippets Groups Projects
Commit 3e5bcf9b authored by Simon Rose's avatar Simon Rose
Browse files

Switching to pytest

parent e64cdf95
No related branches found
No related tags found
1 merge request!38E3-233: Add tests
......@@ -18,4 +18,7 @@ tools/ess-env.conf
.vscode
require-ess/require.Makefile
require-ess/Db/*.db
require-ess/Db/*.d
\ No newline at end of file
require-ess/Db/*.d
cellMods
*.log
__pycache__
\ No newline at end of file
.PHONY: default
default: test
.PHONY: test
test: check_env
${MAKE} -C wrapper init
${MAKE} -C wrapper clean
${MAKE} -C wrapper patch
${MAKE} -C wrapper cellinstall
.PHONY: check_env
check_env: guard-EPICS_BASE guard-E3_REQUIRE_VERSION
@#$(or $(wildcard ${EPICS_BASE}/require/${E3_REQUIRE_VERSION}/bin/setE3Env.bash), $(error setE3Env.bash not found. Please check your version of base and require.))
guard-%:
@#$(or ${$*}, $(error $* is not set))
File moved
diff --git tests/test_build/wrapper/build/database.db tests/test_build/wrapper/build/database.db
diff --git database.db database.db
index 1806ff6..8701832 100644
--- tests/test_build/wrapper/build/database.db
+++ tests/test_build/wrapper/build/database.db
--- database.db
+++ database.db
@@ -1,3 +1,3 @@
record(ai, "TEST") {
-
......
import pytest
from distutils import dir_util
@pytest.fixture
def e3_wrapper(tmpdir):
dir_util.copy_tree("data", str(tmpdir))
yield tmpdir
def test_patch(e3_wrapper):
print(e3_wrapper)
assert False
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment