hc
2023-05-26 a23f51ed7a39e452c1037343a84d7db1ca2c5bd7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
TESTS = pcre_stringpiece_unittest RunTest RunGrepTest
subdir = .
am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
am__vpath_adj = case $$p in \
    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
    *) f=$$p;; \
  esac;
am__tty_colors_dummy = \
  mgn= red= grn= lgn= blu= brg= std=; \
  am__color_tests=no
am__tty_colors = { \
  $(am__tty_colors_dummy); \
  if test "X$(AM_COLOR_TESTS)" = Xno; then \
    am__color_tests=no; \
  elif test "X$(AM_COLOR_TESTS)" = Xalways; then \
    am__color_tests=yes; \
  elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \
    am__color_tests=yes; \
  fi; \
  if test $$am__color_tests = yes; then \
    red=''; \
    grn=''; \
    lgn=''; \
    blu=''; \
    mgn=''; \
    brg=''; \
    std=''; \
  fi; \
}
am__rst_title = { sed 's/.*/   &   /;h;s/./=/g;p;x;s/ *$$//;p;g' && echo; }
am__sh_e_setup = case $$- in *e*) set +e;; esac
am__common_driver_flags = \
  --color-tests "$$am__color_tests" \
  --enable-hard-errors "$$am__enable_hard_errors" \
  --expect-failure "$$am__expect_failure"
am__check_pre = \
$(am__sh_e_setup); \
$(am__vpath_adj_setup) $(am__vpath_adj) \
$(am__tty_colors); \
srcdir=$(srcdir); export srcdir; \
case "$@" in \
  */*) am__odir=`echo "./$@" | sed 's|/[^/]*$$||'`;; \
    *) am__odir=.;; \
esac; \
test "x$$am__odir" = x"." || test -d "$$am__odir" \
  || $(MKDIR_P) "$$am__odir" || exit $$?; \
if test -f "./$$f"; then dir=./; \
elif test -f "$$f"; then dir=; \
else dir="$(srcdir)/"; fi; \
tst=$$dir$$f; log='$@'; \
if test -n '$(DISABLE_HARD_ERRORS)'; then \
  am__enable_hard_errors=no; \
else \
  am__enable_hard_errors=yes; \
fi;
am__set_TESTS_bases = \
  bases='$(TEST_LOGS)'; \
  bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
  bases=`echo $$bases`
RECHECK_LOGS = $(TEST_LOGS)
TEST_SUITE_LOG = test-suite.log
TEST_EXTENSIONS =  .test
LOG_DRIVER = $(SHELL) $(top_srcdir)/test-driver
am__test_logs1 = $(TESTS:=.log)
am__test_logs2 = $(am__test_logs1:.log=.log)
TEST_LOGS = $(am__test_logs2:.test.log=.log)
MKDIR_P = /bin/mkdir -p
PACKAGE_STRING = PCRE 8.36
SHELL = /bin/sh
srcdir = .
top_srcdir = .
$(TEST_SUITE_LOG): $(TEST_LOGS)
   @$(am__set_TESTS_bases); \
   am__f_ok () { test -f "$$1" && test -r "$$1"; }; \
   redo_bases=`for i in $$bases; do \
                 am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \
               done`; \
   st=0;  \
   errmsg="fatal: making $(TEST_SUITE_LOG): failed to create"; \
   for i in $$redo_bases; do \
     test -f $$i.trs && test -r $$i.trs \
       || { echo "$$errmsg $$i.trs" >&2; st=1; }; \
     test -f $$i.log && test -r $$i.log \
       || { echo "$$errmsg $$i.log" >&2; st=1; }; \
   done; \
   test $$st -eq 0 || exit 1;
   @$(am__sh_e_setup); $(am__tty_colors); $(am__set_TESTS_bases); \
   ws='[     ]'; \
   results=`for b in $$bases; do echo $$b.trs; done`; \
   test -n "$$results" || results=/dev/null; \
   all=`  grep "^$$ws*:test-result:"           $$results | wc -l`; \
   pass=` grep "^$$ws*:test-result:$$ws*PASS"  $$results | wc -l`; \
   fail=` grep "^$$ws*:test-result:$$ws*FAIL"  $$results | wc -l`; \
   skip=` grep "^$$ws*:test-result:$$ws*SKIP"  $$results | wc -l`; \
   xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \
   xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \
   error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \
   if test `expr $$fail + $$xpass + $$error` -eq 0; then \
     success=true; \
   else \
     success=false; \
   fi; \
   br='==================='; br=$$br$$br$$br$$br; \
   result_count () \
   { \
       if test x"$$1" = x"--maybe-color"; then \
         maybe_colorize=yes; \
       elif test x"$$1" = x"--no-color"; then \
         maybe_colorize=no; \
       else \
         echo "$@: invalid 'result_count' usage" >&2; exit 4; \
       fi; \
       shift; \
       desc=$$1 count=$$2; \
       if test $$maybe_colorize = yes && test $$count -gt 0; then \
         color_start=$$3 color_end=$$std; \
       else \
         color_start= color_end=; \
       fi; \
       echo "$${color_start}# $$desc $$count$${color_end}"; \
   }; \
   create_testsuite_report () \
   { \
     result_count $$1 "TOTAL:" $$all   "$$brg"; \
     result_count $$1 "PASS: " $$pass  "$$grn"; \
     result_count $$1 "SKIP: " $$skip  "$$blu"; \
     result_count $$1 "XFAIL:" $$xfail "$$lgn"; \
     result_count $$1 "FAIL: " $$fail  "$$red"; \
     result_count $$1 "XPASS:" $$xpass "$$red"; \
     result_count $$1 "ERROR:" $$error "$$mgn"; \
   }; \
   {                                \
     echo "$(PACKAGE_STRING): $(subdir)/$(TEST_SUITE_LOG)" |    \
       $(am__rst_title);                        \
     create_testsuite_report --no-color;                \
     echo;                                \
     echo ".. contents:: :depth: 2";                \
     echo;                                \
     for b in $$bases; do echo $$b; done;                \
   } >$(TEST_SUITE_LOG).tmp || exit 1;                \
   mv $(TEST_SUITE_LOG).tmp $(TEST_SUITE_LOG);            \
   if $$success; then                        \
     col="$$grn";                            \
    else                                \
     col="$$red";                            \
     test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG);        \
   fi;                                \
   echo "$${col}$$br$${std}";                     \
   echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}";    \
   echo "$${col}$$br$${std}";                     \
   create_testsuite_report --maybe-color;                \
   echo "$$col$$br$$std";                        \
   if $$success; then :; else                    \
     echo "$${col}See $(subdir)/$(TEST_SUITE_LOG)$${std}";        \
     echo "$$col$$br$$std";                    \
   fi;                                \
   $$success || exit 1
check-TESTS:
   @list='$(RECHECK_LOGS)';           test -z "$$list" || rm -f $$list
   @test -z "$(TEST_SUITE_LOG)" || rm -f $(TEST_SUITE_LOG)
   @set +e; $(am__set_TESTS_bases); \
   log_list=`for i in $$bases; do echo $$i.log; done`; \
   log_list=`echo $$log_list`; \
   $(MAKE) $(AM_MAKEFLAGS) $(TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \
   exit $$?;
pcre_stringpiece_unittest.log: pcre_stringpiece_unittest$(EXEEXT)
   @p='pcre_stringpiece_unittest$(EXEEXT)'; \
   b='pcre_stringpiece_unittest'; \
   $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
   --log-file $$b.log --trs-file $$b.trs \
   $(am__common_driver_flags) -- "$$tst"
RunTest.log: RunTest
   @p='RunTest'; \
   b='RunTest'; \
   $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
   --log-file $$b.log --trs-file $$b.trs \
   $(am__common_driver_flags) -- "$$tst"
RunGrepTest.log: RunGrepTest
   @p='RunGrepTest'; \
   b='RunGrepTest'; \
   $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \
   --log-file $$b.log --trs-file $$b.trs \
   $(am__common_driver_flags) -- "$$tst"