selftests: sync: kselftest and kselftest-clean fail for make O=dir case
authorShuah Khan <shuahkh@osg.samsung.com>
Mon, 11 Sep 2017 20:14:41 +0000 (14:14 -0600)
committerShuah Khan <shuahkh@osg.samsung.com>
Thu, 21 Sep 2017 13:55:40 +0000 (07:55 -0600)
commitb2fc6ade9fe2118591e7f51e21b51f65e36f138f
treeb5128f71dba597797535b4a1af917f07d17bc71a
parent38f7251852a0cd47f34af4a6f84df0fadafa8ac7
selftests: sync: kselftest and kselftest-clean fail for make O=dir case

sync test fails to build when object directory is specified to relocate
object files. Fix it to specify the correct path. Fix clean target to
remove objects. Also include simplified logic to use TEST_CUSTOM_PROGS
in build and clean targets instead of hard-coding the test name each
time.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/sync/Makefile