Makefile: fix bug when running make install under tests/* directory
authorYang Xu <xuyang2018.jy@fujitsu.com>
Wed, 30 Jun 2021 01:52:05 +0000 (09:52 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 4 Jul 2021 11:05:53 +0000 (19:05 +0800)
commit23e3bf7e28be1870192d4a3682508845b3ac9d69
treef6437d3117beaee2763520fa042318f232e3ff55
parentc9419e671d0c41d76398734150811683f9f0d53e
Makefile: fix bug when running make install under tests/* directory

The TESTS_DIR value is defined in TOPDIR makefile, it is empty here.
So running make install on ext4 directory will get the following info:

../../install-sh -o root -g root -m 755 -d /var/lib/xfstests//ext4

We can see they aren't installed under /var/lib/xfstests/tests/ext4 directory.
Fix this by moving TESTS_DIR definition to include/builddefs.in file.

Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
Makefile
include/builddefs.in