blob: afeeb180e24746a9f02f47af8b89a4e4f18303e8 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001import os
2
3from oeqa.runtime.case import OERuntimeTestCase
Brad Bishop6e60e8b2018-02-01 10:27:11 -05004from oeqa.core.decorator.oeid import OETestID
5from oeqa.runtime.decorator.package import OEHasPackage
6
7class PerlTest(OERuntimeTestCase):
Brad Bishop6e60e8b2018-02-01 10:27:11 -05008 @OETestID(208)
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08009 @OEHasPackage(['perl'])
Brad Bishop6e60e8b2018-02-01 10:27:11 -050010 def test_perl_works(self):
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080011 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")