Skip to content

os-bsd-anysense.sh basic *ense OS support test suite #891

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 8, 2025

Conversation

matmacieje
Copy link
Contributor

scripts/freebsd/preseed_opnsense.sh: bsdinstall customization, can be applied for OPNsense, pfSense & FreeBSD. Requires running FreeBSD-based system.

lib/bios/menus.robot - added pfSense terminal GUI encoding support.

@matmacieje matmacieje marked this pull request as draft June 16, 2025 10:08
@matmacieje matmacieje mentioned this pull request Jun 18, 2025
Closed
@matmacieje matmacieje force-pushed the os_bsd_anysense0002 branch 2 times, most recently from 257e79b to 559dfb1 Compare June 30, 2025 11:05
@matmacieje
Copy link
Contributor Author

@matmacieje
Copy link
Contributor Author

@matmacieje matmacieje force-pushed the os_bsd_anysense0002 branch from 559dfb1 to cbf5c90 Compare June 30, 2025 13:04
@matmacieje matmacieje requested review from krystian-hebel, macpijan and filipleple and removed request for krystian-hebel June 30, 2025 13:06
@matmacieje matmacieje marked this pull request as ready for review July 2, 2025 10:15
@macpijan macpijan closed this Jul 3, 2025
@macpijan macpijan deleted the os_bsd_anysense0002 branch July 3, 2025 13:46
@macpijan macpijan restored the os_bsd_anysense0002 branch July 3, 2025 14:25
@macpijan macpijan reopened this Jul 3, 2025
@matmacieje matmacieje force-pushed the os_bsd_anysense0002 branch from 7edb5da to c25de98 Compare July 7, 2025 13:37
@matmacieje matmacieje requested a review from filipleple July 7, 2025 14:03
@matmacieje matmacieje requested a review from krystian-hebel July 7, 2025 14:54
@filipleple
Copy link
Member

filipleple commented Jul 8, 2025

LGTM now, though some CI fails with

[ ERROR ] Error in file '/home/user/actions-runner/_work/open-source-firmware-validation/open-source-firmware-validation/dasharo-compatibility/os-opnsense.robot' on line 4: Importing library 'robot.libraries.Dialogs' failed: ImportError: libtk8.6.so: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "/home/user/actions-runner/_work/_tool/Python/3.11.5/x64/lib/python3.11/tkinter/__init__.py", line 38, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
    ^^^^^^^^^^^^^^^

I think tkinter has to be added to requirements.txt, but I've yet to confirm this

EDIT: nope, this means that tkinter is not installed in the OS. Not sure how to do this on the CI machine @macpijan ? Also this would be just a temporary fix, since we need to skip semi-automated tests that use Dialogs on CI anyways

@matmacieje matmacieje requested a review from filipleple July 8, 2025 08:26
Copy link
Member

@filipleple filipleple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @macpijan importing tkinter causes a fail in CI, but that's because a system package is missing from the runner platform. I'm not sure whether it can be resolved in this PR or we have to log onto the runner platform and install manually?

scripts/freebsd/preseed_opnsense.sh: bsdinstall customization,
can be applied for OPNsense, pfSense & FreeBSD. Requires running
FreeBSD-based system.

lib/bios/menus.robot - added pfSense terminal GUI encoding support.

Signed-off-by: Mateusz Maciejewski <[email protected]>
dasharo-compatibility/os-bsd-anysense.robot: test IDs fixed
lib/bsd.robot: introducing keyword lib for FreBSD derivatives

Signed-off-by: Mateusz Maciejewski <[email protected]>
dasharo-compatibility/os-pfsense.robot: preseed test and boot time
test cases added
dasharo-compatibility/os-opnsense.robot: boot time measure tests
lib/bios/menus.py: Power state after AC loss added
lib/bsd.robot: new, separate file for installer OS & shell keywords
os-config/50*.py: OPNsense & pfSense prompts & credentials, incl.
installer
scripts/freebsd.preseed_opnsene.sh: license header added

Signed-off-by: Mateusz Maciejewski <[email protected]>
@filipleple filipleple force-pushed the os_bsd_anysense0002 branch from 9d0b8a7 to 6fb1d7a Compare July 8, 2025 13:02
@filipleple filipleple merged commit 6fb1d7a into develop Jul 8, 2025
@filipleple filipleple deleted the os_bsd_anysense0002 branch July 8, 2025 13:02
@krystian-hebel
Copy link
Contributor

Few questions:

  • what about BOS, BPS and BPV test cases that are already present in JSON?
  • what about OPN001.001, OPN001.002, OPN002.001, OPN002.002, test cases that are already in JSON, but do something else than new tests?
  • same question for PFS
  • why the entries aren't sorted alphabetically, as described in the documentation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants