Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
wendelin.core
Commits
8ba39a60
Commit
8ba39a60
authored
Apr 03, 2015
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prepare to test python code with py.test
We'll use py.test for unit-testing of Python part.
parent
9a293c2d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
Makefile
Makefile
+8
-1
setup.py
setup.py
+4
-0
No files found.
Makefile
View file @
8ba39a60
...
...
@@ -18,6 +18,7 @@
all
:
PYTHON
?=
python
PYTEST
?=
$(PYTHON)
-m
pytest
VALGRIND
?=
valgrind
# use the same C compiler as python
...
...
@@ -60,7 +61,7 @@ CFLAGS := -g -Wall -D_GNU_SOURCE -std=gnu99 -fplan9-extensions
# XXX hack ugly
LOADLIBES
=
lib/bug.c lib/utils.c 3rdparty/ccan/ccan/tap/tap.c
TESTS
:=
$(
patsubst
%.c,%,
$(
wildcard
bigfile/tests/test_
*
.c
))
test
:
test.t test.fault test.asan test.tsan test.vgmem test.vghel test.vgdrd
test
:
test.t test.
py test.
fault test.asan test.tsan test.vgmem test.vghel test.vgdrd
# TODO move XFAIL markers into *.c
...
...
@@ -159,6 +160,12 @@ test.vgdrd: $(TESTS:%=%.vgdrdrun)
$(
call
vgxrun,--tool
=
drd,
$<
)
# run python tests
PYTEST_IGNORE
:=
--ignore
=
3rdparty
--ignore
=
build
--ignore
=
t
test.py
:
bigfile/_bigfile.so
$(PYTEST)
$(PYTEST_IGNORE)
# test pagefault for double/real faults - it should crash
tfault
:=
bigfile/tests/tfault
# XXX FAULTS extraction fragile
...
...
setup.py
View file @
8ba39a60
...
...
@@ -185,6 +185,10 @@ setup(
'numpy'
,
# lib/mem
],
extras_require
=
{
'test'
:
[
'pytest'
],
},
cmdclass
=
{
'build_ext'
:
build_ext
,
'll_build_ext'
:
_build_ext
,
# original build_ext for Makefile
'build_py'
:
build_py
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment