aboutsummaryrefslogtreecommitdiff
path: root/mapper.lv2/test
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2018-05-19 20:01:06 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2018-05-19 20:01:06 +0200
commit76bb6b1e06d39c6e88389be797883ba561b11e82 (patch)
tree56152894ec72e30c08c6eec6aae3204521766e66 /mapper.lv2/test
parent053da68af8d7713b0c1eff5b07684553e03ada75 (diff)
parenteac10873013f44c4d58cbe670e5f507e2df0519c (diff)
downloadsynthpod-76bb6b1e06d39c6e88389be797883ba561b11e82.tar.xz
Merge commit 'eac10873013f44c4d58cbe670e5f507e2df0519c'
Diffstat (limited to 'mapper.lv2/test')
-rw-r--r--mapper.lv2/test/Makefile33
-rw-r--r--mapper.lv2/test/mapper_test.c1
2 files changed, 1 insertions, 33 deletions
diff --git a/mapper.lv2/test/Makefile b/mapper.lv2/test/Makefile
deleted file mode 100644
index 2fdf6467..00000000
--- a/mapper.lv2/test/Makefile
+++ /dev/null
@@ -1,33 +0,0 @@
-CC ?= clang
-C_FLAGS ?= -I../ -Wall -Wextra -Wpedantic $(shell pkg-config --cflags lv2)
-LD_FLAGS ?= -lpthread -lm
-SEED ?= 1234567890
-
-all: mapper_assert mapper_speed
-
-mapper_assert: mapper_test.c ../mapper.lv2/mapper.h
- $(CC) -std=c11 -g -o $@ $< $(C_FLAGS) $(LD_FLAGS)
-
-mapper_speed: mapper_test.c ../mapper.lv2/mapper.h
- $(CC) -std=c11 -O3 -o $@ $< $(C_FLAGS) $(LD_FLAGS)
-
-test_assert: mapper_assert
- ./$< 1 0 $(SEED)
- ./$< 2 1 $(SEED)
- ./$< 4 0 $(SEED)
- ./$< 8 1 $(SEED)
- ./$< 16 0 $(SEED)
- ./$< 32 1 $(SEED)
-
-test_speed: mapper_speed
- ./$< 1 0 $(SEED)
- ./$< 2 1 $(SEED)
- ./$< 4 0 $(SEED)
- ./$< 8 1 $(SEED)
- ./$< 16 0 $(SEED)
- ./$< 32 1 $(SEED)
-
-test: test_assert test_speed
-
-clean:
- rm -f mapper_assert mapper_speed
diff --git a/mapper.lv2/test/mapper_test.c b/mapper.lv2/test/mapper_test.c
index dc584fa2..0c9c3c12 100644
--- a/mapper.lv2/test/mapper_test.c
+++ b/mapper.lv2/test/mapper_test.c
@@ -23,6 +23,7 @@
#include <inttypes.h>
#include <pthread.h>
#include <assert.h>
+#include <time.h>
#include <math.h>
#include "random.c"