Debian Codegraph @

src/cdash_reporter.c

raw symbols SCIP
1 #cxx . . $ `<file>/src/cdash_reporter.c`/include <cgreen/breadcrumb.h>cxx . . $ `<file>/include/cgreen/breadcrumb.h`/
2 #include <cgreen/reporter.h>cxx . . $ `<file>/include/cgreen/reporter.h`/
3 #include <errno.h>
4 #include <sys/types.h>
5 #include <sys/stat.h>
6 #include <stdlib.h>
7 #include <stdio.h>
8 #include <string.h>
9 #include <time.h>
10
11 #ifdef __ANDROID__
12 #include "cgreen/internal/android_headers/androidcompat.h"
13 #endif // #ifdef __ANDROID__
14
15 #ifdef _MSC_VER
16 #include <wincompat.h>
17 #endif
18
19 #include <cgreen/cdash_reporter.h>cxx . . $ `<file>/include/cgreen/cdash_reporter.h`/
20 #include "cdash_reporter_internal.h"cxx . . $ `<file>/src/cdash_reporter_internal.h`/
21
22
23 typedef time_tcxx . . $ time_t# Timercxx . . $ Timer#(char *strtime);
24
25 typedef structcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0# {
26 CDashInfocxx . . $ CDashInfo# *infocxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#info.;
27 CDashPrintercxx . . $ CDashPrinter# *printercxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#printer.;
28 CDashVPrintercxx . . $ CDashVPrinter# *vprintercxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#vprinter.;
29 FILEcxx . . $ FILE# *streamcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#stream.;
30 time_tcxx . . $ time_t# begincxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#begin.;
31 time_tcxx . . $ time_t# startdatetimecxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#startdatetime.;
32 time_tcxx . . $ time_t# enddatetimecxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#enddatetime.;
33 time_tcxx . . $ time_t# teststartedcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#teststarted.;
34 time_tcxx . . $ time_t# testfinishedcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#testfinished.;
35 } CDashMemocxx . . $ CDashMemo#;
36
37 static void cdash_destroy_reportercxx . . $ cdash_destroy_reporter(1083e9dac9de8fd0).(TestReportercxx . . $ TestReporter# *reporter);
38 static void cdash_reporter_start_suitecxx . . $ cdash_reporter_start_suite(8490445735e6bcce).(TestReportercxx . . $ TestReporter# *reporter, const char *name, const int number_of_tests);
39 static void cdash_reporter_start_testcxx . . $ cdash_reporter_start_test(499118f5be74126f).(TestReportercxx . . $ TestReporter# *reporter, const char *name);
40
41 static void cdash_show_failcxx . . $ cdash_show_fail(fabf0cf23815ef65).(TestReportercxx . . $ TestReporter# *reporter, const char *file, int line, const char *message, va_listcxx . . $ va_list# arguments);
42 static void cdash_show_passcxx . . $ cdash_show_pass(fabf0cf23815ef65).(TestReportercxx . . $ TestReporter# *reporter, const char *file, int line, const char *message, va_listcxx . . $ va_list# arguments);
43 static void cdash_show_incompletecxx . . $ cdash_show_incomplete(fabf0cf23815ef65).(TestReportercxx . . $ TestReporter# *reporter, const char *file, int line, const char *message, va_listcxx . . $ va_list# arguments);
44
45 static void cdash_finish_testcxx . . $ cdash_finish_test(4c7a3a1bff8d25e8).(TestReportercxx . . $ TestReporter# *reporter, const char *filename, int line,
46 const char *message);
47 static void cdash_finish_suitecxx . . $ cdash_finish_suite(8490445735e6bcce).(TestReportercxx . . $ TestReporter# *reporter, const char *filename, int line);
48
49 static time_tcxx . . $ time_t# cdash_build_stampcxx . . $ cdash_build_stamp(3dbb38d35a4060b).(char *sbuildstamp, size_t sb);
50 static time_tcxx . . $ time_t# cdash_current_timecxx . . $ cdash_current_time(d2cd1729a8aa36c).(char *strtime);
51 static double cdash_elapsed_timecxx . . $ cdash_elapsed_time(f630275aa3e30a1e).(time_tcxx . . $ time_t# t1, time_tcxx . . $ time_t# t2);
52
53
54 void set_cdash_reporter_printercxx . . $ set_cdash_reporter_printer(5ae1a2e3eabb5e05).(TestReportercxx . . $ TestReporter# *reporter, CDashPrintercxx . . $ CDashPrinter# *new_printer) {
55 CDashMemocxx . . $ CDashMemo# *memo = (CDashMemocxx . . $ CDashMemo# *)reporter->memocxx . . $ TestReporter_#memo.;
56 memo->printercxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#printer. = new_printer;
57 }
58
59 void set_cdash_reporter_vprintercxx . . $ set_cdash_reporter_vprinter(386cb8d14b61c110).(TestReportercxx . . $ TestReporter# *reporter, CDashVPrintercxx . . $ CDashVPrinter# *new_vprinter) {
60 CDashMemocxx . . $ CDashMemo# *memo = (CDashMemocxx . . $ CDashMemo# *)reporter->memocxx . . $ TestReporter_#memo.;
61 memo->vprintercxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#vprinter. = new_vprinter;
62 }
63
64
65 TestReportercxx . . $ TestReporter# *create_cdash_reportercxx . . $ create_cdash_reporter(fb929db595dc89d6).(CDashInfocxx . . $ CDashInfo# *info) {
66 TestReportercxx . . $ TestReporter# *reporter;
67 CDashMemocxx . . $ CDashMemo# *memo;
68 FILEcxx . . $ FILE# *fd;
69 char sbuildstamp[15];
70 char strstart[30];
71 char reporter_path[255];
72 int rep_dir, strsize;
73
74
75 if (!info)
76 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
77
78 reporter = create_reportercxx . . $ create_reporter(a6a8ef953e197a65).();
79 if (!reporter)
80 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
81
82 memo = (CDashMemocxx . . $ CDashMemo# *) calloccxx . . $ calloc(63a7bf2941bfcd7a).(1, sizeof(CDashMemocxx . . $ CDashMemo#));
83 if (!memo)
84 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
85 memo->infocxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#info. = info;
86 memo->begincxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#begin. = cdash_build_stampcxx . . $ cdash_build_stamp(3dbb38d35a4060b).(sbuildstamp, 15);
87 reporter->memocxx . . $ TestReporter_#memo. = memo;
88
89 set_cdash_reporter_printercxx . . $ set_cdash_reporter_printer(5ae1a2e3eabb5e05).(reporter, fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).);
90 set_cdash_reporter_vprintercxx . . $ set_cdash_reporter_vprinter(386cb8d14b61c110).(reporter, vfprintfcxx . . $ vfprintf(bded311e54d67f9c).);
91
92 rep_dir = mkdircxx . . $ mkdir(1df18506ef0a631b).("./Testing", S_IXUSRcxx . . $ `<external>/531885356569766532/stat.h:170:9`!|S_IRUSRcxx . . $ `<external>/531885356569766532/stat.h:168:9`!|S_IWUSRcxx . . $ `<external>/531885356569766532/stat.h:169:9`!|S_IXGRPcxx . . $ `<external>/531885356569766532/stat.h:182:9`!|S_IRGRPcxx . . $ `<external>/531885356569766532/stat.h:180:9`!|S_IXOTHcxx . . $ `<external>/531885356569766532/stat.h:188:9`!);
93
94 if (rep_dir) {
95 if (errnocxx . . $ `<external>/17633486526465735210/errno.h:38:10`! != EEXISTcxx . . $ `<external>/8987895939074593727/errno-base.h:21:9`!) {
96 freecxx . . $ free(5d22bdacc48458e8).(memo);
97 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
98 }
99 }
100
101 fd = fopencxx . . $ fopen(82ec0787cd37e0a3).("./Testing/TAG", "w+");
102 if (fd == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
103 freecxx . . $ free(5d22bdacc48458e8).(memo);
104 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
105 }
106
107 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(fd, "%s\n%s\n", sbuildstamp, memo->infocxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#info.->typecxx . . $ CDashInfo_#type.);
108
109 fclosecxx . . $ fclose(89bc1efcdac0ca22).(fd);
110
111 strsize = snprintfcxx . . $ snprintf(ea502d73e74c754c).(reporter_path, sizeof(reporter_path) - 1, "./Testing/%s", sbuildstamp);
112
113 rep_dir = mkdircxx . . $ mkdir(1df18506ef0a631b).(reporter_path, S_IXUSRcxx . . $ `<external>/531885356569766532/stat.h:170:9`!|S_IRUSRcxx . . $ `<external>/531885356569766532/stat.h:168:9`!|S_IWUSRcxx . . $ `<external>/531885356569766532/stat.h:169:9`!|S_IXGRPcxx . . $ `<external>/531885356569766532/stat.h:182:9`!|S_IRGRPcxx . . $ `<external>/531885356569766532/stat.h:180:9`!|S_IXOTHcxx . . $ `<external>/531885356569766532/stat.h:188:9`!);
114
115 if (rep_dir) {
116 if (errnocxx . . $ `<external>/17633486526465735210/errno.h:38:10`! != EEXISTcxx . . $ `<external>/8987895939074593727/errno-base.h:21:9`!) {
117 freecxx . . $ free(5d22bdacc48458e8).(memo);
118 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
119 }
120 }
121
122 snprintfcxx . . $ snprintf(ea502d73e74c754c).( (char *) (reporter_path + strsize), (255 - strsize), "/Test.xml");
123
124 fd = fopencxx . . $ fopen(82ec0787cd37e0a3).(reporter_path, "w+");
125 if (fd == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
126 freecxx . . $ free(5d22bdacc48458e8).(memo);
127 return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!;
128 }
129
130 /* now the Test.xml is in place */
131 memo->streamcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#stream. = fd;
132
133 memo->startdatetimecxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#startdatetime. = cdash_current_timecxx . . $ cdash_current_time(d2cd1729a8aa36c).(strstart);
134
135 memo->printercxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#printer.(memo->streamcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#stream.,
136 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
137 " <Site BuildName=\"%s\" BuildStamp=\"%s-%s\" Name=\"%s\" Generator=\"%s\"\n"
138 " OSName=\"%s\" Hostname=\"%s\" OSRelease=\"%s\"\n"
139 " OSVersion=\"%s\" OSPlatform=\"%s\"\n"
140 " Is64Bits=\"\" VendorString=\"\" VendorID=\"\"\n"
141 " FamilyID=\"\" ModelID=\"\" ProcessorCacheSize=\"\" NumberOfLogicalCPU=\"\"\n"
142 " NumberOfPhysicalCPU=\"\" TotalVirtualMemory=\"\" TotalPhysicalMemory=\"\"\n"
143 " LogicalProcessorsPerPhysical=\"\" ProcessorClockFrequency=\"\" >\n"
144 " <Testing>\n"
145 " <StartDateTime>%s</StartDateTime>\n"
146 " <TestList>\n"
147 " <Test></Test>\n"
148 " </TestList>\n",
149 memo->infocxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#info.->buildcxx . . $ CDashInfo_#build., sbuildstamp, memo->infocxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#info.->typecxx . . $ CDashInfo_#type., memo->infocxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#info.->namecxx . . $ CDashInfo_#name., "Cgreen" VERSIONcxx . . $ `<built-in>:411:9`!,
150 memo->infocxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#info.->os_namecxx . . $ CDashInfo_#os_name., memo->infocxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#info.->hostnamecxx . . $ CDashInfo_#hostname., memo->infocxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#info.->os_releasecxx . . $ CDashInfo_#os_release.,
151 memo->infocxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#info.->os_versioncxx . . $ CDashInfo_#os_version., memo->infocxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#info.->os_platformcxx . . $ CDashInfo_#os_platform., strstart);
152 fflushcxx . . $ fflush(89bc1efcdac0ca22).(memo->streamcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#stream.);
153
154 reporter->destroycxx . . $ TestReporter_#destroy. = &cdash_destroy_reportercxx . . $ cdash_destroy_reporter(1083e9dac9de8fd0).;
155 reporter->start_suitecxx . . $ TestReporter_#start_suite. = &cdash_reporter_start_suitecxx . . $ cdash_reporter_start_suite(8490445735e6bcce).;
156 reporter->start_testcxx . . $ TestReporter_#start_test. = &cdash_reporter_start_testcxx . . $ cdash_reporter_start_test(499118f5be74126f).;
157 reporter->show_failcxx . . $ TestReporter_#show_fail. = &cdash_show_failcxx . . $ cdash_show_fail(fabf0cf23815ef65).;
158 reporter->show_passcxx . . $ TestReporter_#show_pass. = &cdash_show_passcxx . . $ cdash_show_pass(fabf0cf23815ef65).;
159 reporter->show_incompletecxx . . $ TestReporter_#show_incomplete. = &cdash_show_incompletecxx . . $ cdash_show_incomplete(fabf0cf23815ef65).;
160 reporter->finish_testcxx . . $ TestReporter_#finish_test. = &cdash_finish_testcxx . . $ cdash_finish_test(4c7a3a1bff8d25e8).;
161 reporter->finish_suitecxx . . $ TestReporter_#finish_suite. = &cdash_finish_suitecxx . . $ cdash_finish_suite(8490445735e6bcce).;
162 reporter->memocxx . . $ TestReporter_#memo. = memo;
163
164 return reporter;
165 }
166
167 static void cdash_destroy_reportercxx . . $ cdash_destroy_reporter(1083e9dac9de8fd0).(TestReportercxx . . $ TestReporter# *reporter) {
168 char endtime[30];
169
170 CDashMemocxx . . $ CDashMemo# *memo = (CDashMemocxx . . $ CDashMemo# *)reporter->memocxx . . $ TestReporter_#memo.;
171
172 memo->enddatetimecxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#enddatetime. = cdash_current_timecxx . . $ cdash_current_time(d2cd1729a8aa36c).(endtime);
173
174 memo->printercxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#printer.(memo->streamcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#stream., " <EndDateTime>%s</EndDateTime>\n"
175 " <ElapsedMinutes>%.2f</ElapsedMinutes>\n"
176 " </Testing>\n"
177 "</Site>\n", endtime, cdash_elapsed_timecxx . . $ cdash_elapsed_time(f630275aa3e30a1e).(memo->startdatetimecxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#startdatetime., memo->enddatetimecxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#enddatetime.));
178
179 destroy_reportercxx . . $ destroy_reporter(1083e9dac9de8fd0).(reporter);
180 }
181
182
183 static void cdash_reporter_start_suitecxx . . $ cdash_reporter_start_suite(8490445735e6bcce).(TestReportercxx . . $ TestReporter# *reporter, const char *name, const int number_of_tests) {
184 (void)number_of_tests;
185
186 reporter->passescxx . . $ TestReporter_#passes. = 0;
187 reporter->failurescxx . . $ TestReporter_#failures. = 0;
188 reporter->skipscxx . . $ TestReporter_#skips. = 0;
189 reporter->exceptionscxx . . $ TestReporter_#exceptions. = 0;
190
191 reporter_start_testcxx . . $ reporter_start_test(499118f5be74126f).(reporter, name);
192 }
193
194 static void cdash_reporter_start_testcxx . . $ cdash_reporter_start_test(499118f5be74126f).(TestReportercxx . . $ TestReporter# *reporter, const char *name) {
195 CDashMemocxx . . $ CDashMemo# *memo = (CDashMemocxx . . $ CDashMemo# *)reporter->memocxx . . $ TestReporter_#memo.;
196
197 memo->teststartedcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#teststarted. = cdash_current_timecxx . . $ cdash_current_time(d2cd1729a8aa36c).(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
198 reporter_start_testcxx . . $ reporter_start_test(499118f5be74126f).(reporter, name);
199 }
200
201
202 static void print_test_headercxx . . $ print_test_header(8832ea1a9af88b37).(CDashMemocxx . . $ CDashMemo# *memo, const char* status, const char *name, const char* file, int line) {
203 memo->printercxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#printer.(memo->streamcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#stream.,
204 " <Test Status=\"%s\">\n"
205 " <Name>%s</Name>\n"
206 " <Path>%s</Path>\n"
207 " <FullName>%s</FullName>\n"
208 " <FullCommandLine>at [%s] line [%d]</FullCommandLine>\n",
209 status, name, file, file, file, line);
210 }
211
212 static void print_results_headercxx . . $ print_results_header(a3d6f079e27f2795).(CDashMemocxx . . $ CDashMemo# *memo, const char *name, float exectime) {
213 memo->printercxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#printer.(memo->streamcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#stream.,
214 " <Results>\n"
215 " <NamedMeasurement type=\"numeric/double\" name=\"Execution Time\">\n"
216 " <Value>%f</Value>\n"
217 " </NamedMeasurement>\n"
218 " <NamedMeasurement type=\"text/string\" name=\"Completion Status\">\n"
219 " <Value>Completed</Value>\n"
220 " </NamedMeasurement>\n"
221 " <NamedMeasurement type=\"text/string\" name=\"Command Line\">\n"
222 " <Value>%s</Value>\n"
223 " </NamedMeasurement>\n",
224 exectime, name);
225 }
226
227 static void print_measurementcxx . . $ print_measurement(a4b7ca7763944c72).(CDashMemocxx . . $ CDashMemo# *memo, const char* message, va_listcxx . . $ va_list# arguments) {
228 memo->printercxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#printer.(memo->streamcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#stream.,
229 " <Measurement>\n"
230 " <Value>");
231 if (message == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!) {
232 memo->printercxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#printer.(memo->streamcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#stream.,
233 "Problem");
234 } else {
235 memo->vprintercxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#vprinter.(memo->streamcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#stream.,
236 message, arguments);
237 }
238 memo->printercxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#printer.(memo->streamcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#stream.,
239 "</Value>\n"
240 " </Measurement>\n");
241 }
242
243 static void print_tailcxx . . $ print_tail(6beac5b9530fa3bd).(CDashMemocxx . . $ CDashMemo# *memo) {
244 memo->printercxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#printer.(memo->streamcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#stream.,
245 " </Results>\n"
246 " </Test>\n");
247 }
248
249 static void cdash_show_failcxx . . $ cdash_show_fail(fabf0cf23815ef65).(TestReportercxx . . $ TestReporter# *reporter, const char *file, int line, const char *message, va_listcxx . . $ va_list# arguments) {
250 const char *name;
251 float exectime;
252 CDashMemocxx . . $ CDashMemo# *memo;
253
254 memo = (CDashMemocxx . . $ CDashMemo# *)reporter->memocxx . . $ TestReporter_#memo.;
255
256 memo->testfinishedcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#testfinished. = cdash_current_timecxx . . $ cdash_current_time(d2cd1729a8aa36c).(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
257
258 exectime = (float)cdash_elapsed_timecxx . . $ cdash_elapsed_time(f630275aa3e30a1e).(memo->teststartedcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#teststarted., memo->testfinishedcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#testfinished.);
259
260 name = get_current_from_breadcrumbcxx . . $ get_current_from_breadcrumb(fb00be60b058c643).((CgreenBreadcrumbcxx . . $ CgreenBreadcrumb# *)reporter->breadcrumbcxx . . $ TestReporter_#breadcrumb.);
261
262 print_test_headercxx . . $ print_test_header(8832ea1a9af88b37).(memo, "failed", name, file, line);
263 print_results_headercxx . . $ print_results_header(a3d6f079e27f2795).(memo, name, exectime);
264 print_measurementcxx . . $ print_measurement(a4b7ca7763944c72).(memo, message, arguments);
265 print_tailcxx . . $ print_tail(6beac5b9530fa3bd).(memo);
266 }
267
268 static void cdash_show_passcxx . . $ cdash_show_pass(fabf0cf23815ef65).(TestReportercxx . . $ TestReporter# *reporter, const char *file, int line, const char *message, va_listcxx . . $ va_list# arguments) {
269 double exectime;
270 CDashMemocxx . . $ CDashMemo# *memo;
271 const char *name = get_current_from_breadcrumbcxx . . $ get_current_from_breadcrumb(fb00be60b058c643).((CgreenBreadcrumbcxx . . $ CgreenBreadcrumb# *)reporter->breadcrumbcxx . . $ TestReporter_#breadcrumb.);
272 (void)message;
273 memo = (CDashMemocxx . . $ CDashMemo# *)reporter->memocxx . . $ TestReporter_#memo.;
274
275 memo->testfinishedcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#testfinished. = cdash_current_timecxx . . $ cdash_current_time(d2cd1729a8aa36c).(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
276 exectime = cdash_elapsed_timecxx . . $ cdash_elapsed_time(f630275aa3e30a1e).(memo->teststartedcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#teststarted., memo->testfinishedcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#testfinished.);
277
278 print_test_headercxx . . $ print_test_header(8832ea1a9af88b37).(memo, "passed", name, file, line);
279 print_results_headercxx . . $ print_results_header(a3d6f079e27f2795).(memo, name, exectime);
280 print_measurementcxx . . $ print_measurement(a4b7ca7763944c72).(memo, "", arguments);
281 print_tailcxx . . $ print_tail(6beac5b9530fa3bd).(memo);
282 }
283
284
285
286 static void cdash_show_incompletecxx . . $ cdash_show_incomplete(fabf0cf23815ef65).(TestReportercxx . . $ TestReporter# *reporter, const char *file, int line, const char *message, va_listcxx . . $ va_list# arguments) {
287 const char *name;
288 float exectime;
289 CDashMemocxx . . $ CDashMemo# *memo;
290
291 memo = (CDashMemocxx . . $ CDashMemo# *)reporter->memocxx . . $ TestReporter_#memo.;
292
293 memo->testfinishedcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#testfinished. = cdash_current_timecxx . . $ cdash_current_time(d2cd1729a8aa36c).(NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
294
295 exectime = (float)cdash_elapsed_timecxx . . $ cdash_elapsed_time(f630275aa3e30a1e).(memo->teststartedcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#teststarted., memo->testfinishedcxx . . $ $anonymous_type_8bd9ee1b67e4c364_0#testfinished.);
296
297 name = get_current_from_breadcrumbcxx . . $ get_current_from_breadcrumb(fb00be60b058c643).((CgreenBreadcrumbcxx . . $ CgreenBreadcrumb# *)reporter->breadcrumbcxx . . $ TestReporter_#breadcrumb.);
298
299 print_test_headercxx . . $ print_test_header(8832ea1a9af88b37).(memo, "incomplete", name, file, line);
300 print_results_headercxx . . $ print_results_header(a3d6f079e27f2795).(memo, name, exectime);
301 print_measurementcxx . . $ print_measurement(a4b7ca7763944c72).(memo, message, arguments);
302 print_tailcxx . . $ print_tail(6beac5b9530fa3bd).(memo);
303 }
304
305
306 static void cdash_finish_testcxx . . $ cdash_finish_test(4c7a3a1bff8d25e8).(TestReportercxx . . $ TestReporter# *reporter, const char *filename, int line,
307 const char *message) {
308 reporter_finish_testcxx . . $ reporter_finish_test(4c7a3a1bff8d25e8).(reporter, filename, line, message);
309 }
310
311
312 static void cdash_finish_suitecxx . . $ cdash_finish_suite(8490445735e6bcce).(TestReportercxx . . $ TestReporter# *reporter, const char *filename, int line) {
313 reporter_finish_testcxx . . $ reporter_finish_test(4c7a3a1bff8d25e8).(reporter, filename, line, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!);
314
315 reporter->total_passescxx . . $ TestReporter_#total_passes. += reporter->passescxx . . $ TestReporter_#passes.;
316 reporter->total_failurescxx . . $ TestReporter_#total_failures. += reporter->failurescxx . . $ TestReporter_#failures.;
317 reporter->total_skipscxx . . $ TestReporter_#total_skips. += reporter->skipscxx . . $ TestReporter_#skips.;
318 reporter->total_exceptionscxx . . $ TestReporter_#total_exceptions. += reporter->exceptionscxx . . $ TestReporter_#exceptions.;
319 }
320
321 static time_tcxx . . $ time_t# cdash_build_stampcxx . . $ cdash_build_stamp(3dbb38d35a4060b).(char *sbuildstamp, size_t sb) {
322 time_tcxx . . $ time_t# t1;
323 struct tmcxx . . $ tm# d1;
324 char s[15];
325
326 t1 = timecxx . . $ time(7f38134db6521d23).(0);
327 gmtime_rcxx . . $ gmtime_r(92e3d173686db852).(&t1, &d1);
328
329 strftimecxx . . $ strftime(98e75925167c4f1b).(s, sizeof(s), "%Y%m%d-%H%M", &d1);
330 snprintfcxx . . $ snprintf(ea502d73e74c754c).(sbuildstamp, sb, "%s", s);
331
332 return t1;
333 }
334
335 static time_tcxx . . $ time_t# cdash_current_timecxx . . $ cdash_current_time(d2cd1729a8aa36c).(char *strtime) {
336 time_tcxx . . $ time_t# t1;
337 struct tmcxx . . $ tm# d1;
338 char s[20];
339 size_t i;
340
341 t1 = timecxx . . $ time(7f38134db6521d23).(0);
342 gmtime_rcxx . . $ gmtime_r(92e3d173686db852).(&t1, &d1);
343
344 if(strtime == NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!)
345 return t1;
346
347 i = strftimecxx . . $ strftime(98e75925167c4f1b).(s, 20, "%b %d %H:%M EDT", &d1);
348
349 strncpycxx . . $ strncpy(255158a415b673b0).(strtime, s, i+1);
350
351 return t1;
352 }
353
354 static double cdash_elapsed_timecxx . . $ cdash_elapsed_time(f630275aa3e30a1e).(time_tcxx . . $ time_t# t1, time_tcxx . . $ time_t# t2) {
355 double diff;
356
357 diff = difftimecxx . . $ difftime(f630275aa3e30a1e).(t2, t1);
358 return (diff == 0 ? 0 : (diff / 60));
359 }