mirror of
https://git.yoctoproject.org/poky
synced 2026-02-11 03:03:02 +01:00
As with the Python test, this can be both better and faster. No need to copy a file, just run a one-liner. (From OE-Core rev: c6eef46747fe58bb2310be4f06d2fa9b67901d72) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 lines
465 B
Python
14 lines
465 B
Python
import os
|
|
|
|
from oeqa.runtime.case import OERuntimeTestCase
|
|
from oeqa.core.decorator.oeid import OETestID
|
|
from oeqa.runtime.decorator.package import OEHasPackage
|
|
|
|
class PerlTest(OERuntimeTestCase):
|
|
@OETestID(208)
|
|
@OEHasPackage(['perl'])
|
|
def test_perl_works(self):
|
|
status, output = self.target.run("perl -e '$_=\"Uryyb, jbeyq\"; tr/a-zA-Z/n-za-mN-ZA-M/;print'")
|
|
self.assertEqual(status, 0)
|
|
self.assertEqual(output, "Hello, world")
|