1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-11-23 04:23:49 +03:00

Tidy the shell tests into their own subdir. We now have:

- test/lib -- infrastructure and helper code
- test/api -- liblvm2app API tests
- test/unit -- C-based unit tests
- test/shell -- shell-based functional tests
This commit is contained in:
Petr Rockai
2011-11-21 00:15:42 +00:00
parent cfe1ec8d1f
commit f2a3f0fe3d
88 changed files with 3 additions and 2 deletions

View File

@@ -29,8 +29,8 @@ include $(top_builddir)/make.tmpl
T ?= .
S ?= @ # never match anything by default
VERBOSE ?= 0
ALL = $(shell find $(srcdir) \( -name t-\*.sh -or -path */api/\*.sh \) | sort)
RUN = $(shell find $(srcdir) -regextype posix-egrep \( -name t-\*.sh -or -path */api/\*.sh \) -and -regex "$(srcdir)/.*($(T)).*" -and -not -regex "$(srcdir)/.*($(S)).*" | sort)
ALL = $(shell find $(srcdir) \( -path \*/shell/\*.sh -or -path \*/api/\*.sh \) | sort)
RUN = $(shell find $(srcdir) -regextype posix-egrep \( -path \*/shell/\*.sh -or -path \*/api/\*.sh \) -and -regex "$(srcdir)/.*($(T)).*" -and -not -regex "$(srcdir)/.*($(S)).*" | sort)
RUN_BASE = $(subst $(srcdir)/,,$(RUN))
# Shell quote;
@@ -91,6 +91,7 @@ LIB = lib/not lib/should lib/harness \
CMDS = lvm $(shell cat $(top_builddir)/tools/.commands)
.tests-stamp: $(ALL) $(LIB)
mkdir -p shell
@if test "$(srcdir)" != . ; then \
echo "Copying tests to builddir."; \
for f in $(ALL); do cp $$f `echo $$f | sed -e s,^$(srcdir)/,,`; done; \

0
test/t-000-basic.sh → test/shell/000-basic.sh Executable file → Normal file
View File

0
test/t-covercmd.sh → test/shell/covercmd.sh Executable file → Normal file
View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

0
test/t-metadata.sh → test/shell/metadata.sh Executable file → Normal file
View File

0
test/t-pool-labels.sh → test/shell/pool-labels.sh Executable file → Normal file
View File

View File

View File

View File

View File

View File

0
test/t-pvmove-basic.sh → test/shell/pvmove-basic.sh Executable file → Normal file
View File

View File

0
test/t-read-ahead.sh → test/shell/read-ahead.sh Executable file → Normal file
View File

View File

0
test/t-tags.sh → test/shell/tags.sh Executable file → Normal file
View File

View File

View File

View File

View File

View File

View File

View File

View File