public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/pms-test-suite:master commit in: /
Date: Sat, 20 Aug 2011 06:23:58 +0000 (UTC)	[thread overview]
Message-ID: <ed17dd342132d5237785c6ef9615d8588494c9ca.mgorny@gentoo> (raw)

commit:     ed17dd342132d5237785c6ef9615d8588494c9ca
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 20 06:25:22 2011 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Aug 20 06:25:22 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=ed17dd34

Rewrite the README a little.

---
 README |   66 +++++++++++++++++++++++++++++++++++++--------------------------
 1 files changed, 39 insertions(+), 27 deletions(-)

diff --git a/README b/README
index 94f28a3..96d1933 100644
--- a/README
+++ b/README
@@ -29,52 +29,64 @@ A future version will most probably drop D-Bus dependency and replace it with
 a less painful IPC.
 
 
-How to run it
--------------
+Running tests using Portage
+---------------------------
 
-First, you need to have an overlay for the tests. If you intend to use portage,
-`pms-tester` can create an temporary repository and use it automatically. To do
-so, run:
+The Portage backend is the only backend supporting running tests using a random,
+unconfigured directory. Thus, running the test suite is as simple as:
 
-	pms-tester -R /tmp/your-repo-location
+	pms-tester -R /tmp/temporary-repo-location
 
-If you intend to test another PM, you need to either create the repository
-yourself or use the above command to let `pms-tester` create it for you. Notice
-you'll need to have portage installed for that. Afterwards, you need to add
-the repository to your PM configuration.
+This will cover all the necessary steps of setting up the repository, creating
+ebuilds, setting `PORTDIR_OVERLAY` and running the test suite. Please note that
+it doesn't remove the repository afterwards -- it is intended to be reusable.
 
-For example, setting up a test repository for portage configs can be achieved
-through:
+
+Running tests using other PMs
+-----------------------------
+
+If the intent is to use another PM than Portage, one must first create
+an (empty) repository for test suite and add it to PMs repository list.
+
+The simplest way of doing that involves using the Portage backend once again:
+
+	pms-tester -R /var/cache/pms-tests --create-repo-only
+
+One may also create and name the repository manually:
 
 	umask 022
-	mkdir -p /usr/local/portage/pms-tests/profiles
-	echo 'pms-test-suite' > /usr/local/portage/pms-tests/profiles/repo_name
+	mkdir -p /var/cache/pms-tests/profiles
+	echo 'pms-test-suite' > /var/cache/pms-tests/profiles/repo_name
+
+In both cases, it is necessary to add the repository to PMs config; for Portage
+that would be:
+
 	echo 'PORTDIR_OVERLAY="${PORTDIR_OVERLAY}
-		/usr/local/portage/pms-tests' >> /etc/make.conf
+		/var/cache/pms-tests' >> /etc/make.conf
 
-The newly-created repository can be then referenced by name:
+The newly-created repository will be then referenced by its name:
 
-	pms-tester -r pms-test-suite -p yourpm
+	pms-tester -p pkgcore
 
-`pms-test-suite` is the default name, and pms-tester will use it when no `-r`
-nor `-R` is specified. Thus, the above could be simplified to:
+If a different name was used, that would be:
 
-	pms-tester -p yourpm
+	pms-tester -r repository-name -p pkgcore
 
 
 Getting nice HTML results
 -------------------------
 
-By default, pms-tester simply runs all tests and returns information about test
-failures. If you'd like to get a nice HTML output instead (like [the one
-published by me][1]), please use:
+By default, pms-tester simply runs all tests and prints status information
+and details on test failures. If you'd like to get a nice HTML output instead
+(like [the one published by me][1]), please use:
 
-	pms-tester -p yourpm -o html -O myoutput.html
+	pms-tester -o html -O myoutput.html
 
-You can run the test suite using multiple PMs as well:
+This will, however, create output for a single PM only. In order to use multiple
+ones, just specify all of them:
 
-	pms-tester -p pkgcore -p portage -p paludis -o html -O myoutput.html
+	pms-tester -p paludis -p pkgcore -p portage -o html -O myoutput.html
 
-[1]:http://dev.gentoo.org/~mgorny/pms-test-suite-output.html
+[1]:http://www.gentoo.org/proj/en/qa/pms/pms-test-suite-output.html
 
 <!-- vim:se syn=markdown :-->



             reply	other threads:[~2011-08-20  6:24 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-20  6:23 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-01-04 16:49 [gentoo-commits] proj/pms-test-suite:master commit in: / Michał Górny
2012-01-02 22:03 Michał Górny
2011-08-14 15:04 Michał Górny
2011-08-13  8:54 Michał Górny
2011-08-08 22:15 Michał Górny
2011-07-31 14:57 Michał Górny
2011-07-31 14:43 Michał Górny
2011-07-10 10:12 Michał Górny
2011-06-29 12:58 Michał Górny
2011-06-28  7:13 Michał Górny
2011-06-28  7:13 Michał Górny
2011-06-25  8:39 Michał Górny
2011-06-25  8:39 Michał Górny
2011-06-23 21:14 Michał Górny
2011-06-23 16:28 Michał Górny
2011-06-22 11:50 Michał Górny
2011-06-22  8:18 Michał Górny
2011-06-22  8:18 Michał Górny
2011-06-19 10:54 Michał Górny
2011-06-08 12:44 Michał Górny
2011-06-05 18:37 Michał Górny
2011-05-31 19:18 Michał Górny
2011-05-31 19:18 Michał Górny
2011-05-31 18:10 Michał Górny
2011-05-31 18:10 Michał Górny
2011-05-29 17:55 Michał Górny
2011-05-27  6:21 Michał Górny
2011-05-26  7:25 Michał Górny
2011-05-25 20:40 Michał Górny
2011-05-25 18:18 Michał Górny
2011-05-24 14:28 Michał Górny
2011-05-16 20:00 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ed17dd342132d5237785c6ef9615d8588494c9ca.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox