Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | import os |
| 2 | |
| 3 | from oeqa.runtime.case import OERuntimeTestCase |
Andrew Geissler | 99467da | 2019-02-25 18:54:23 -0600 | [diff] [blame^] | 4 | from oeqa.core.decorator.depends import OETestDepends |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 5 | from oeqa.core.decorator.oeid import OETestID |
| 6 | from oeqa.runtime.decorator.package import OEHasPackage |
| 7 | |
| 8 | class PerlTest(OERuntimeTestCase): |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 9 | @OETestID(208) |
Andrew Geissler | 99467da | 2019-02-25 18:54:23 -0600 | [diff] [blame^] | 10 | @OETestDepends(['ssh.SSHTest.test_ssh']) |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 11 | @OEHasPackage(['perl']) |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 12 | def test_perl_works(self): |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 13 | status, output = self.target.run("perl -e '$_=\"Uryyb, jbeyq\"; tr/a-zA-Z/n-za-mN-ZA-M/;print'") |
| 14 | self.assertEqual(status, 0) |
| 15 | self.assertEqual(output, "Hello, world") |