aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/efivarfs/Makefile
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-02-27 17:05:52 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-27 19:10:24 -0800
commit455ce1c721b1787e6695c535528034e9e7271f37 (patch)
tree559364b3ef0298562f40bcd0c0d6e360d4c43d57 /tools/testing/selftests/efivarfs/Makefile
parentkfifo: fix kfifo_alloc() and kfifo_init() (diff)
downloadlinux-dev-455ce1c721b1787e6695c535528034e9e7271f37.tar.xz
linux-dev-455ce1c721b1787e6695c535528034e9e7271f37.zip
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)