add strcmp stress test to make test
authorSzabolcs Nagy <nsz@port70.net>
Tue, 7 Jan 2014 23:17:02 +0000 (00:17 +0100)
committerSzabolcs Nagy <nsz@port70.net>
Tue, 7 Jan 2014 23:17:02 +0000 (00:17 +0100)
Makefile

index a1de594..c0d1a68 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,9 @@
 CFLAGS=-std=c99 -Os -g
 LDFLAGS=-g
 CC=musl-gcc
 CFLAGS=-std=c99 -Os -g
 LDFLAGS=-g
 CC=musl-gcc
-all: wrap.so hello
+all: wrap.so hello stress
 hello: hello.o
 hello: hello.o
+stress: stress.o
 wrap.o: head.h func.h
 wrap.so: wrap.o
        $(CC) $(LDFLAGS) -shared -o $@ $< -ldl -lm -lrt -lcrypt
 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
        rm -f wrap.so hello *.o
 test: all
        LD_PRELOAD=./wrap.so ./hello
+       LD_PRELOAD=./wrap.so ./stress 2>&1 |wc -l