Imported Upstream version 2.4.46
[platform/upstream/attr.git] / test / Makefile
1 #
2 # Copyright (c) 2001-2002 Silicon Graphics, Inc.  All Rights Reserved.
3 # Copyright (C) 2009  Andreas Gruenbacher <agruen@suse.de>
4 #
5 # This program is free software: you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 #
18
19 TOPDIR = ..
20 include $(TOPDIR)/include/builddefs
21
22 TEST = $(wildcard *.test)
23 EXT = $(wildcard ext/*.test)
24 ROOT = $(wildcard root/*.test)
25
26 # ensure we pick these up in the source tarball
27 LSRCFILES = $(TEST) $(EXT) $(ROOT) run sort-getfattr-output README
28
29 default install install-dev install-lib:
30
31 include $(BUILDRULES)
32
33 PATH := $(abspath ../getfattr/):$(abspath ../setfattr):$(abspath ../chattr):$(PATH)
34
35 tests: $(TEST)
36 ext-tests: $(EXT)
37 root-tests: $(ROOT)
38
39 $(TEST):
40         @echo "*** $@ ***"; perl run $@
41
42 $(EXT):
43         @echo "EXT specific tests"; @echo "*** $@ ***"; perl run $@
44
45 $(ROOT):
46         @echo "Note: Tests must run as root"; @echo "*** $@ ***"; perl run $@
47
48 .PHONY: $(TEST) $(EXT) $(ROOT)
49 .NOTPARALLEL: