mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
tests: Test that tools run when testing wheels
Intended to catch issues like #1504
This commit is contained in:
parent
8cbf93162a
commit
1cb2554c48
19
tests/test_tools.py
Normal file
19
tests/test_tools.py
Normal file
@ -0,0 +1,19 @@
|
||||
import pytest
|
||||
import subprocess
|
||||
|
||||
# Currently only works when Panda was installed from wheel
|
||||
panda3d_tools = pytest.importorskip("panda3d_tools")
|
||||
|
||||
|
||||
@pytest.mark.skipif(not hasattr(panda3d_tools, 'bam_info'),
|
||||
reason="requires bam-info")
|
||||
def test_bam_info():
|
||||
output = subprocess.check_output(['bam-info', '-h'], stderr=subprocess.STDOUT).strip()
|
||||
assert output.startswith(b"This program scans one or more Bam files")
|
||||
|
||||
|
||||
@pytest.mark.skipif(not hasattr(panda3d_tools, 'pzip'),
|
||||
reason="requires pzip")
|
||||
def test_pzip():
|
||||
output = subprocess.check_output(['pzip', '-h'], stderr=subprocess.STDOUT).strip()
|
||||
assert output.startswith(b"This program compresses the named file")
|
Loading…
x
Reference in New Issue
Block a user