summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/cases/perl.py
blob: be3287f2269e4c61784af4ab80787b2146fdc30b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import os

from oeqa.runtime.case import OERuntimeTestCase
from oeqa.core.decorator.depends import OETestDepends
from oeqa.core.decorator.oeid import OETestID
from oeqa.runtime.decorator.package import OEHasPackage

class PerlTest(OERuntimeTestCase):
    @OETestID(208)
    @OETestDepends(['ssh.SSHTest.test_ssh'])
    @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")