diff options
Diffstat (limited to 'tools/testing/selftests/exec')
| -rw-r--r-- | tools/testing/selftests/exec/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/testing/selftests/exec/Makefile b/tools/testing/selftests/exec/Makefile index 66dfc2ce1788..4edb7d0da29b 100644 --- a/tools/testing/selftests/exec/Makefile +++ b/tools/testing/selftests/exec/Makefile | |||
| @@ -1,4 +1,3 @@ | |||
| 1 | CC = $(CROSS_COMPILE)gcc | ||
| 2 | CFLAGS = -Wall | 1 | CFLAGS = -Wall |
| 3 | BINARIES = execveat | 2 | BINARIES = execveat |
| 4 | DEPS = execveat.symlink execveat.denatured script subdir | 3 | DEPS = execveat.symlink execveat.denatured script subdir |
| @@ -18,8 +17,12 @@ execveat.denatured: execveat | |||
| 18 | %: %.c | 17 | %: %.c |
| 19 | $(CC) $(CFLAGS) -o $@ $^ | 18 | $(CC) $(CFLAGS) -o $@ $^ |
| 20 | 19 | ||
| 21 | run_tests: all | 20 | TEST_PROGS := execveat |
| 22 | ./execveat | 21 | TEST_FILES := $(DEPS) |
| 22 | |||
| 23 | include ../lib.mk | ||
| 24 | |||
| 25 | override EMIT_TESTS := echo "mkdir -p subdir; (./execveat && echo \"selftests: execveat [PASS]\") || echo \"selftests: execveat [FAIL]\"" | ||
| 23 | 26 | ||
| 24 | clean: | 27 | clean: |
| 25 | rm -rf $(BINARIES) $(DEPS) subdir.moved execveat.moved xxxxx* | 28 | rm -rf $(BINARIES) $(DEPS) subdir.moved execveat.moved xxxxx* |
