Skip to content

Commit

Permalink
Restore libtbx.python run_tests.py capability.
Browse files Browse the repository at this point in the history
  • Loading branch information
nksauter committed May 23, 2018
1 parent 0e516db commit 1e084a6
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions run_tests.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
from __future__ import absolute_import, division, print_function

from libtbx.test_utils.pytest import discover
# from libtbx.test_utils.pytest import discover

tst_list = [
"$D/annlib_adaptbx/sample.py",
"$D/annlib_adaptbx/self_match.py",
] + discover()
]

def run():
from libtbx import test_utils
import libtbx.load_env

build_dir = libtbx.env.under_build("annlib_adaptbx")
dist_dir = libtbx.env.dist_path("annlib_adaptbx")
test_utils.run_tests(build_dir, dist_dir, tst_list)

if (__name__ == "__main__"):
run()

0 comments on commit 1e084a6

Please sign in to comment.