blob: a5f9376062e791d7a85b237615fa91a90db94df5 [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001#
2
3from oeqa.runtime.case import OERuntimeTestCase
4from oeqa.core.decorator.depends import OETestDepends
5from oeqa.runtime.decorator.package import OEHasPackage
6
7class TrustedServicesTest(OERuntimeTestCase):
8
9 def run_test_tool(self, cmd, expected_status=0 ):
10 """ Run a test utility """
11
12 status, output = self.target.run(cmd)
13 self.assertEqual(status, expected_status, msg='\n'.join([cmd, output]))
14
15 @OEHasPackage(['ts-demo'])
16 @OETestDepends(['ssh.SSHTest.test_ssh'])
17 def test_00_ts_demo(self):
18 self.run_test_tool('ts-demo')
19
20 @OEHasPackage(['ts-service-test'])
21 @OETestDepends(['ssh.SSHTest.test_ssh'])
22 def test_01_ts_service_test(self):
23 self.run_test_tool('ts-service-test')
24
25 @OEHasPackage(['ts-uefi-test'])
26 @OETestDepends(['ssh.SSHTest.test_ssh'])
27 def test_02_ts_uefi_test(self):
28 self.run_test_tool('uefi-test')
29
30 @OEHasPackage(['ts-psa-crypto-api-test'])
31 @OETestDepends(['ssh.SSHTest.test_ssh'])
32 def test_03_psa_crypto_api_test(self):
33 # There are a few expected PSA Crypto tests failing
34 self.run_test_tool('psa-crypto-api-test', expected_status=46)
35
36 @OEHasPackage(['ts-psa-its-api-test'])
37 @OETestDepends(['ssh.SSHTest.test_ssh'])
38 def test_04_psa_its_api_test(self):
39 self.run_test_tool('psa-its-api-test')
40
41 @OEHasPackage(['ts-psa-ps-api-test'])
42 @OETestDepends(['ssh.SSHTest.test_ssh'])
43 def test_05_psa_ps_api_test(self):
44 # There are a few expected PSA Storage tests failing
45 self.run_test_tool('psa-ps-api-test', expected_status=46)
46
47 @OEHasPackage(['ts-psa-iat-api-test'])
48 @OETestDepends(['ssh.SSHTest.test_ssh'])
49 def test_06_psa_iat_api_test(self):
50 self.run_test_tool('psa-iat-api-test')