Skip to contentSkip to conversation

+ selftests-add-hugetlbfstest.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Jun 28, 2013 Kselftest

lore
Share & tools
lore
#0 lore raw

Subject: + selftests-add-hugetlbfstest.patch added to -mm tree
To: [email protected]
From: [email protected]
Date: Fri, 28 Jun 2013 14:58:05 -0700

The patch titled
Subject: selftests: add hugetlbfstest
has been added to the -mm tree. Its filename is
selftests-add-hugetlbfstest.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Joern Engel <[email protected]>
Subject: selftests: add hugetlbfstest

As the confusing naming indicates, this test has some overlap with pre-existing tests. Would be nice to merge them eventually. But since it is only test code, cleanliness is much less important than mere existence.

---

 tools/testing/selftests/vm/Makefile        |    2 
 tools/testing/selftests/vm/hugetlbfstest.c |   84 +++++++++++++++++++
 tools/testing/selftests/vm/run_vmtests     |   11 ++
 3 files changed, 96 insertions(+), 1 deletion(-)
tools/testing/selftests/vm/Makefile renamed from tools/testing/selftests/vm/Makefile~selftests-add-hugetlbfstest +1 -1
diff -puN tools/testing/selftests/vm/Makefile~selftests-add-hugetlbfstest tools/testing/selftests/vm/Makefile
@@ -2,7 +2,7 @@
 
 CC = $(CROSS_COMPILE)gcc
 CFLAGS = -Wall
-BINARIES = hugepage-mmap hugepage-shm map_hugetlb thuge-gen
+BINARIES = hugepage-mmap hugepage-shm map_hugetlb thuge-gen hugetlbfstest
 
 all: $(BINARIES)
 %: %.c
tools/testing/selftests/vm/hugetlbfstest.c new file +84 -0

84 lines not on this page · raw message

tools/testing/selftests/vm/run_vmtests renamed from tools/testing/selftests/vm/run_vmtests~selftests-add-hugetlbfstest +11 -0
diff -puN tools/testing/selftests/vm/run_vmtests~selftests-add-hugetlbfstest tools/testing/selftests/vm/run_vmtests
@@ -75,6 +75,17 @@ else
 	echo "[PASS]"
 fi
 
+echo "--------------------"
+echo "running hugetlbfstest"
+echo "--------------------"
+./hugetlbfstest
+if [ $? -ne 0 ]; then
+	echo "[FAIL]"
+	exitcode=1
+else
+	echo "[PASS]"
+fi
+
 #cleanup
 umount $mnt
 rm -rf $mnt

_

Patches currently in -mm which might be from [email protected] are

linux-next.patch
nilfs2-implement-calculation-of-free-inodes-count.patch nilfs2-use-atomic64_t-type-for-inodes_count-and-blocks_count-fields-in-nilfs_root-struct.patch selftests-exit-1-on-failure.patch
self-test-fix-make-clean.patch
selftests-add-hugetlbfstest.patch