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 list01.good |
Date: | Mon, 28 Feb 2011 17:54:18 |
Message-Id: | 20110228175409.21D1620054@flycatcher.gentoo.org |
1 | vapier 11/02/28 17:54:09 |
2 | |
3 | Modified: dotest |
4 | Added: list01.good |
5 | Log: |
6 | add quse flag tests |
7 | |
8 | Revision Changes Path |
9 | 1.3 portage-utils/tests/quse/dotest |
10 | |
11 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/quse/dotest?rev=1.3&view=markup |
12 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/quse/dotest?rev=1.3&content-type=text/plain |
13 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/quse/dotest?r1=1.2&r2=1.3 |
14 | |
15 | Index: dotest |
16 | =================================================================== |
17 | RCS file: /var/cvsroot/gentoo-projects/portage-utils/tests/quse/dotest,v |
18 | retrieving revision 1.2 |
19 | retrieving revision 1.3 |
20 | diff -u -r1.2 -r1.3 |
21 | --- dotest 28 Feb 2011 16:20:22 -0000 1.2 |
22 | +++ dotest 28 Feb 2011 17:54:09 -0000 1.3 |
23 | @@ -14,22 +14,64 @@ |
24 | } |
25 | |
26 | # check arch.list |
27 | -all=$(entries "$d/arch.list") |
28 | +f="$d/arch.list" |
29 | +all=$(entries "$f") |
30 | for x in ${all} ; do |
31 | quse -CD $x > x |
32 | echo " arch:$x: $x architecture" > good |
33 | cat good >> all.good |
34 | - cmp x good |
35 | + diff -u x good |
36 | done |
37 | quse -CD ${all} > x |
38 | -cmp x all.good |
39 | +diff -u x all.good |
40 | rm x good all.good |
41 | |
42 | # check use.desc |
43 | -all=$(entries "$d/use.desc" | awk '{print $1}') |
44 | +f="$d/use.desc" |
45 | +all=$(entries "$f" | awk '{print $1}') |
46 | for x in ${all} ; do |
47 | - quse -CD |
48 | + quse -CD $x > x |
49 | + sed -n -e "/^$x - /{s|^[^ ]* - | global:$x: |;p}" "$f" > good |
50 | + cat good >> all.good |
51 | + diff -u x good |
52 | +done |
53 | +quse -CD ${all} > x |
54 | +diff -u x all.good |
55 | +rm x good all.good |
56 | + |
57 | +# check use.local.desc |
58 | +f="$d/use.local.desc" |
59 | +all=$(entries "$f" | awk '{print $1}' | cut -f2 -d:) |
60 | +for x in ${all} ; do |
61 | + quse -CD $x > x |
62 | + sed -n -e "/^[^:]*:$x - /{s|^\([^:]*\):[^ ]* - | local:$x:\1: |;p}" "$f" > good |
63 | + cat good >> all.good |
64 | + diff -u x good |
65 | +done |
66 | +quse -CD ${all} > x |
67 | +diff -u x all.good |
68 | +rm x good all.good |
69 | + |
70 | +# check desc subdir |
71 | +f="$d/desc/elibc.desc" |
72 | +all=$(entries "$f" | awk '{print $1}') |
73 | +for x in ${all} ; do |
74 | + quse -CD $x > x |
75 | + sed -n -e "/^$x - /{s|^[^ ]* - | ${f##*/}:$x: |;p}" "$f" > good |
76 | + cat good >> all.good |
77 | + diff -u x good |
78 | done |
79 | +quse -CD ${all} > x |
80 | +diff -u x all.good |
81 | +rm x good all.good |
82 | + |
83 | +# check cross file matches |
84 | +quse -CD abc > x |
85 | +diff -u ../list01.good x |
86 | +rm x |
87 | + |
88 | +cd .. |
89 | +rmdir tmp |
90 | |
91 | ###### faster test needed.######## |
92 | exit 0 |
93 | |
94 | |
95 | |
96 | 1.1 portage-utils/tests/quse/list01.good |
97 | |
98 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/quse/list01.good?rev=1.1&view=markup |
99 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/quse/list01.good?rev=1.1&content-type=text/plain |
100 | |
101 | Index: list01.good |
102 | =================================================================== |
103 | two.desc:abc: pig |
104 | one.desc:abc: cow |