summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/powerpc/mm/Makefile
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2014-12-09 11:44:07 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2015-01-23 14:02:49 +1100
commit3776c2096790233b06c8b4e82046daa77c63fced (patch)
tree8c066ed2b434ac7533755dcf7d606f5605daf1c4 /tools/testing/selftests/powerpc/mm/Makefile
parentb64eedb88b43da9e1ecfe4c197892e6562f4e1df (diff)
selftests/powerpc: Add subpage protection self test.
Signed-off-by: Paul Mackerras <paulus@samba.org> Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> mpe: Fix compile errors and formatting. Add tempfile logic to Makefile. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/testing/selftests/powerpc/mm/Makefile')
-rw-r--r--tools/testing/selftests/powerpc/mm/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/testing/selftests/powerpc/mm/Makefile b/tools/testing/selftests/powerpc/mm/Makefile
index 357ccbd6bad9..a14c538dd7f8 100644
--- a/tools/testing/selftests/powerpc/mm/Makefile
+++ b/tools/testing/selftests/powerpc/mm/Makefile
@@ -1,9 +1,9 @@
noarg:
$(MAKE) -C ../
-PROGS := hugetlb_vs_thp_test
+PROGS := hugetlb_vs_thp_test subpage_prot
-all: $(PROGS)
+all: $(PROGS) tempfile
$(PROGS): ../harness.c
@@ -12,7 +12,10 @@ run_tests: all
./$$PROG; \
done;
+tempfile:
+ dd if=/dev/zero of=tempfile bs=64k count=1
+
clean:
- rm -f $(PROGS)
+ rm -f $(PROGS) tempfile
.PHONY: all run_tests clean