mirror of
https://git.yoctoproject.org/meta-security
synced 2026-01-12 03:10:13 +00:00
oeqa: Add a very basic firejail test
Currently check if --help works. RESULTS: RESULTS - ping.PingTest.test_ping: PASSED (0.07s) RESULTS - ssh.SSHTest.test_ssh: PASSED (2.41s) RESULTS - firejail.FirejailTest.test_firejail_basic: PASSED (1.30s) Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
18
lib/oeqa/runtime/cases/firejail.py
Normal file
18
lib/oeqa/runtime/cases/firejail.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Copyright (C) 2022 Armin Kuster <akuster808@gmail.com>
|
||||
#
|
||||
import re
|
||||
|
||||
from oeqa.runtime.case import OERuntimeTestCase
|
||||
from oeqa.core.decorator.depends import OETestDepends
|
||||
from oeqa.runtime.decorator.package import OEHasPackage
|
||||
|
||||
class FirejailTest(OERuntimeTestCase):
|
||||
|
||||
@OEHasPackage(['firejail'])
|
||||
@OEHasPackage(['libseccomp'])
|
||||
@OETestDepends(['ssh.SSHTest.test_ssh'])
|
||||
def test_firejail_basic(self):
|
||||
status, output = self.target.run('firejail --help')
|
||||
msg = ('Firejail --help command does not work as expected. '
|
||||
'Status and output:%s and %s' % (status, output))
|
||||
self.assertEqual(status, 0, msg = msg)
|
||||
Reference in New Issue
Block a user