[Tux3] [PATCH] Added Makefile
Shapor Naghibzadeh
shapor at gmail.com
Wed Aug 6 16:02:39 PDT 2008
# HG changeset patch
# User shapor at yzf.shapor.com
# Date 1218063749 25200
# Node ID e811a6273af8567779a86ac24910ea961e0d212e
# Parent c3c7581a4fe41789f43077a979327715bfca9058
Added Makefile.
Fail on valgrind errors.
Add free(leaf) to fleaf test.
diff -r c3c7581a4fe4 -r e811a6273af8 user/test/fleaf.c
--- a/user/test/fleaf.c Wed Aug 06 12:27:13 2008 -0700
+++ b/user/test/fleaf.c Wed Aug 06 16:02:29 2008 -0700
@@ -415,6 +415,7 @@ int main(int argc, char *argv[])
leaf_insert(leaf, i << 12 + i, (struct extent){ .block = i });
leaf_dump(leaf);
}
+ free(leaf);
return 0;
leaf_insert(leaf, targets[next++], (struct extent){ .block = 0x111 });
leaf_insert(leaf, targets[next++], (struct extent){ .block = 0x222 });
diff -r c3c7581a4fe4 -r e811a6273af8 user/test/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/user/test/Makefile Wed Aug 06 16:02:29 2008 -0700
@@ -0,0 +1,18 @@
+CC=gcc
+CFLAGS += -std=gnu99
+VG=valgrind
+VGFLAGS=--error-exitcode=200
+all: fleaf ileaf
+tests: fleaftest ileaftest
+
+fleaf: fleaf.c tux3.h hexdump.c
+ $(CC) $(CFLAGS) fleaf.c -o fleaf.o
+fleaftest: fleaf
+ $(VG) $(VGFLAGS) ./fleaf.o
+
+ileaf: ileaf.c tux3.h hexdump.c
+ $(CC) $(CFLAGS) ileaf.c -o ileaf.o
+ileaftest: fleaf
+ $(VG) $(VGFLAGS) ./ileaf.o
+
+clean: rm *.o
_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://tux3.org/cgi-bin/mailman/listinfo/tux3
More information about the Tux3
mailing list