* [gentoo-commits] gentoo-projects commit in portage-utils/tests/source: dotest
@ 2008-12-31 11:46 Mike Frysinger (vapier)
0 siblings, 0 replies; 6+ messages in thread
From: Mike Frysinger (vapier) @ 2008-12-31 11:46 UTC (permalink / raw
To: gentoo-commits
vapier 08/12/31 11:46:15
Modified: dotest
Log:
check for lenght typo
Revision Changes Path
1.9 portage-utils/tests/source/dotest
file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/portage-utils/tests/source/dotest?rev=1.9&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/portage-utils/tests/source/dotest?rev=1.9&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/portage-utils/tests/source/dotest?r1=1.8&r2=1.9
Index: dotest
===================================================================
RCS file: /var/cvsroot/gentoo-projects/portage-utils/tests/source/dotest,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- dotest 23 May 2007 14:43:29 -0000 1.8
+++ dotest 31 Dec 2008 11:46:15 -0000 1.9
@@ -38,6 +38,7 @@
-e '\<algorithic\>' \
-e '\<deamon\>' \
-e '\<derefernce\>' \
+ -e '\<lenght\>' \
| sed -e "s:^\.\./\.\./::g" > src.typos
testit src.typos
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-commits] gentoo-projects commit in portage-utils/tests/source: dotest
@ 2011-03-17 3:57 Mike Frysinger (vapier)
0 siblings, 0 replies; 6+ messages in thread
From: Mike Frysinger (vapier) @ 2011-03-17 3:57 UTC (permalink / raw
To: gentoo-commits
vapier 11/03/17 03:57:14
Modified: dotest
Log:
drop the md5sum test too
Revision Changes Path
1.11 portage-utils/tests/source/dotest
file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/source/dotest?rev=1.11&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/source/dotest?rev=1.11&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/source/dotest?r1=1.10&r2=1.11
Index: dotest
===================================================================
RCS file: /var/cvsroot/gentoo-projects/portage-utils/tests/source/dotest,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- dotest 17 Mar 2011 03:55:49 -0000 1.10
+++ dotest 17 Mar 2011 03:57:14 -0000 1.11
@@ -99,17 +99,17 @@
testit src.style
-# Stupid BSD makes us check for this..
-if [ $(type -P md5sum) != "" ]; then
- for x in $(find ../.. '(' -name '*.c' -o -name '*.h' ')' ); do
- ./space "$x" > "$x~"
- if ! diff -u "$x" "$x~" ; then
- echo "New file: $x~"
- else
- rm -f "$x~"
- fi
- done > src.space
- testit src.space
-fi
+#
+# Auto clean up the space issues
+#
+for x in $(find ../.. '(' -name '*.c' -o -name '*.h' ')' ); do
+ ./space "$x" > "$x~"
+ if ! diff -u "$x" "$x~" ; then
+ echo "New file: $x~"
+ else
+ rm -f "$x~"
+ fi
+done > src.space
+testit src.space
exit ${ret}
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-commits] gentoo-projects commit in portage-utils/tests/source: dotest
@ 2011-12-11 21:23 Mike Frysinger (vapier)
0 siblings, 0 replies; 6+ messages in thread
From: Mike Frysinger (vapier) @ 2011-12-11 21:23 UTC (permalink / raw
To: gentoo-commits
vapier 11/12/11 21:23:09
Modified: dotest
Log:
filter out autotools dirs from source checks #394301 by Nikoli
Revision Changes Path
1.12 portage-utils/tests/source/dotest
file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/source/dotest?rev=1.12&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/source/dotest?rev=1.12&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/source/dotest?r1=1.11&r2=1.12
Index: dotest
===================================================================
RCS file: /var/cvsroot/gentoo-projects/portage-utils/tests/source/dotest,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- dotest 17 Mar 2011 03:57:14 -0000 1.11
+++ dotest 11 Dec 2011 21:23:09 -0000 1.12
@@ -14,13 +14,29 @@
echo PASS: $1
}
+prune=(
+ '(' -type d -a
+ '('
+ -name CVS -o
+ -name tests -o
+ -name autotools -o
+ -name autom4te.cache
+ ')'
+ -prune ')'
+)
+all_files=(
+ "${prune[@]}" -o -type f
+)
+src_files=(
+ "${prune[@]}" -o -type f -name '*.[ch]'
+)
+
+
#
# check for misc common typos
#
-find ../.. \
- '(' -type d -a '(' -name CVS -o -name tests ')' -prune ')' \
- -o '(' -type f -a -print0 ')' | xargs -0 \
+find ../.. "${all_files[@]}" -print0 | xargs -0 \
grep -n -I \
-e '\<compatability\>' \
-e '\<compatable\>' \
@@ -47,7 +63,7 @@
#
# don't allow obsolete functions
#
-find ../.. '(' -name '*.c' -o -name '*.h' ')' -print0 | xargs -0 \
+find ../.. "${src_files[@]}" -print0 | xargs -0 \
grep -n -E -e '\<(bcmp|bcopy|bzero|getwd|index|mktemp|rindex|utimes)\>[[:space:]]*\(' \
| sed -e "s:^\.\./\.\./::g" > src.obsolete.funcs
testit src.obsolete.funcs
@@ -57,7 +73,7 @@
#
# make sure people use our constants
#
-find ../.. '(' -name '*.c' -o -name '*.h' ')' -print0 | xargs -0 \
+find ../.. "${src_files[@]}" -print0 | xargs -0 \
grep -n -E -e '\<PATH_MAX\>' | grep -v _Q_PATH_MAX \
| sed -e "s:^\.\./\.\./::g" > src.bad.constants
testit src.bad.constants
@@ -67,7 +83,7 @@
#
# don't allow obsolete headers
#
-find ../.. '(' -name '*.c' -o -name '*.h' ')' -print0 | xargs -0 \
+find ../.. "${src_files[@]}" -print0 | xargs -0 \
grep -n -E -e '\<(malloc|memory|sys/(errno|fcntl|signal|stropts|termios|unistd))\.h\>' \
| sed -e "s:^\.\./\.\./::g" > src.obsolete.headers
testit src.obsolete.headers
@@ -77,7 +93,7 @@
#
# make sure people use the x* helper funcs
#
-find ../.. '(' -name '*.c' -o -name '*.h' ')' -print0 | xargs -0 \
+find ../.. "${src_files[@]}" -print0 | xargs -0 \
grep -n -E -e '\<(malloc|strdup)[[:space:]]*\(' \
| grep -v libq/x \
| sed -e "s:^\.\./\.\./::g" > src.use.xfuncs
@@ -87,7 +103,7 @@
#
# check for style
#
-find ../.. '(' -name '*.c' -o -name '*.h' ')' -print0 | xargs -0 \
+find ../.. "${src_files[@]}" -print0 | xargs -0 \
grep -n -E \
-e '\<(for|if|switch|while)\(' \
-e '\<(for|if|switch|while) \( ' \
@@ -102,7 +118,7 @@
#
# Auto clean up the space issues
#
-for x in $(find ../.. '(' -name '*.c' -o -name '*.h' ')' ); do
+for x in $(find ../.. "${src_files[@]}" -print); do
./space "$x" > "$x~"
if ! diff -u "$x" "$x~" ; then
echo "New file: $x~"
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-commits] gentoo-projects commit in portage-utils/tests/source: dotest
@ 2011-12-12 18:53 Mike Frysinger (vapier)
0 siblings, 0 replies; 6+ messages in thread
From: Mike Frysinger (vapier) @ 2011-12-12 18:53 UTC (permalink / raw
To: gentoo-commits
vapier 11/12/12 18:53:13
Modified: dotest
Log:
filter out more autotool related files
Revision Changes Path
1.13 portage-utils/tests/source/dotest
file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/source/dotest?rev=1.13&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/source/dotest?rev=1.13&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/source/dotest?r1=1.12&r2=1.13
Index: dotest
===================================================================
RCS file: /var/cvsroot/gentoo-projects/portage-utils/tests/source/dotest,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- dotest 11 Dec 2011 21:23:09 -0000 1.12
+++ dotest 12 Dec 2011 18:53:13 -0000 1.13
@@ -20,7 +20,8 @@
-name CVS -o
-name tests -o
-name autotools -o
- -name autom4te.cache
+ -name autom4te.cache -o
+ -name '*~'
')'
-prune ')'
)
@@ -28,7 +29,7 @@
"${prune[@]}" -o -type f
)
src_files=(
- "${prune[@]}" -o -type f -name '*.[ch]'
+ "${prune[@]}" -o -type f '(' -name '*.[ch]' -a '!' -name 'config.h' ')'
)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-commits] gentoo-projects commit in portage-utils/tests/source: dotest
@ 2011-12-18 6:49 Mike Frysinger (vapier)
0 siblings, 0 replies; 6+ messages in thread
From: Mike Frysinger (vapier) @ 2011-12-18 6:49 UTC (permalink / raw
To: gentoo-commits
vapier 11/12/18 06:49:06
Modified: dotest
Log:
add nice colors to test output
Revision Changes Path
1.15 portage-utils/tests/source/dotest
file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/source/dotest?rev=1.15&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/source/dotest?rev=1.15&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/source/dotest?r1=1.14&r2=1.15
Index: dotest
===================================================================
RCS file: /var/cvsroot/gentoo-projects/portage-utils/tests/source/dotest,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- dotest 12 Dec 2011 21:04:24 -0000 1.14
+++ dotest 18 Dec 2011 06:49:06 -0000 1.15
@@ -6,14 +6,14 @@
testit() {
if [ -s $1 ] ; then
- echo FAIL: $1
+ echo "${BAD}FAIL:${NORMAL} $1"
cat $1
rm -f $1
ret=1
return
fi
rm -f $1
- echo PASS: $1
+ echo "${GOOD}PASS:${NORMAL} $1"
}
prune=(
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-commits] gentoo-projects commit in portage-utils/tests/source: dotest
@ 2011-12-22 19:30 Mike Frysinger (vapier)
0 siblings, 0 replies; 6+ messages in thread
From: Mike Frysinger (vapier) @ 2011-12-22 19:30 UTC (permalink / raw
To: gentoo-commits
vapier 11/12/22 19:30:47
Modified: dotest
Log:
redo test output to get info on a per-test basis
Revision Changes Path
1.16 portage-utils/tests/source/dotest
file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/source/dotest?rev=1.16&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/source/dotest?rev=1.16&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/tests/source/dotest?r1=1.15&r2=1.16
Index: dotest
===================================================================
RCS file: /var/cvsroot/gentoo-projects/portage-utils/tests/source/dotest,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- dotest 18 Dec 2011 06:49:06 -0000 1.15
+++ dotest 22 Dec 2011 19:30:47 -0000 1.16
@@ -2,18 +2,15 @@
. ../init.sh
-ret=0
-
testit() {
if [ -s $1 ] ; then
- echo "${BAD}FAIL:${NORMAL} $1"
+ tfail "$1"
cat $1
rm -f $1
- ret=1
return
fi
rm -f $1
- echo "${GOOD}PASS:${NORMAL} $1"
+ tpass "$1"
}
prune=(
@@ -149,4 +146,4 @@
done > src.space
testit src.space
-exit ${ret}
+end
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-12-22 19:31 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-11 21:23 [gentoo-commits] gentoo-projects commit in portage-utils/tests/source: dotest Mike Frysinger (vapier)
-- strict thread matches above, loose matches on Subject: below --
2011-12-22 19:30 Mike Frysinger (vapier)
2011-12-18 6:49 Mike Frysinger (vapier)
2011-12-12 18:53 Mike Frysinger (vapier)
2011-03-17 3:57 Mike Frysinger (vapier)
2008-12-31 11:46 Mike Frysinger (vapier)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox