* [gentoo-commits] repo/gentoo:master commit in: app-emulation/virtualbox-kvm/files/
@ 2025-01-02 10:22 Viorel Munteanu
0 siblings, 0 replies; only message in thread
From: Viorel Munteanu @ 2025-01-02 10:22 UTC (permalink / raw
To: gentoo-commits
commit: cad4692301c1c91ba83e64817f93aef6ef4197ce
Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 2 10:20:50 2025 +0000
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Thu Jan 2 10:22:18 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cad46923
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 <AT> gentoo.org>
app-emulation/virtualbox-kvm/files/test_python.py | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-01-02 10:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-02 10:22 [gentoo-commits] repo/gentoo:master commit in: app-emulation/virtualbox-kvm/files/ Viorel Munteanu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox