Module Name:    src
Committed By:   pooka
Date:           Wed Oct 29 19:59:32 UTC 2014

Modified Files:
        src/sys/rump: listsrcdirs

Log Message:
Perform internal consistency check automatically.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/rump/listsrcdirs

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/listsrcdirs
diff -u src/sys/rump/listsrcdirs:1.20 src/sys/rump/listsrcdirs:1.21
--- src/sys/rump/listsrcdirs:1.20	Wed Oct 29 19:35:29 2014
+++ src/sys/rump/listsrcdirs	Wed Oct 29 19:59:32 2014
@@ -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 [email protected]:/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'

Reply via email to