diff options
| author | Viorel Munteanu <ceamac@gentoo.org> | 2025-01-02 12:20:50 +0200 |
|---|---|---|
| committer | Viorel Munteanu <ceamac@gentoo.org> | 2025-01-02 12:22:18 +0200 |
| commit | cad4692301c1c91ba83e64817f93aef6ef4197ce (patch) | |
| tree | 961aa653be91146649c42f65140fb20f71c72c1e /app-emulation/virtualbox-kvm/files/test_python.py | |
| parent | a98330b480c1ad446254924f41685d7459f51cb6 (diff) | |
| download | gentoo-cad4692301c1c91ba83e64817f93aef6ef4197ce.tar.gz gentoo-cad4692301c1c91ba83e64817f93aef6ef4197ce.tar.bz2 gentoo-cad4692301c1c91ba83e64817f93aef6ef4197ce.zip | |
app-emulation/virtualbox-kvm: add missing test file
I forgot to add this when updating to branch 7.1.
Closes: https://bugs.gentoo.org/947335
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'app-emulation/virtualbox-kvm/files/test_python.py')
| -rw-r--r-- | app-emulation/virtualbox-kvm/files/test_python.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app-emulation/virtualbox-kvm/files/test_python.py b/app-emulation/virtualbox-kvm/files/test_python.py new file mode 100644 index 000000000000..da03af795501 --- /dev/null +++ b/app-emulation/virtualbox-kvm/files/test_python.py @@ -0,0 +1,16 @@ +#!/usr/bin/python3 + +# Smoke test for python: +# Test if the python bindings have been built and if python is crashing when creating a manager + +def test_module_was_built(): + import os + assert os.path.isfile(os.getenv('VBOX_PROGRAM_PATH') + '/VBoxPython3.so') + +def test_VirtualBoxManager(): + from vboxapi import VirtualBoxManager + try: + manager = VirtualBoxManager() + except: + # if it reaches here, it did not crash + pass |
