Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-projects commit in portage-utils/tests/quse: dotest
Date: Mon, 28 Feb 2011 16:20:41
Message-Id: 20110228162022.EF0BA2005C@flycatcher.gentoo.org
1 vapier 11/02/28 16:20:22
2
3 Modified: dotest
4 Log:
5 add qxpak/qtbz2 tests
6
7 Revision Changes Path
8 1.2 portage-utils/tests/quse/dotest
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/quse/dotest?rev=1.2&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/quse/dotest?rev=1.2&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/quse/dotest?r1=1.1&r2=1.2
13
14 Index: dotest
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-projects/portage-utils/tests/quse/dotest,v
17 retrieving revision 1.1
18 retrieving revision 1.2
19 diff -u -r1.1 -r1.2
20 --- dotest 4 Nov 2005 04:11:09 -0000 1.1
21 +++ dotest 28 Feb 2011 16:20:22 -0000 1.2
22 @@ -1,4 +1,35 @@
23 -#!/bin/sh
24 +#!/bin/bash
25 +
26 +set -e
27 +
28 +export PORTDIR=$PWD/portdir
29 +
30 +rm -rf tmp
31 +mkdir tmp
32 +cd tmp
33 +
34 +d=${PORTDIR}/profiles
35 +entries() {
36 + sed -e 's:#.*::' -e '/^$/d' "$1"
37 +}
38 +
39 +# check arch.list
40 +all=$(entries "$d/arch.list")
41 +for x in ${all} ; do
42 + quse -CD $x > x
43 + echo " arch:$x: $x architecture" > good
44 + cat good >> all.good
45 + cmp x good
46 +done
47 +quse -CD ${all} > x
48 +cmp x all.good
49 +rm x good all.good
50 +
51 +# check use.desc
52 +all=$(entries "$d/use.desc" | awk '{print $1}')
53 +for x in ${all} ; do
54 + quse -CD
55 +done
56
57 ###### faster test needed.########
58 exit 0