blob: 2c6b3b784685a7535232f751eb3ac1e7b964fbb2 [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001#
2# SPDX-License-Identifier: MIT
3#
4
Brad Bishop6e60e8b2018-02-01 10:27:11 -05005import os
6
7from oeqa.runtime.case import OERuntimeTestCase
Andrew Geissler99467da2019-02-25 18:54:23 -06008from oeqa.core.decorator.depends import OETestDepends
Brad Bishop6e60e8b2018-02-01 10:27:11 -05009from oeqa.runtime.decorator.package import OEHasPackage
10
11class PerlTest(OERuntimeTestCase):
Andrew Geissler99467da2019-02-25 18:54:23 -060012 @OETestDepends(['ssh.SSHTest.test_ssh'])
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080013 @OEHasPackage(['perl'])
Brad Bishop6e60e8b2018-02-01 10:27:11 -050014 def test_perl_works(self):
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080015 status, output = self.target.run("perl -e '$_=\"Uryyb, jbeyq\"; tr/a-zA-Z/n-za-mN-ZA-M/;print'")
16 self.assertEqual(status, 0)
17 self.assertEqual(output, "Hello, world")