From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Mon, 24 Nov 2003 01:39:23 +0000 Subject: Re: [udev] udev-test.pl - automatic testing script Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, Nov 24, 2003 at 02:33:42AM +0100, Kay Sievers wrote: > On Sat, Nov 22, 2003 at 09:49:18PM -0800, Greg KH wrote: > > On Sun, Nov 23, 2003 at 04:54:09AM +0100, Kay Sievers wrote: > > > On Sat, Nov 22, 2003 at 03:41:10PM +0100, Kay Sievers wrote: > > > > here is a automatic udev test script. To test place it in the test/ > > > > directory of the current tree to find the sysfs tree copy and run it. > > > > > > > > The whole test is self contained, it only needs a matching sysfs tree. > > > > To extend the test add a hash to the @tests array inside the script. > > > > The script checks the created node and prints a summary of all tests. > > > > > > > > Please don't change $udev_root to something useful, its a temorary > > > > directory and will be removed after the test run. > > > > > > Here is a slightly better version that runs 'tree' on error > > > and prints a description for every test. > > > > Sweet, this blows away my mess of shell scripts. I've added this script > > to the test/ directory, thanks a lot for this. > > We don't want to test the "remove" if "add" fails. Why not? We should remove the same device, right? That way we end up with a clean directory :) thanks, greg k-h ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel