commit f944701aa5357b5d3862996e06e4cdc992e35856
parent 52add44eb8cdf0af28de9b758ed7149e0f592f37
Author: kyle <kyle@0x30.net>
Date: Sat, 19 Nov 2016 13:34:22 -0700
move two scripts into Jamrules
Diffstat:
3 files changed, 23 insertions(+), 16 deletions(-)
diff --git a/Jamrules b/Jamrules
@@ -6,12 +6,11 @@
# If PREFIX is set we're building a package, so trust that will be the final
# (after installation) location.
#
+echo ...build C It Run on $(OS)... ;
if $(PREFIX) {
- echo ...build citrun-RELEASE on $(OS)... ;
CITRUN_SHARE = $(PREFIX)/share/citrun ;
}
else {
- echo ...build citrun-DEBUG on $(OS)... ;
CITRUN_SHARE = "`readlink -f $(TOP)/src`" ;
CFLAGS += -Wall -g ;
}
@@ -59,6 +58,28 @@ if $(OS) = LINUX {
LINKLIBS on citrun-inst += -Wl,--start-group $(CLANG_LIBS) -Wl,--end-group ;
}
+actions StaticAnalysis
+{
+ export CITRUN_SA=1
+ scan-build -o html --use-c++=eg++ jam -j4
+ # scan-build -o html -v --use-c++=eg++ jam -j4
+}
+
+actions TestCoverage
+{
+ export CITRUN_COVERAGE=1
+ CFLAGS="-coverage -ggdb" jam -j4
+
+ prove || true
+ # prove tt
+
+ gcov -o src src/rt.c
+ egcov -r src/*.cc
+}
+
+StaticAnalysis static-analysis ;
+TestCoverage test-coverage ;
+
if $(CITRUN_SA) {
# scan-build sets these expecting us to pick up the new values.
CC = $(CC) ;
diff --git a/distrib/gcov.sh b/distrib/gcov.sh
@@ -1,10 +0,0 @@
-#!/bin/sh -e
-
-export CITRUN_COVERAGE=1
-CFLAGS="-coverage -O0 -g" jam -j4
-
-prove || true
-# prove tt
-
-gcov -o src src/rt.c
-egcov -r src/*.cc
diff --git a/distrib/sa.sh b/distrib/sa.sh
@@ -1,4 +0,0 @@
-#!/bin/sh -e
-
-export CITRUN_SA=1
-scan-build -o html --use-c++=eg++ jam -j4