From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19883 invoked by alias); 13 Apr 2010 06:45:54 -0000 Received: (qmail 19868 invoked by uid 9699); 13 Apr 2010 06:45:54 -0000 Date: Tue, 13 Apr 2010 06:45:00 -0000 Message-ID: <20100413064554.19866.qmail@sourceware.org> From: mornfall@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/test Makefile.in Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00060.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: mornfall@sourceware.org 2010-04-13 06:45:53 Modified files: test : Makefile.in Log message: Make it easy to run just a subset of tests by saying `make check T="regex"`. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/Makefile.in.diff?cvsroot=lvm2&r1=1.36&r2=1.37 --- LVM2/test/Makefile.in 2010/04/12 19:02:59 1.36 +++ LVM2/test/Makefile.in 2010/04/13 06:45:53 1.37 @@ -25,6 +25,9 @@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ +T ?= . +RUN = $(shell find -regextype posix-egrep -name t-\*.sh -and -regex ".*($(T)).*") + # Shell quote; SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH)) @@ -45,9 +48,9 @@ all: init.sh @echo Testing with locking_type 1 - ./bin/harness t-*.sh + ./bin/harness $(RUN) @echo Testing with locking_type 3 - LVM_TEST_LOCKING=3 ./bin/harness t-*.sh + LVM_TEST_LOCKING=3 ./bin/harness $(RUN) bin/not: $(srcdir)/not.c .bin-dir-stamp $(CC) -o bin/not $< @@ -74,7 +77,7 @@ echo 'export DM_UDEV_SYNCHRONISATION=$(dm_udev_synchronisation)' >> $@-t chmod a-w $@-t mv $@-t $@ - if test "$(srcdir)" != . ; then cp $(SCRIPTS) . ; fi + @if test "$(srcdir)" != . ; then echo "Copying tests to builddir."; cp $(SCRIPTS) . ; fi Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@