blob: be3287f2269e4c61784af4ab80787b2146fdc30b [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001import os
2
3from oeqa.runtime.case import OERuntimeTestCase
Andrew Geissler99467da2019-02-25 18:54:23 -06004from oeqa.core.decorator.depends import OETestDepends
Brad Bishop6e60e8b2018-02-01 10:27:11 -05005from oeqa.core.decorator.oeid import OETestID
6from oeqa.runtime.decorator.package import OEHasPackage
7
8class PerlTest(OERuntimeTestCase):
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009 @OETestID(208)
Andrew Geissler99467da2019-02-25 18:54:23 -060010 @OETestDepends(['ssh.SSHTest.test_ssh'])
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080011 @OEHasPackage(['perl'])
Brad Bishop6e60e8b2018-02-01 10:27:11 -050012 def test_perl_works(self):
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080013 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")