mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-24 07:58:24 +02:00
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>
16 lines
455 B
Python
16 lines
455 B
Python
#!/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
|