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