~ubuntu-branches/ubuntu/trusty/pitivi/trusty

« back to all changes in this revision

Viewing changes to common/check.mak

  • Committer: Bazaar Package Importer
  • Author(s): Loic Minier
  • Date: 2007-01-31 15:32:37 UTC
  • mto: (3.2.1 hardy) (1.2.1 upstream) (6.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20070131153237-de4p8lipjv8x5x3b
Tags: upstream-0.10.2
ImportĀ upstreamĀ versionĀ 0.10.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
# valgrind any given test by running make test.valgrind
43
43
%.valgrind: %
44
44
        $(TESTS_ENVIRONMENT)                                    \
45
 
        CK_DEFAULT_TIMEOUT=60                                   \
 
45
        CK_DEFAULT_TIMEOUT=360                                  \
46
46
        G_SLICE=always-malloc                                   \
47
47
        libtool --mode=execute                                  \
48
48
        $(VALGRIND_PATH) -q                                     \
49
49
        $(foreach s,$(SUPPRESSIONS),--suppressions=$(s))        \
50
50
        --tool=memcheck --leak-check=full --trace-children=yes  \
51
51
        --leak-resolution=high --num-callers=20                 \
52
 
        $* 2>&1 | tee valgrind.log
 
52
        ./$* 2>&1 | tee valgrind.log
53
53
        @if grep "==" valgrind.log > /dev/null 2>&1; then       \
54
54
            rm valgrind.log;                                    \
55
55
            exit 1;                                             \
66
66
        --tool=memcheck --leak-check=full --trace-children=yes  \
67
67
        --leak-resolution=high --num-callers=20                 \
68
68
        --gen-suppressions=all                                  \
69
 
        $* 2>&1 | tee suppressions.log
 
69
        ./$* 2>&1 | tee suppressions.log
70
70
        
71
71
# valgrind any given test until failure by running make test.valgrind-forever
72
72
%.valgrind-forever: %
121
121
                false;                                                  \
122
122
        fi
123
123
 
 
124
# inspect every plugin feature
 
125
GST_INSPECT = $(GST_TOOLS_DIR)/gst-inspect-$(GST_MAJORMINOR)
 
126
inspect:
 
127
        @echo "Inspecting features ..."
 
128
        for e in `$(TESTS_ENVIRONMENT) $(GST_INSPECT) | head -n -2      \
 
129
          | cut -d: -f2`;                                               \
 
130
          do echo Inspecting $$e;                                       \
 
131
             $(GST_INSPECT) $$e > /dev/null 2>&1; done
 
132
 
124
133
help:
125
134
        @echo "make check                         -- run all checks"
126
135
        @echo "make torture                       -- run all checks $(LOOPS) times"
135
144
        @echo "make (dir)/(test).valgrind-forever -- valgrind the given test forever"
136
145
        @echo "make (dir)/(test).valgrind.gen-suppressions -- generate suppressions"
137
146
        @echo "                                               and save to suppressions.log"
 
147
        @echo "make inspect                       -- inspect all plugin features"
 
148