1# 2# Copyright OpenEmbedded Contributors 3# 4# SPDX-License-Identifier: MIT 5# 6 7import os 8 9from oeqa.runtime.case import OERuntimeTestCase 10from oeqa.core.decorator.depends import OETestDepends 11from oeqa.runtime.decorator.package import OEHasPackage 12 13class PerlTest(OERuntimeTestCase): 14 @OETestDepends(['ssh.SSHTest.test_ssh']) 15 @OEHasPackage(['perl']) 16 def test_perl_works(self): 17 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") 20