public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/gentoolkit:gentoolkit-dev commit in: src/echangelog/test/
@ 2011-02-25 20:51 Christian Ruppert
  0 siblings, 0 replies; 6+ messages in thread
From: Christian Ruppert @ 2011-02-25 20:51 UTC (permalink / raw
  To: gentoo-commits

commit:     ae645062f32223d1eb3c5f727c5a791e0d699636
Author:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 25 20:40:38 2011 +0000
Commit:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
CommitDate: Fri Feb 25 20:40:38 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=ae645062

Add a option to allow easy updating of the MD5 sums

---
 src/echangelog/test/test.sh |   21 ++++++++++++++-------
 1 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/src/echangelog/test/test.sh b/src/echangelog/test/test.sh
index 68d27f2..4c11122 100755
--- a/src/echangelog/test/test.sh
+++ b/src/echangelog/test/test.sh
@@ -16,9 +16,14 @@ MD5_COPYRIGHT="9ce45576db5489c4f109ed9ef9ffe05e"
 MD5_OBSOLETE="f0079450e03e69741502776a6b8138dc"
 MD5_FINAL="a3954786368fd92d8466bc65cbf689fc"
 
+UPDATE_MD5=0
+
 md5() {
 	local fname=$1
-	echo $(md5sum ${fname} | awk '{ print $1 }')
+	local var=$2
+	local md5=$(md5sum ${fname} | awk '{ print $1 }')
+	[ ${UPDATE_MD5:-0} -eq 1 ] && echo "${var}=\"${md5}\"" >> ${_ROOT}/MD5.new
+	echo $md5
 }
 
 ech() {
@@ -72,7 +77,7 @@ make_test() {
 	cd ${VCSTEST}
 	ech ${echangelog} --vcs $vcs 'New ebuild for bug <id>.'
 
-	if [ "${MD5_INIT}" != "$(md5 ChangeLog)" ]; then
+	if [ "${MD5_INIT}" != "$(md5 ChangeLog MD5_INIT)" ]; then
 		eerror "WRONG MD5_INIT!"
 	fi
 
@@ -87,7 +92,7 @@ make_test() {
 
 	ech ${echangelog} --vcs $vcs "Added adittional patch to fix foo."
 
-	if [ "${MD5_PATCH}" != "$(md5 ChangeLog)" ]; then
+	if [ "${MD5_PATCH}" != "$(md5 ChangeLog MD5_PATCH)" ]; then
 		eerror "WRONG MD5_PATCH!"
 	fi
 
@@ -104,14 +109,14 @@ make_test() {
 
 	ech ${echangelog} --vcs $vcs "Revbump..."
 
-	if [ "${MD5_REVBUMP}" != "$(md5 ChangeLog)" ]; then
+	if [ "${MD5_REVBUMP}" != "$(md5 ChangeLog MD5_REVBUMP)" ]; then
 		eerror "WRONG MD5_REVBUMP!"
 	fi
 
 	sed -i -e 's:# Copyright 1999-2009 Gentoo Foundation:# Copyright 1999-2010 Gentoo Foundation:' vcstest-0.0.1.ebuild
 	ech ${echangelog} --vcs $vcs "Revbump...; Just copyright changed."
 
-	if [ "${MD5_COPYRIGHT}" != "$(md5 ChangeLog)" ]; then
+	if [ "${MD5_COPYRIGHT}" != "$(md5 ChangeLog MD5_COPYRIGHT)" ]; then
 		eerror "WRONG MD5_COPYRIGHT!"
 	fi
 
@@ -124,19 +129,20 @@ make_test() {
 
 	ech ${echangelog} --vcs $vcs "Revbump...; Just copyright changed; Removed obsolete patch."
 
-	if [ "${MD5_OBSOLETE}" != "$(md5 ChangeLog)" ]; then
+	if [ "${MD5_OBSOLETE}" != "$(md5 ChangeLog MD5_OBSOLETE)" ]; then
 		eerror "WRONG MD5_OBSOLETE!"
 	fi
 
 	echo>>vcstest-0.0.1.ebuild
 	ech ${echangelog} --vcs $vcs "Revbump...; Just copyright changed; Removed obsolete patch; Modified more then just the copyright."
 
-	if [ "${MD5_FINAL}" != "$(md5 ChangeLog)" ]; then
+	if [ "${MD5_FINAL}" != "$(md5 ChangeLog MD5_FINAL)" ]; then
 		eerror "WRONG MD5_FINAL!"
 	fi
 }
 
 [ -d "${_ROOT}/tmp" ] && rm -rf ${_ROOT}/tmp
+[ -f "${_ROOT}/MD5.new" ] && rm -f ${_ROOT}/MD5.new
 mkdir -p ${_ROOT}/tmp
 
 ebegin "Preparing echangelog"
@@ -156,6 +162,7 @@ for vcs in $SUPPORTED_VCS; do
 		ebegin "Starting test with ${vcs}"
 		make_test $_ROOT "${vcs}" || set $?
 		eend ${1:-0}
+		[ ${UPDATE_MD5:-0} -eq 1 ] && break
 	else
 		ewarn "No ${vcs} executable found, skipping test..."
 	fi



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] proj/gentoolkit:gentoolkit-dev commit in: src/echangelog/test/
@ 2011-02-25 20:51 Christian Ruppert
  0 siblings, 0 replies; 6+ messages in thread
From: Christian Ruppert @ 2011-02-25 20:51 UTC (permalink / raw
  To: gentoo-commits

commit:     568fd9ee5071a4f17d7d9ede2bab341b2c1fbf85
Author:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 25 20:49:11 2011 +0000
Commit:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
CommitDate: Fri Feb 25 20:49:11 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=568fd9ee

Exit properly

---
 src/echangelog/test/test.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/echangelog/test/test.sh b/src/echangelog/test/test.sh
index 4c11122..ac8a69c 100755
--- a/src/echangelog/test/test.sh
+++ b/src/echangelog/test/test.sh
@@ -167,3 +167,5 @@ for vcs in $SUPPORTED_VCS; do
 		ewarn "No ${vcs} executable found, skipping test..."
 	fi
 done
+
+exit ${1:-0}



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] proj/gentoolkit:gentoolkit-dev commit in: src/echangelog/test/
@ 2011-02-25 20:51 Christian Ruppert
  0 siblings, 0 replies; 6+ messages in thread
From: Christian Ruppert @ 2011-02-25 20:51 UTC (permalink / raw
  To: gentoo-commits

commit:     de234543249c1146b6b432dd36e0d4f708f0082e
Author:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 25 20:50:22 2011 +0000
Commit:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
CommitDate: Fri Feb 25 20:50:22 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=de234543

Update some MD5 sums, related to the sorting fix in e34afa6e3da2ed329104a14eb957fb05326c437f

---
 src/echangelog/test/test.sh |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/echangelog/test/test.sh b/src/echangelog/test/test.sh
index ac8a69c..0c6d40a 100755
--- a/src/echangelog/test/test.sh
+++ b/src/echangelog/test/test.sh
@@ -12,9 +12,9 @@ export ECHANGELOG_USER="Just a test <echangelogtest@gentoo.org>"
 MD5_INIT="21ac109c53cf02378593a4f613b2bb55"
 MD5_PATCH="f3fa1cacae3bf51d6188278e6a5fd0c6"
 MD5_REVBUMP="e474aa136f06e2a001320240b2ae92bd"
-MD5_COPYRIGHT="9ce45576db5489c4f109ed9ef9ffe05e"
-MD5_OBSOLETE="f0079450e03e69741502776a6b8138dc"
-MD5_FINAL="a3954786368fd92d8466bc65cbf689fc"
+MD5_COPYRIGHT="17e3e9a3ec855f5229815cbfd327b634"
+MD5_OBSOLETE="9424da75f53c5212f58cf11a614a97c5"
+MD5_FINAL="3f770e0c13a31653fd0f4ff71598ba6f"
 
 UPDATE_MD5=0
 



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] proj/gentoolkit:gentoolkit-dev commit in: src/echangelog/test/
@ 2011-06-29 10:54 Christian Ruppert
  0 siblings, 0 replies; 6+ messages in thread
From: Christian Ruppert @ 2011-06-29 10:54 UTC (permalink / raw
  To: gentoo-commits

commit:     e66cb636fa2d28c6f3508175715c963e14795760
Author:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 29 10:52:40 2011 +0000
Commit:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
CommitDate: Wed Jun 29 10:52:40 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=e66cb636

Unset GENTOO_* variablen when doing tests, bug 373421

---
 src/echangelog/test/test.sh |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/echangelog/test/test.sh b/src/echangelog/test/test.sh
index 0c6d40a..4157d72 100755
--- a/src/echangelog/test/test.sh
+++ b/src/echangelog/test/test.sh
@@ -7,6 +7,11 @@ SUPPORTED_VCS="cvs svn git"
 VCSTEST="echangelog-test/vcstest"
 _ROOT=$(pwd)
 
+
+# bug 373421
+unset GENTOO_AUTHOR_NAME GENTOO_AUTHOR_EMAIL \
+	GENTOO_COMMITTER_NAME GENTOO_COMMITTER_EMAIL
+
 export ECHANGELOG_USER="Just a test <echangelogtest@gentoo.org>"
 
 MD5_INIT="21ac109c53cf02378593a4f613b2bb55"



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] proj/gentoolkit:gentoolkit-dev commit in: src/echangelog/test/
@ 2013-05-10 22:47 Christian Ruppert
  0 siblings, 0 replies; 6+ messages in thread
From: Christian Ruppert @ 2013-05-10 22:47 UTC (permalink / raw
  To: gentoo-commits

commit:     84321cc30126edc9a3fe51458a251b06fddce1ca
Author:     Wang Jiajun <Amesists <AT> gmail <DOT> com>
AuthorDate: Fri May 10 22:46:25 2013 +0000
Commit:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
CommitDate: Fri May 10 22:46:25 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=84321cc3

Fix bug #454782 by config the user name and email

---
 src/echangelog/test/test.sh |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/echangelog/test/test.sh b/src/echangelog/test/test.sh
index 74d815f..0559113 100755
--- a/src/echangelog/test/test.sh
+++ b/src/echangelog/test/test.sh
@@ -12,7 +12,8 @@ _ROOT=$(pwd)
 unset GENTOO_AUTHOR_NAME GENTOO_AUTHOR_EMAIL \
 	GENTOO_COMMITTER_NAME GENTOO_COMMITTER_EMAIL
 
-export ECHANGELOG_USER="Just a test <echangelogtest@gentoo.org>"
+export GENTOO_COMMITTER_NAME="Just a test"
+export GENTOO_COMMITTER_EMAIL="echangelogtest@gentoo.org"
 
 MD5_INIT="21ac109c53cf02378593a4f613b2bb55"
 MD5_PATCH="f3fa1cacae3bf51d6188278e6a5fd0c6"
@@ -56,6 +57,11 @@ make_test() {
 
 	if [ "${vcs}" = "git" ]; then
 		git init
+
+		# bug 454782
+		git config user.name "${GENTOO_COMMITTER_NAME}"
+		git config user.email "${GENTOO_COMMITTER_EMAIL}"
+
 		touch .gitignore
 		git add .gitignore
 		git commit -a -m 'Initial Commit'


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] proj/gentoolkit:gentoolkit-dev commit in: src/echangelog/test/
@ 2013-05-11 22:02 Christian Ruppert
  0 siblings, 0 replies; 6+ messages in thread
From: Christian Ruppert @ 2013-05-11 22:02 UTC (permalink / raw
  To: gentoo-commits

commit:     2da4232cfd9597b829dda4bcfbf3aab25f243950
Author:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
AuthorDate: Sat May 11 21:56:25 2013 +0000
Commit:     Christian Ruppert <idl0r <AT> gentoo <DOT> org>
CommitDate: Sat May 11 21:56:25 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=2da4232c

Fix echangelog test

---
 src/echangelog/test/test.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/echangelog/test/test.sh b/src/echangelog/test/test.sh
index 0559113..53bb0b5 100755
--- a/src/echangelog/test/test.sh
+++ b/src/echangelog/test/test.sh
@@ -160,7 +160,7 @@ ebegin "Preparing echangelog"
 
 if [ -e "../echangelog" ]; then
 	cp ../echangelog "${_ROOT}/tmp" || set $?
-	sed -i -e 's:use POSIX qw.*:use POSIX qw(setlocale getcwd);\nuse TEST qw(strftime);:' "${_ROOT}/tmp/echangelog" || set $?
+	sed -i -e 's:use POSIX qw.*:use POSIX qw(locale_h setlocale getcwd);\nuse TEST qw(strftime);:' "${_ROOT}/tmp/echangelog" || set $?
 	eend ${1:-0} || exit ${1}
 else
 	eerror "error"


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-05-11 22:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-25 20:51 [gentoo-commits] proj/gentoolkit:gentoolkit-dev commit in: src/echangelog/test/ Christian Ruppert
  -- strict thread matches above, loose matches on Subject: below --
2011-02-25 20:51 Christian Ruppert
2011-02-25 20:51 Christian Ruppert
2011-06-29 10:54 Christian Ruppert
2013-05-10 22:47 Christian Ruppert
2013-05-11 22:02 Christian Ruppert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox