blob: f11b300836c652589d2d82bfa1077093bd895792 [file] [log] [blame]
Brad Bishopc342db32019-05-15 21:57:59 -04001#
Patrick Williams92b42cb2022-09-03 06:53:57 -05002# Copyright OpenEmbedded Contributors
3#
Brad Bishopc342db32019-05-15 21:57:59 -04004# SPDX-License-Identifier: MIT
5#
6
Brad Bishop6e60e8b2018-02-01 10:27:11 -05007import os
8
9from oeqa.runtime.case import OERuntimeTestCase
Andrew Geissler99467da2019-02-25 18:54:23 -060010from oeqa.core.decorator.depends import OETestDepends
Brad Bishop6e60e8b2018-02-01 10:27:11 -050011from oeqa.runtime.decorator.package import OEHasPackage
12
13class PerlTest(OERuntimeTestCase):
Andrew Geissler99467da2019-02-25 18:54:23 -060014 @OETestDepends(['ssh.SSHTest.test_ssh'])
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080015 @OEHasPackage(['perl'])
Brad Bishop6e60e8b2018-02-01 10:27:11 -050016 def test_perl_works(self):
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080017 status, output = self.target.run("perl -e '$_=\"Uryyb, jbeyq\"; tr/a-zA-Z/n-za-mN-ZA-M/;print'")
18 self.assertEqual(status, 0)
19 self.assertEqual(output, "Hello, world")