summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/efivarfs/Makefile
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-02-28 05:05:52 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-28 07:10:24 +0400
commit455ce1c721b1787e6695c535528034e9e7271f37 (patch)
tree559364b3ef0298562f40bcd0c0d6e360d4c43d57 /tools/testing/selftests/efivarfs/Makefile
parentdfe2a77fd243ac3bf204fd0624e4d0b2134aaa6d (diff)
downloadlinux-455ce1c721b1787e6695c535528034e9e7271f37.tar.xz
selftests: add tests for efivarfs
This change adds a few initial efivarfs tests to the tools/testing/selftests directory. The open-unlink test is based on code from Lingzhu Xiang. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Cc: Matt Fleming <matt.fleming@intel.com> Cc: Lingzhu Xiang <lxiang@redhat.com> Cc: Dave Young <dyoung@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/testing/selftests/efivarfs/Makefile')
-rw-r--r--tools/testing/selftests/efivarfs/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/testing/selftests/efivarfs/Makefile b/tools/testing/selftests/efivarfs/Makefile
new file mode 100644
index 000000000000..b64f61467e26
--- /dev/null
+++ b/tools/testing/selftests/efivarfs/Makefile
@@ -0,0 +1,12 @@
+CC = $(CROSS_COMPILE)gcc
+CFLAGS = -Wall
+
+test_objs = open-unlink
+
+all: $(test_objs)
+
+run_tests: all
+ @/bin/bash ./efivarfs.sh || echo "efivarfs selftests: [FAIL]"
+
+clean:
+ rm -f $(test_objs)