File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,12 +10,19 @@ install: true,
1010subdir : ' pyxcrypt'
1111)
1212
13- install_data (
13+ py.install_sources (
1414 ' src/pyxcrypt/__init__.py' ,
15- install_dir : py.get_install_dir() / ' pyxcrypt'
15+ subdir : ' pyxcrypt'
1616)
1717
1818install_data (
1919 ' README.md' ,
2020 install_dir : py.get_install_dir() / ' pyxcrypt'
2121)
22+
23+ python_paths = [join_paths (meson .current_build_dir(), ' ../src/' )]
24+ run_tests = find_program (' tests/run_tests.sh' )
25+ test (' unit-tests' ,
26+ run_tests,
27+ args : [' ../tests' ],
28+ )
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ mkdir -p /tmp/test_env
4+ meson compile
5+ DESTDIR=/tmp/test_env meson install
6+ PYTHONPATH=/tmp/test_env/usr/local/lib/python3/site-packages:/tmp/test_env/usr/local/lib64/python3/site-packages python3 -P -m unittest discover -s " $1 " -v
You can’t perform that action at this time.
0 commit comments