[Debian-l10n-commits] r1146 - in /ddtp-dinstall/trunk: Changelog new_test_unit.sh

nekral-guest at users.alioth.debian.org nekral-guest at users.alioth.debian.org
Sat Aug 9 16:32:43 UTC 2008


Author: nekral-guest
Date: Sat Aug  9 16:32:43 2008
New Revision: 1146

URL: http://svn.debian.org/wsvn/?sc=1&rev=1146
Log:
	* new_test_unit.sh: Added script to create a new tests unit based
	on pristine.

Added:
    ddtp-dinstall/trunk/new_test_unit.sh   (with props)
Modified:
    ddtp-dinstall/trunk/Changelog

Modified: ddtp-dinstall/trunk/Changelog
URL: http://svn.debian.org/wsvn/ddtp-dinstall/trunk/Changelog?rev=1146&op=diff
==============================================================================
--- ddtp-dinstall/trunk/Changelog (original)
+++ ddtp-dinstall/trunk/Changelog Sat Aug  9 16:32:43 2008
@@ -1,3 +1,8 @@
+2008-08-09  Nicolas François  <nicolas.francois at centraliens.net>
+
+	* new_test_unit.sh: Added script to create a new tests unit based
+	on pristine.
+
 2008-08-09  Nicolas François  <nicolas.francois at centraliens.net>
 
 	* testsuite.sh: Make the testsuite generate some $test.log and

Added: ddtp-dinstall/trunk/new_test_unit.sh
URL: http://svn.debian.org/wsvn/ddtp-dinstall/trunk/new_test_unit.sh?rev=1146&op=file
==============================================================================
--- ddtp-dinstall/trunk/new_test_unit.sh (added)
+++ ddtp-dinstall/trunk/new_test_unit.sh Sat Aug  9 16:32:43 2008
@@ -1,0 +1,31 @@
+#!/bin/sh
+#
+# Copyright (C) 2008, Nicolas François <nicolas.francois at centraliens.net>
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# On Debian systems, you can find the full text of the license in
+# /usr/share/common-licenses/GPL-2
+
+type=$1
+name=$2
+
+usage () {
+	echo "Usage: $0 [ good | bad ] <test_unit_name>" >&2
+	exit 1
+}
+
+if [ "$#" != "2" ] || [ -z "$name" ]; then
+	usage
+fi
+if [ "$type" != "good" ] && [ "$type" != "bad" ]; then
+	usage
+fi
+
+cp -a testsuite/good/pristine testsuite/$type/$name
+find testsuite/$type/$name -name ".svn" | xargs rm -rf
+
+ln -s ../good.pkgs/pristine testsuite/$type.pkgs/$name

Propchange: ddtp-dinstall/trunk/new_test_unit.sh
------------------------------------------------------------------------------
    svn:executable = *




More information about the Debian-l10n-commits mailing list