From 39bb160cb7e48dd391dadb4b0de1f5eb5ce8c5ba Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Wed, 8 Jan 2014 00:17:02 +0100 Subject: [PATCH] add strcmp stress test to make test --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a1de594..c0d1a68 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,9 @@ CFLAGS=-std=c99 -Os -g LDFLAGS=-g CC=musl-gcc -all: wrap.so hello +all: wrap.so hello stress hello: hello.o +stress: stress.o wrap.o: head.h func.h wrap.so: wrap.o $(CC) $(LDFLAGS) -shared -o $@ $< -ldl -lm -lrt -lcrypt @@ -10,3 +11,4 @@ clean: rm -f wrap.so hello *.o test: all LD_PRELOAD=./wrap.so ./hello + LD_PRELOAD=./wrap.so ./stress 2>&1 |wc -l -- 2.20.1