Fix run-one-test so that it runs elf tests
authorArjun Shankar <arjun@redhat.com>
Tue, 5 Nov 2019 15:41:25 +0000 (16:41 +0100)
committerArjun Shankar <ashankar@redhat.com>
Tue, 5 Nov 2019 16:45:07 +0000 (17:45 +0100)
The `test' make target passes a trailing slash in the subdir argument.  This
does not play well with elf/rtld-Rules which looks for `elf' without any
trailing slash, and therefore doesn't find a match when running an elf test
individually.  This commit removes the trailing slash from the invocation.

Reviewed-by: DJ Delorie <dj@redhat.com>
Makefile

index 335155c..fae71aa 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -691,6 +691,6 @@ iconvdata/% localedata/% po/%: FORCE
 .PHONY: test
 test :
        @-rm -f $(objpfx)$t.out
-       $(MAKE) subdir=$(dir $t) -C $(dir $t) ..=../ $(objpfx)$t.out
+       $(MAKE) subdir=$(patsubst %/,%,$(dir $t)) -C $(dir $t) ..=../ $(objpfx)$t.out
        @cat $(objpfx)$t.test-result
        @cat $(objpfx)$t.out