~danieljabailey/inkscape/arc_node_editor

« back to all changes in this revision

Viewing changes to share/extensions/test/run-all-extension-tests

  • Committer: tavmjong-free
  • Date: 2016-05-08 07:44:05 UTC
  • mfrom: (14873.1.1 gtk3)
  • Revision ID: tavmjong@free.fr-20160508074405-rm6tiapoq1ugamph
Start of GTK3 external style sheet support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
py_cover_files=$( $MKTEMP )
36
36
failed_tests=$( $MKTEMP )
37
37
 
38
 
if coverage.py erase >/dev/null 2>/dev/null; then
 
38
if coverage.py -e >/dev/null 2>/dev/null; then
39
39
  has_py_coverage=true
40
40
  cover_py_cmd=coverage.py
41
41
else
42
 
  if coverage erase >/dev/null 2>/dev/null; then
 
42
  if coverage -e >/dev/null 2>/dev/null; then
43
43
    has_py_coverage=true
44
44
    cover_py_cmd=coverage
45
 
    else
46
 
      if python-coverage erase >/dev/null 2>/dev/null; then
47
 
        has_py_coverage=true
48
 
        cover_py_cmd=python-coverage
49
 
      fi
50
45
  fi
51
46
fi
52
47
 
53
 
if $has_py_coverage; then
54
 
    echo -e "\nRunning tests with coverage"
55
 
fi
56
48
#if $has_py_coverage; then
57
49
#  $cover_py_cmd -e
58
50
#fi
59
51
 
60
52
function run_py_test() {
61
 
  echo -e "\n>>>>>> Testing $1 <<<<<<\n"
 
53
  echo -e "\n>> Testing $1"
62
54
  if $has_py_coverage; then
63
 
    if ! $cover_py_cmd run -a "$1.test.py"; then
 
55
    if ! $cover_py_cmd -x "$1.test.py"; then
64
56
      echo "$1" >> $failed_tests
65
57
    fi
66
58
    echo "../$1.py" >> $py_cover_files
85
77
    SED_EXTENDED='sed -E' # BSD sed (e.g. on Mac OS X)
86
78
fi
87
79
 
88
 
echo -e "sed regex command: $SED_EXTENDED\n"
 
80
echo "sed regex command: $SED_EXTENDED"
89
81
 
90
82
# ---------------------------------------------------------------------
91
83
 
97
89
 
98
90
if $has_py_coverage; then
99
91
  echo -e "\n>> Coverage Report:"
100
 
  cat $py_cover_files | xargs $cover_py_cmd report
 
92
  cat $py_cover_files | xargs $cover_py_cmd -r
101
93
fi
102
94
 
103
95
fail=false