r2376 - in glibc-package/branches/glibc-2.6/debian: . maint
Author: madcoder
Date: 2007-06-18 12:17:48 +0000 (Mon, 18 Jun 2007)
New Revision: 2376
Added:
glibc-package/branches/glibc-2.6/debian/maint/
glibc-package/branches/glibc-2.6/debian/maint/grab-testsuites.sh
Log:
adding a script to extract testsuites.
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Added: glibc-package/branches/glibc-2.6/debian/maint/grab-testsuites.sh
===================================================================
--- glibc-package/branches/glibc-2.6/debian/maint/grab-testsuites.sh (rev 0)
+++ glibc-package/branches/glibc-2.6/debian/maint/grab-testsuites.sh 2007-06-18 12:17:48 UTC (rev 2376)
@@ -0,0 +1,34 @@
+#!/bin/sh -e
+#
+# This scripts pulls all the .debs in a debian mirror, and extracts testsuite failures, then sorts them.
+#
+# Copyright © 2007 Pierre Habouzit <madcoder@debian.org>
+#
+# This script is in the public domain.
+
+[ $# -eq 1 ] && cd "$1"
+
+(mkdir -p debs && cd debs && lftp -e "cd debian/pool/main/g/glibc/; mget -c libc6_*.deb; mget -c libc6.1_*.deb; exit" ftp.debian.org)
+
+to_gnu() {
+ dpkg-architecture -a"$1" -qDEB_HOST_GNU_TYPE 2>/dev/null
+}
+
+trap "rm -rf here" 0
+
+for i in debs/*.deb; do
+ arch="${i##*_}"
+ arch="${arch%.deb}"
+ version="${i#*_}"
+ version="${version%_*}"
+
+ dpkg -x "$i" here
+ for log in $(ls here/usr/share/doc/libc6*/log-test-`to_gnu "$arch"`-libc.gz 2>/dev/null); do
+ zgrep -e '\(Error\|Erreur\)' "$log" | sed -e '{
+ s/^make[^:]*: \** *//g;
+ s~^\[.*libc/~~g;
+ s~\].*~~g;
+ }' | grep -v '^\[' | sort -u > "${arch}_${version}.testsuite"
+ done
+ rm -rf here
+done
Property changes on: glibc-package/branches/glibc-2.6/debian/maint/grab-testsuites.sh
___________________________________________________________________
Name: svn:executable
+ *
Reply to: