From 754efcbdcd799f8a8f71805b543c638e2759ad6b Mon Sep 17 00:00:00 2001 From: Viorel Munteanu Date: Fri, 18 Oct 2024 18:59:31 +0300 Subject: app-emulation/virtualbox: add 7.0.22 Bug: https://bugs.gentoo.org/929313 Signed-off-by: Viorel Munteanu --- app-emulation/virtualbox/files/test_python.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 app-emulation/virtualbox/files/test_python.py (limited to 'app-emulation/virtualbox/files/test_python.py') diff --git a/app-emulation/virtualbox/files/test_python.py b/app-emulation/virtualbox/files/test_python.py new file mode 100644 index 000000000000..da03af795501 --- /dev/null +++ b/app-emulation/virtualbox/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 -- cgit v1.2.3