Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c3340ea authored by Shuah Khan's avatar Shuah Khan
Browse files

selftests: futex: copy sub-dir test scripts for make O=dir run



For make O=dir run_tests to work, test scripts from sub-directories
need to be copied over to the object directory. Running tests from the
object directory is necessary to avoid making the source tree dirty.

Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
Reviewed-by: default avatarDarren Hart (VMware) <dvhart@infradead.org>
Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
parent 1a940687
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -11,10 +11,13 @@ all:
		BUILD_TARGET=$(OUTPUT)/$$DIR;	\
		mkdir $$BUILD_TARGET  -p;	\
		make OUTPUT=$$BUILD_TARGET -C $$DIR $@;\
		if [ -e $$DIR/$(TEST_PROGS) ]; then
			rsync -a $$DIR/$(TEST_PROGS) $$BUILD_TARGET/;
		fi
	done

override define RUN_TESTS
	$(OUTPUT)/run.sh
	cd $(OUTPUT); ./run.sh
endef

override define INSTALL_RULE