From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QORnU-0005yo-8e for garchives@archives.gentoo.org; Mon, 23 May 2011 09:51:36 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4E9C51C032; Mon, 23 May 2011 09:51:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1EBA31C032 for ; Mon, 23 May 2011 09:51:29 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 811A11B402F for ; Mon, 23 May 2011 09:51:28 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id D009F8050A for ; Mon, 23 May 2011 09:51:27 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: Subject: [gentoo-commits] proj/pms-test-suite:master commit in: PMSTestSuite/library/test/, PMSTestSuite/library/ X-VCS-Repository: proj/pms-test-suite X-VCS-Files: PMSTestSuite/library/case.py PMSTestSuite/library/test/random_test.py X-VCS-Directories: PMSTestSuite/library/test/ PMSTestSuite/library/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: d2f9b92ced956b3063fa5c1590397ef782ad7a12 Date: Mon, 23 May 2011 09:51:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: eb625c78ccb4903b039d79daa760f212 commit: d2f9b92ced956b3063fa5c1590397ef782ad7a12 Author: Micha=C5=82 G=C3=B3rny gentoo org> AuthorDate: Mon May 23 09:47:26 2011 +0000 Commit: Micha=C5=82 G=C3=B3rny gentoo org> CommitDate: Mon May 23 09:47:41 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/pms-test-suit= e.git;a=3Dcommit;h=3Dd2f9b92c Add a dummy EbuildTestCase for testing. --- PMSTestSuite/library/case.py | 4 ++++ PMSTestSuite/library/test/random_test.py | 15 ++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/PMSTestSuite/library/case.py b/PMSTestSuite/library/case.py index a2e60f2..6eb3f09 100644 --- a/PMSTestSuite/library/case.py +++ b/PMSTestSuite/library/case.py @@ -5,3 +5,7 @@ class TestCase(object): """ Base class for a test case. """ pass + +class EbuildTestCase(TestCase): + """ Test case using a single ebuild (per EAPI). """ + pass diff --git a/PMSTestSuite/library/test/random_test.py b/PMSTestSuite/libr= ary/test/random_test.py index 50acc45..23be2a0 100644 --- a/PMSTestSuite/library/test/random_test.py +++ b/PMSTestSuite/library/test/random_test.py @@ -2,10 +2,19 @@ # (c) 2011 Micha=C5=82 G=C3=B3rny # Released under the terms of the 2-clause BSD license. =20 -from PMSTestSuite.library.case import TestCase +from PMSTestSuite.library.case import EbuildTestCase =20 -class ExampleCase(TestCase): +class ExampleCase(EbuildTestCase): """ Absolutely random TestCase subclass to test it. """ - pass + + relevant_eapis =3D (0, 1, 2, 4) + + ebuild_vars =3D { + 'DESCRIPTION': 'A really random test' + } + + phase_funcs =3D { + 'pkg_setup': ['die "Random failure"'] + }