From 060e231920000fe77776eae77fb1b63a4cf93f92 Mon Sep 17 00:00:00 2001 From: krande Date: Fri, 8 Apr 2022 10:54:59 +0200 Subject: [PATCH] add test script bat/sh. Continue work in PR --- conda/meta.yaml | 7 ++++--- conda/run_test.bat | 2 ++ conda/run_test.sh | 4 ++++ 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 conda/run_test.bat create mode 100644 conda/run_test.sh diff --git a/conda/meta.yaml b/conda/meta.yaml index e4705b50dd..975e27e493 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -44,12 +44,13 @@ requirements: test: imports: - ifcopenshell + requires: + - pytest + - pytest-cov source_files: - test - src/ifcopenshell-python - commands: - - cd test && python tests.py - - cd src/ifcopenshell-python && mv ifcopenshell ifcopenshell-local && make test + about: home: http://ifcopenshell.org license: LGPL-3.0-or-later diff --git a/conda/run_test.bat b/conda/run_test.bat new file mode 100644 index 0000000000..2e2f4d8b44 --- /dev/null +++ b/conda/run_test.bat @@ -0,0 +1,2 @@ +cd test && python tests.py +cd ../src/ifcopenshell-python && mv ifcopenshell ifcopenshell-local && make test \ No newline at end of file diff --git a/conda/run_test.sh b/conda/run_test.sh new file mode 100644 index 0000000000..17f1cbefb4 --- /dev/null +++ b/conda/run_test.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cd test && python tests.py +cd ../src/ifcopenshell-python && mv ifcopenshell ifcopenshell-local && make test