From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=BDupka?= Subject: [virt-test][PATCH 5/7] virt: Update Cartesian config unittest named variants Date: Fri, 29 Mar 2013 18:14:08 +0100 Message-ID: <1364577250-2637-6-git-send-email-jzupka@redhat.com> References: <1364577250-2637-1-git-send-email-jzupka@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE To: virt-test-devel@redhat.com, kvm@vger.kernel.org, kvm-autotest@redhat.com, lmr@redhat.com, ldoktor@redhat.com, jzupka@redhat.com, ehabkost@redhat.com, pbonzini@redhat.com Return-path: Received: from mx1.redhat.com ([209.132.183.28]:38318 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756013Ab3C2RO1 (ORCPT ); Fri, 29 Mar 2013 13:14:27 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r2THER2O030690 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 29 Mar 2013 13:14:27 -0400 In-Reply-To: <1364577250-2637-1-git-send-email-jzupka@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Signed-off-by: Ji=C5=99=C3=AD =C5=BDupka --- virttest/cartesian_config_unittest.py | 79 +++++++++++++++++++++++++++= ++++++++ 1 file changed, 79 insertions(+) diff --git a/virttest/cartesian_config_unittest.py b/virttest/cartesian= _config_unittest.py index afc1b14..98c1efc 100755 --- a/virttest/cartesian_config_unittest.py +++ b/virttest/cartesian_config_unittest.py @@ -86,6 +86,85 @@ class CartesianConfigTest(unittest.TestCase): ) =20 =20 + def testNameVariant(self): + self._checkStringDump(""" + variants name=3Dtests: # All tests in configuration + - wait: + run =3D "wait" + variants: + - long: + time =3D short_time + - short: long + time =3D logn_time + - test2: + run =3D "test1" + =20 + variants name=3Dvirt_system: + - @linux: + - windows: + =20 + variants name=3Dhost_os: + - linux: + image =3D linux + - windows: + image =3D windows + =20 + only host_os>linux + """, + [ + {'dep': [], + 'host_os': 'linux', + 'image': 'linux', + 'name': 'host_os>linux.virt_system>linux.tests>wait.l= ong', + 'run': 'wait', + 'shortname': 'host_os>linux.tests>wait.long', + 'tests': 'wait', + 'time': 'short_time', + 'virt_system': 'linux'}, + {'dep': ['host_os>linux.virt_system>linux.tests>wait.l= ong'], + 'host_os': 'linux', + 'image': 'linux', + 'name': 'host_os>linux.virt_system>linux.tests>wait.s= hort', + 'run': 'wait', + 'shortname': 'host_os>linux.tests>wait.short', + 'tests': 'wait', + 'time': 'logn_time', + 'virt_system': 'linux'}, + {'dep': [], + 'host_os': 'linux', + 'image': 'linux', + 'name': 'host_os>linux.virt_system>linux.tests>test2'= , + 'run': 'test1', + 'shortname': 'host_os>linux.tests>test2', + 'tests': 'test2', + 'virt_system': 'linux'}, + {'dep': [], + 'host_os': 'linux', + 'image': 'linux', + 'name': 'host_os>linux.virt_system>windows.tests>wait= =2Elong', + 'run': 'wait', + 'shortname': 'host_os>linux.virt_system>windows.tests= >wait.long', + 'tests': 'wait', + 'time': 'short_time', + 'virt_system': 'windows'}, + {'dep': ['host_os>linux.virt_system>windows.tests>wait= =2Elong'], + 'host_os': 'linux', + 'image': 'linux', + 'name': 'host_os>linux.virt_system>windows.tests>wait= =2Eshort', + 'run': 'wait', + 'shortname': 'host_os>linux.virt_system>windows.tests= >wait.short', + 'tests': 'wait', + 'time': 'logn_time', + 'virt_system': 'windows'}, + {'dep': [], + 'host_os': 'linux', + 'image': 'linux', + 'name': 'host_os>linux.virt_system>windows.tests>test= 2', + 'run': 'test1', + 'shortname': 'host_os>linux.virt_system>windows.tests= >test2', + 'tests': 'test2', + 'virt_system': 'windows'}, + ]) def testHugeTest1(self): self._checkConfigDump('testcfg.huge/test1.cfg', 'testcfg.huge/test1.cfg.repr.gz') --=20 1.8.1.4