1# 2# Copyright OpenEmbedded Contributors 3# 4# SPDX-License-Identifier: MIT 5# 6 7from oeqa.sdk.case import OESDKTestCase 8 9from oeqa.utils.subprocesstweak import errors_have_output 10errors_have_output() 11 12class PerlTest(OESDKTestCase): 13 def setUp(self): 14 self.ensure_host_package("perl") 15 16 def test_perl(self): 17 cmd = "perl -e '$_=\"Uryyb, jbeyq\"; tr/a-zA-Z/n-za-mN-ZA-M/;print'" 18 output = self._run(cmd) 19 self.assertEqual(output, "Hello, world") 20