summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/sync/Makefile
diff options
context:
space:
mode:
authorEmilio López <emilio.lopez@collabora.co.uk>2016-10-19 15:49:48 +0300
committerShuah Khan <shuahkh@osg.samsung.com>2016-12-02 04:12:50 +0300
commit82208160ae35ca00b5494c5c90c1a8721b15bdb1 (patch)
treef68d64530389429e4aa09225b35eb0ec8fa1c3f1 /tools/testing/selftests/sync/Makefile
parent1001354ca34179f3db924eb66672442a173147dc (diff)
downloadlinux-82208160ae35ca00b5494c5c90c1a8721b15bdb1.tar.xz
selftest: sync: basic tests for sw_sync framework
These tests are based on the libsync test suite from Android. This commit lays the ground for future tests, as well as includes tests for a variety of basic allocation commands. Signed-off-by: Emilio López <emilio.lopez@collabora.co.uk> Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Diffstat (limited to 'tools/testing/selftests/sync/Makefile')
-rw-r--r--tools/testing/selftests/sync/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/testing/selftests/sync/Makefile b/tools/testing/selftests/sync/Makefile
new file mode 100644
index 000000000000..620a59ae2dab
--- /dev/null
+++ b/tools/testing/selftests/sync/Makefile
@@ -0,0 +1,18 @@
+CFLAGS += -O2 -g -std=gnu89 -pthread -Wall -Wextra
+CFLAGS += -I../../../../usr/include/
+LDFLAGS += -pthread
+
+TEST_PROGS = sync_test
+
+all: $(TEST_PROGS)
+
+include ../lib.mk
+
+OBJS = sync_test.o sync.o
+
+TESTS += sync_alloc.o
+
+sync_test: $(OBJS) $(TESTS)
+
+clean:
+ $(RM) sync_test $(OBJS) $(TESTS)