OSDN Git Service

カバレッジ測定用オプションの追加
authorbols <bols-blue@lnc.jp>
Thu, 18 Aug 2011 11:21:55 +0000 (20:21 +0900)
committerbols <bols-blue@lnc.jp>
Thu, 18 Aug 2011 11:21:55 +0000 (20:21 +0900)
makefile 処理内容の追記
nsl_gcov.awk カバレッジのフィルタsc以外の除去

USB_Keybord_MAX3421E/src/Makefile
USB_Keybord_MAX3421E/src/nsl_gcov.awk [new file with mode: 0644]

index ee6a79a..0415c54 100644 (file)
@@ -24,6 +24,8 @@ OBJCS=$(patsubst %.cpp,%.o,$(filter %.cpp,$(CPP_SRCS)))
 all:create_sc TestMain
        echo $(SC_SRCS)
        ./TestMain
+       gcov SPI_controler_top.cpp | awk -f nsl_gcov.awk
+       
 
 create_sc:$(SC_SRCS)
 
@@ -33,3 +35,6 @@ TestMain:$(OBJCS) TestMain.cpp
        nsl2sc $<
 
 SPI_controler_top.o: 
+
+clean:
+       rm *.o TestMain *.gcov *.gcda *.gcno
diff --git a/USB_Keybord_MAX3421E/src/nsl_gcov.awk b/USB_Keybord_MAX3421E/src/nsl_gcov.awk
new file mode 100644 (file)
index 0000000..3de4d93
--- /dev/null
@@ -0,0 +1,11 @@
+BEGIN {
+  count = 0
+}
+
+/\.sc/,/\.sc:creating/ {
+  print "\t"$0
+}
+
+END {
+  print "end file"
+}