Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump Perform internal consistency check automatically.
details: https://anonhg.NetBSD.org/src/rev/f3bc00954be7
branches: trunk
changeset: 333343:f3bc00954be7
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Oct 29 19:59:32 2014 +0000
description:
Perform internal consistency check automatically.
diffstat:
sys/rump/listsrcdirs | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r adf86910aa34 -r f3bc00954be7 sys/rump/listsrcdirs
--- a/sys/rump/listsrcdirs Wed Oct 29 19:35:29 2014 +0000
+++ b/sys/rump/listsrcdirs Wed Oct 29 19:59:32 2014 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: listsrcdirs,v 1.20 2014/10/29 19:35:29 justin Exp $
+# $NetBSD: listsrcdirs,v 1.21 2014/10/29 19:59:32 pooka Exp $
#
#
@@ -10,9 +10,14 @@
#
# ./listsrcdirs | xargs cvs -d anoncvs%anoncvs.netbsd.org@localhost:/cvsroot -z3 co -P
#
-# Note: after making changes, test that "sh listsrcdirs all | sort | uniq -d"
-# returns an empty set.
-#
+
+# Check that the intersection between all branches is the null set
+if [ "${LISTSRCDIRS_INSANITY}" != 'y' ]; then
+ if [ ! -z "$(LISTSRCDIRS_INSANITY=y sh $0 all | sort | uniq -d)" ]; then
+ echo $0: INTERNAL ERROR
+ exit 1
+ fi
+fi
# default echomode (for compat)
em='sys posix'
Home |
Main Index |
Thread Index |
Old Index