Lines Matching refs:log
260 static void qpTestLog_flushFile (qpTestLog* log) in qpTestLog_flushFile() argument
262 DE_ASSERT(log && log->outputFile); in qpTestLog_flushFile()
263 fflush(log->outputFile); in qpTestLog_flushFile()
266 FlushFileBuffers((HANDLE)_get_osfhandle(_fileno(log->outputFile))); in qpTestLog_flushFile()
302 static deBool endSession (qpTestLog* log) in endSession() argument
304 DE_ASSERT(log && log->isSessionOpen); in endSession()
307 qpXmlWriter_flush(log->writer); in endSession()
310 fprintf(log->outputFile, "\n#endSession\n"); in endSession()
311 qpTestLog_flushFile(log); in endSession()
313 log->isSessionOpen = DE_FALSE; in endSession()
325 qpTestLog* log = (qpTestLog*)deCalloc(sizeof(qpTestLog)); in qpTestLog_createFileLog() local
326 if (!log) in qpTestLog_createFileLog()
332 ContainerStack_reset(&log->containerStack); in qpTestLog_createFileLog()
338 log->outputFile = fopen(fileName, "wb"); in qpTestLog_createFileLog()
339 if (!log->outputFile) in qpTestLog_createFileLog()
342 qpTestLog_destroy(log); in qpTestLog_createFileLog()
346 log->flags = flags; in qpTestLog_createFileLog()
347 log->writer = qpXmlWriter_createFileWriter(log->outputFile, 0, !(flags & QP_TEST_LOG_NO_FLUSH)); in qpTestLog_createFileLog()
348 log->lock = deMutex_create(DE_NULL); in qpTestLog_createFileLog()
349 log->isSessionOpen = DE_FALSE; in qpTestLog_createFileLog()
350 log->isCaseOpen = DE_FALSE; in qpTestLog_createFileLog()
352 if (!log->writer) in qpTestLog_createFileLog()
355 qpTestLog_destroy(log); in qpTestLog_createFileLog()
359 if (!log->lock) in qpTestLog_createFileLog()
362 qpTestLog_destroy(log); in qpTestLog_createFileLog()
366 return log; in qpTestLog_createFileLog()
374 deBool qpTestLog_beginSession(qpTestLog* log, const char* additionalSessionInfo) in qpTestLog_beginSession() argument
376 DE_ASSERT(log); in qpTestLog_beginSession()
379 if (log->isSessionOpen) in qpTestLog_beginSession()
383 fprintf(log->outputFile, "#sessionInfo releaseName %s\n", qpGetReleaseName()); in qpTestLog_beginSession()
384 fprintf(log->outputFile, "#sessionInfo releaseId 0x%08x\n", qpGetReleaseId()); in qpTestLog_beginSession()
385 fprintf(log->outputFile, "#sessionInfo targetName \"%s\"\n", qpGetTargetName()); in qpTestLog_beginSession()
388 fprintf(log->outputFile, "%s\n", additionalSessionInfo); in qpTestLog_beginSession()
391 fprintf(log->outputFile, "#beginSession\n"); in qpTestLog_beginSession()
392 qpTestLog_flushFile(log); in qpTestLog_beginSession()
394 log->isSessionOpen = DE_TRUE; in qpTestLog_beginSession()
403 void qpTestLog_destroy (qpTestLog* log) in qpTestLog_destroy() argument
405 DE_ASSERT(log); in qpTestLog_destroy()
407 if (log->isSessionOpen) in qpTestLog_destroy()
408 endSession(log); in qpTestLog_destroy()
410 if (log->writer) in qpTestLog_destroy()
411 qpXmlWriter_destroy(log->writer); in qpTestLog_destroy()
413 if (log->outputFile) in qpTestLog_destroy()
414 fclose(log->outputFile); in qpTestLog_destroy()
416 if (log->lock) in qpTestLog_destroy()
417 deMutex_destroy(log->lock); in qpTestLog_destroy()
419 deFree(log); in qpTestLog_destroy()
429 deBool qpTestLog_startCase (qpTestLog* log, const char* testCasePath, qpTestCaseType testCaseType) in qpTestLog_startCase() argument
435 DE_ASSERT(log && testCasePath && (testCasePath[0] != 0)); in qpTestLog_startCase()
436 deMutex_lock(log->lock); in qpTestLog_startCase()
438 DE_ASSERT(!log->isCaseOpen); in qpTestLog_startCase()
439 DE_ASSERT(ContainerStack_isEmpty(&log->containerStack)); in qpTestLog_startCase()
442 qpXmlWriter_flush(log->writer); in qpTestLog_startCase()
443 fprintf(log->outputFile, "\n#beginTestCaseResult %s\n", testCasePath); in qpTestLog_startCase()
444 if (!(log->flags & QP_TEST_LOG_NO_FLUSH)) in qpTestLog_startCase()
445 qpTestLog_flushFile(log); in qpTestLog_startCase()
447 log->isCaseOpen = DE_TRUE; in qpTestLog_startCase()
454 if (!qpXmlWriter_startDocument(log->writer) || in qpTestLog_startCase()
455 !qpXmlWriter_startElement(log->writer, "TestCaseResult", numResultAttribs, resultAttribs)) in qpTestLog_startCase()
458 deMutex_unlock(log->lock); in qpTestLog_startCase()
462 deMutex_unlock(log->lock); in qpTestLog_startCase()
473 deBool qpTestLog_endCase (qpTestLog* log, qpTestResult result, const char* resultDetails) in qpTestLog_endCase() argument
478 deMutex_lock(log->lock); in qpTestLog_endCase()
480 DE_ASSERT(log->isCaseOpen); in qpTestLog_endCase()
481 DE_ASSERT(ContainerStack_isEmpty(&log->containerStack)); in qpTestLog_endCase()
486 if (!qpXmlWriter_startElement(log->writer, "Result", 1, &statusAttrib) || in qpTestLog_endCase()
487 (resultDetails && !qpXmlWriter_writeString(log->writer, resultDetails)) || in qpTestLog_endCase()
488 !qpXmlWriter_endElement(log->writer, "Result") || in qpTestLog_endCase()
489 !qpXmlWriter_endElement(log->writer, "TestCaseResult") || in qpTestLog_endCase()
490 !qpXmlWriter_endDocument(log->writer)) /* Close any XML elements still open */ in qpTestLog_endCase()
493 deMutex_unlock(log->lock); in qpTestLog_endCase()
498 qpXmlWriter_flush(log->writer); in qpTestLog_endCase()
499 fprintf(log->outputFile, "\n#endTestCaseResult\n"); in qpTestLog_endCase()
500 if (!(log->flags & QP_TEST_LOG_NO_FLUSH)) in qpTestLog_endCase()
501 qpTestLog_flushFile(log); in qpTestLog_endCase()
503 log->isCaseOpen = DE_FALSE; in qpTestLog_endCase()
505 deMutex_unlock(log->lock); in qpTestLog_endCase()
509 deBool qpTestLog_startTestsCasesTime (qpTestLog* log) in qpTestLog_startTestsCasesTime() argument
511 DE_ASSERT(log); in qpTestLog_startTestsCasesTime()
512 deMutex_lock(log->lock); in qpTestLog_startTestsCasesTime()
515 qpXmlWriter_flush(log->writer); in qpTestLog_startTestsCasesTime()
516 fprintf(log->outputFile, "\n#beginTestsCasesTime\n"); in qpTestLog_startTestsCasesTime()
518 log->isCaseOpen = DE_TRUE; in qpTestLog_startTestsCasesTime()
520 if (!qpXmlWriter_startDocument(log->writer) || in qpTestLog_startTestsCasesTime()
521 !qpXmlWriter_startElement(log->writer, "TestsCasesTime", 0, (const qpXmlAttribute*)DE_NULL)) in qpTestLog_startTestsCasesTime()
524 deMutex_unlock(log->lock); in qpTestLog_startTestsCasesTime()
528 deMutex_unlock(log->lock); in qpTestLog_startTestsCasesTime()
532 deBool qpTestLog_endTestsCasesTime (qpTestLog* log) in qpTestLog_endTestsCasesTime() argument
534 DE_ASSERT(log); in qpTestLog_endTestsCasesTime()
535 deMutex_lock(log->lock); in qpTestLog_endTestsCasesTime()
537 DE_ASSERT(log->isCaseOpen); in qpTestLog_endTestsCasesTime()
539 if (!qpXmlWriter_endElement(log->writer, "TestsCasesTime") || in qpTestLog_endTestsCasesTime()
540 !qpXmlWriter_endDocument(log->writer)) in qpTestLog_endTestsCasesTime()
543 deMutex_unlock(log->lock); in qpTestLog_endTestsCasesTime()
547 qpXmlWriter_flush(log->writer); in qpTestLog_endTestsCasesTime()
549 fprintf(log->outputFile, "\n#endTestsCasesTime\n"); in qpTestLog_endTestsCasesTime()
551 log->isCaseOpen = DE_FALSE; in qpTestLog_endTestsCasesTime()
553 deMutex_unlock(log->lock); in qpTestLog_endTestsCasesTime()
564 deBool qpTestLog_terminateCase (qpTestLog* log, qpTestResult result) in qpTestLog_terminateCase() argument
568 DE_ASSERT(log); in qpTestLog_terminateCase()
571 deMutex_lock(log->lock); in qpTestLog_terminateCase()
573 if (!log->isCaseOpen) in qpTestLog_terminateCase()
575 deMutex_unlock(log->lock); in qpTestLog_terminateCase()
580 qpXmlWriter_flush(log->writer); in qpTestLog_terminateCase()
581 fprintf(log->outputFile, "\n#terminateTestCaseResult %s\n", resultStr); in qpTestLog_terminateCase()
582 qpTestLog_flushFile(log); in qpTestLog_terminateCase()
584 log->isCaseOpen = DE_FALSE; in qpTestLog_terminateCase()
587 ContainerStack_reset(&log->containerStack); in qpTestLog_terminateCase()
590 deMutex_unlock(log->lock); in qpTestLog_terminateCase()
594 static deBool qpTestLog_writeKeyValuePair (qpTestLog* log, const char* elementName, const char* nam… in qpTestLog_writeKeyValuePair() argument
600 DE_ASSERT(log && elementName && text); in qpTestLog_writeKeyValuePair()
601 deMutex_lock(log->lock); in qpTestLog_writeKeyValuePair()
609 if (!qpXmlWriter_startElement(log->writer, elementName, numAttribs, attribs) || in qpTestLog_writeKeyValuePair()
610 !qpXmlWriter_writeString(log->writer, text) || in qpTestLog_writeKeyValuePair()
611 !qpXmlWriter_endElement(log->writer, elementName)) in qpTestLog_writeKeyValuePair()
614 deMutex_unlock(log->lock); in qpTestLog_writeKeyValuePair()
618 deMutex_unlock(log->lock); in qpTestLog_writeKeyValuePair()
631 deBool qpTestLog_writeText (qpTestLog* log, const char* name, const char* description, qpKeyValueTa… in qpTestLog_writeText() argument
634 return qpTestLog_writeKeyValuePair(log, "Text", name, description, DE_NULL, tag, text); in qpTestLog_writeText()
646 deBool qpTestLog_writeInteger (qpTestLog* log, const char* name, const char* description, const cha… in qpTestLog_writeInteger() argument
652 return qpTestLog_writeKeyValuePair(log, "Number", name, description, unit, tag, tmpString); in qpTestLog_writeInteger()
664 deBool qpTestLog_writeFloat (qpTestLog* log, const char* name, const char* description, const char*… in qpTestLog_writeFloat() argument
670 return qpTestLog_writeKeyValuePair(log, "Number", name, description, unit, tag, tmpString); in qpTestLog_writeFloat()
815 deBool qpTestLog_startImageSet (qpTestLog* log, const char* name, const char* description) in qpTestLog_startImageSet() argument
820 DE_ASSERT(log && name); in qpTestLog_startImageSet()
821 deMutex_lock(log->lock); in qpTestLog_startImageSet()
828 if (!qpXmlWriter_startElement(log->writer, "ImageSet", numAttribs, attribs)) in qpTestLog_startImageSet()
831 deMutex_unlock(log->lock); in qpTestLog_startImageSet()
835 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_IMAGESET)); in qpTestLog_startImageSet()
837 deMutex_unlock(log->lock); in qpTestLog_startImageSet()
846 deBool qpTestLog_endImageSet (qpTestLog* log) in qpTestLog_endImageSet() argument
848 DE_ASSERT(log); in qpTestLog_endImageSet()
849 deMutex_lock(log->lock); in qpTestLog_endImageSet()
852 if (!qpXmlWriter_endElement(log->writer, "ImageSet")) in qpTestLog_endImageSet()
855 deMutex_unlock(log->lock); in qpTestLog_endImageSet()
859 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_IMAGESET); in qpTestLog_endImageSet()
861 deMutex_unlock(log->lock); in qpTestLog_endImageSet()
879 qpTestLog* log, in qpTestLog_writeImage() argument
897 DE_ASSERT(log && name); in qpTestLog_writeImage()
902 if (log->flags & QP_TEST_LOG_EXCLUDE_IMAGES) in qpTestLog_writeImage()
990 deMutex_lock(log->lock); in qpTestLog_writeImage()
993 if (!qpXmlWriter_startElement(log->writer, "Image", numAttribs, attribs) || in qpTestLog_writeImage()
994 !qpXmlWriter_writeBase64(log->writer, (const deUint8*)writeDataPtr, writeDataBytes) || in qpTestLog_writeImage()
995 !qpXmlWriter_endElement(log->writer, "Image")) in qpTestLog_writeImage()
998 deMutex_unlock(log->lock); in qpTestLog_writeImage()
1003 deMutex_unlock(log->lock); in qpTestLog_writeImage()
1017 deBool qpTestLog_writeInfoLog (qpTestLog* log, const char* infoLog) in qpTestLog_writeInfoLog() argument
1022 if (infoLog[0] == '\0' && (log->flags & QP_TEST_LOG_EXCLUDE_EMPTY_LOGINFO) != 0) in qpTestLog_writeInfoLog()
1025 return qpXmlWriter_writeStringElement(log->writer, "InfoLog", infoLog); in qpTestLog_writeInfoLog()
1033 deBool qpTestLog_startShaderProgram (qpTestLog* log, deBool linkOk, const char* linkInfoLog) in qpTestLog_startShaderProgram() argument
1038 DE_ASSERT(log); in qpTestLog_startShaderProgram()
1039 deMutex_lock(log->lock); in qpTestLog_startShaderProgram()
1043 if (!qpXmlWriter_startElement(log->writer, "ShaderProgram", numProgramAttribs, programAttribs) || in qpTestLog_startShaderProgram()
1044 !qpTestLog_writeInfoLog(log, linkInfoLog)) in qpTestLog_startShaderProgram()
1047 deMutex_unlock(log->lock); in qpTestLog_startShaderProgram()
1051 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_SHADERPROGRAM)); in qpTestLog_startShaderProgram()
1053 deMutex_unlock(log->lock); in qpTestLog_startShaderProgram()
1062 deBool qpTestLog_endShaderProgram (qpTestLog* log) in qpTestLog_endShaderProgram() argument
1064 DE_ASSERT(log); in qpTestLog_endShaderProgram()
1065 deMutex_lock(log->lock); in qpTestLog_endShaderProgram()
1068 if (!qpXmlWriter_endElement(log->writer, "ShaderProgram")) in qpTestLog_endShaderProgram()
1071 deMutex_unlock(log->lock); in qpTestLog_endShaderProgram()
1075 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_SHADERPROGRAM); in qpTestLog_endShaderProgram()
1077 deMutex_unlock(log->lock); in qpTestLog_endShaderProgram()
1088 deBool qpTestLog_writeShader (qpTestLog* log, qpShaderType type, const char* source, deBool compile… in qpTestLog_writeShader() argument
1091 …const char* sourceStr = ((log->flags & QP_TEST_LOG_EXCLUDE_SHADER_SOURCES) == 0 || !compileOk) … in qpTestLog_writeShader()
1095 deMutex_lock(log->lock); in qpTestLog_writeShader()
1098 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SHADERPROGRAM); in qpTestLog_writeShader()
1102 if (!qpXmlWriter_startElement(log->writer, tagName, numShaderAttribs, shaderAttribs) || in qpTestLog_writeShader()
1103 !qpXmlWriter_writeStringElement(log->writer, "ShaderSource", sourceStr) || in qpTestLog_writeShader()
1104 !qpTestLog_writeInfoLog(log, infoLog) || in qpTestLog_writeShader()
1105 !qpXmlWriter_endElement(log->writer, tagName)) in qpTestLog_writeShader()
1108 deMutex_unlock(log->lock); in qpTestLog_writeShader()
1112 deMutex_unlock(log->lock); in qpTestLog_writeShader()
1119 deBool qpTestLog_startEglConfigSet (qpTestLog* log, const char* name, const char* description) in qpTestLog_startEglConfigSet() argument
1124 DE_ASSERT(log && name); in qpTestLog_startEglConfigSet()
1125 deMutex_lock(log->lock); in qpTestLog_startEglConfigSet()
1132 if (!qpXmlWriter_startElement(log->writer, "EglConfigSet", numAttribs, attribs)) in qpTestLog_startEglConfigSet()
1135 deMutex_unlock(log->lock); in qpTestLog_startEglConfigSet()
1139 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_EGLCONFIGSET)); in qpTestLog_startEglConfigSet()
1141 deMutex_unlock(log->lock); in qpTestLog_startEglConfigSet()
1148 deBool qpTestLog_endEglConfigSet (qpTestLog* log) in qpTestLog_endEglConfigSet() argument
1150 DE_ASSERT(log); in qpTestLog_endEglConfigSet()
1151 deMutex_lock(log->lock); in qpTestLog_endEglConfigSet()
1154 if (!qpXmlWriter_endElement(log->writer, "EglConfigSet")) in qpTestLog_endEglConfigSet()
1157 deMutex_unlock(log->lock); in qpTestLog_endEglConfigSet()
1161 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_EGLCONFIGSET); in qpTestLog_endEglConfigSet()
1163 deMutex_unlock(log->lock); in qpTestLog_endEglConfigSet()
1171 deBool qpTestLog_writeEglConfig (qpTestLog* log, const qpEglConfigInfo* config) in qpTestLog_writeEglConfig() argument
1176 DE_ASSERT(log && config); in qpTestLog_writeEglConfig()
1177 deMutex_lock(log->lock); in qpTestLog_writeEglConfig()
1211 if (!qpXmlWriter_startElement(log->writer, "EglConfig", numAttribs, attribs) || in qpTestLog_writeEglConfig()
1212 !qpXmlWriter_endElement(log->writer, "EglConfig")) in qpTestLog_writeEglConfig()
1215 deMutex_unlock(log->lock); in qpTestLog_writeEglConfig()
1219 deMutex_unlock(log->lock); in qpTestLog_writeEglConfig()
1230 deBool qpTestLog_startSection (qpTestLog* log, const char* name, const char* description) in qpTestLog_startSection() argument
1235 DE_ASSERT(log && name); in qpTestLog_startSection()
1236 deMutex_lock(log->lock); in qpTestLog_startSection()
1243 if (!qpXmlWriter_startElement(log->writer, "Section", numAttribs, attribs)) in qpTestLog_startSection()
1246 deMutex_unlock(log->lock); in qpTestLog_startSection()
1250 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_SECTION)); in qpTestLog_startSection()
1252 deMutex_unlock(log->lock); in qpTestLog_startSection()
1261 deBool qpTestLog_endSection (qpTestLog* log) in qpTestLog_endSection() argument
1263 DE_ASSERT(log); in qpTestLog_endSection()
1264 deMutex_lock(log->lock); in qpTestLog_endSection()
1267 if (!qpXmlWriter_endElement(log->writer, "Section")) in qpTestLog_endSection()
1270 deMutex_unlock(log->lock); in qpTestLog_endSection()
1274 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_SECTION); in qpTestLog_endSection()
1276 deMutex_unlock(log->lock); in qpTestLog_endSection()
1283 deBool qpTestLog_writeKernelSource (qpTestLog* log, const char* source) in qpTestLog_writeKernelSource() argument
1285 const char* sourceStr = (log->flags & QP_TEST_LOG_EXCLUDE_SHADER_SOURCES) != 0 ? "" : source; in qpTestLog_writeKernelSource()
1287 DE_ASSERT(log); in qpTestLog_writeKernelSource()
1288 deMutex_lock(log->lock); in qpTestLog_writeKernelSource()
1290 if (!qpXmlWriter_writeStringElement(log->writer, "KernelSource", sourceStr)) in qpTestLog_writeKernelSource()
1293 deMutex_unlock(log->lock); in qpTestLog_writeKernelSource()
1297 deMutex_unlock(log->lock); in qpTestLog_writeKernelSource()
1304 deBool qpTestLog_writeSpirVAssemblySource (qpTestLog* log, const char* source) in qpTestLog_writeSpirVAssemblySource() argument
1306 const char* const sourceStr = (log->flags & QP_TEST_LOG_EXCLUDE_SHADER_SOURCES) != 0 ? "" : source; in qpTestLog_writeSpirVAssemblySource()
1308 deMutex_lock(log->lock); in qpTestLog_writeSpirVAssemblySource()
1310 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SHADERPROGRAM); in qpTestLog_writeSpirVAssemblySource()
1312 if (!qpXmlWriter_writeStringElement(log->writer, "SpirVAssemblySource", sourceStr)) in qpTestLog_writeSpirVAssemblySource()
1315 deMutex_unlock(log->lock); in qpTestLog_writeSpirVAssemblySource()
1319 deMutex_unlock(log->lock); in qpTestLog_writeSpirVAssemblySource()
1326 deBool qpTestLog_writeCompileInfo (qpTestLog* log, const char* name, const char* description, deBoo… in qpTestLog_writeCompileInfo() argument
1331 DE_ASSERT(log && name && description && infoLog); in qpTestLog_writeCompileInfo()
1332 deMutex_lock(log->lock); in qpTestLog_writeCompileInfo()
1338 if (!qpXmlWriter_startElement(log->writer, "CompileInfo", numAttribs, attribs) || in qpTestLog_writeCompileInfo()
1339 !qpTestLog_writeInfoLog(log, infoLog) || in qpTestLog_writeCompileInfo()
1340 !qpXmlWriter_endElement(log->writer, "CompileInfo")) in qpTestLog_writeCompileInfo()
1343 deMutex_unlock(log->lock); in qpTestLog_writeCompileInfo()
1347 deMutex_unlock(log->lock); in qpTestLog_writeCompileInfo()
1351 deBool qpTestLog_startSampleList (qpTestLog* log, const char* name, const char* description) in qpTestLog_startSampleList() argument
1356 DE_ASSERT(log && name && description); in qpTestLog_startSampleList()
1357 deMutex_lock(log->lock); in qpTestLog_startSampleList()
1362 if (!qpXmlWriter_startElement(log->writer, "SampleList", numAttribs, attribs)) in qpTestLog_startSampleList()
1365 deMutex_unlock(log->lock); in qpTestLog_startSampleList()
1369 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_SAMPLELIST)); in qpTestLog_startSampleList()
1371 deMutex_unlock(log->lock); in qpTestLog_startSampleList()
1375 deBool qpTestLog_startSampleInfo (qpTestLog* log) in qpTestLog_startSampleInfo() argument
1377 DE_ASSERT(log); in qpTestLog_startSampleInfo()
1378 deMutex_lock(log->lock); in qpTestLog_startSampleInfo()
1380 if (!qpXmlWriter_startElement(log->writer, "SampleInfo", 0, DE_NULL)) in qpTestLog_startSampleInfo()
1383 deMutex_unlock(log->lock); in qpTestLog_startSampleInfo()
1387 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_SAMPLEINFO)); in qpTestLog_startSampleInfo()
1389 deMutex_unlock(log->lock); in qpTestLog_startSampleInfo()
1393 deBool qpTestLog_writeValueInfo (qpTestLog* log, const char* name, const char* description, const c… in qpTestLog_writeValueInfo() argument
1399 DE_ASSERT(log && name && description && tagName); in qpTestLog_writeValueInfo()
1400 deMutex_lock(log->lock); in qpTestLog_writeValueInfo()
1402 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SAMPLEINFO); in qpTestLog_writeValueInfo()
1411 if (!qpXmlWriter_startElement(log->writer, "ValueInfo", numAttribs, attribs) || in qpTestLog_writeValueInfo()
1412 !qpXmlWriter_endElement(log->writer, "ValueInfo")) in qpTestLog_writeValueInfo()
1415 deMutex_unlock(log->lock); in qpTestLog_writeValueInfo()
1419 deMutex_unlock(log->lock); in qpTestLog_writeValueInfo()
1423 deBool qpTestLog_endSampleInfo (qpTestLog* log) in qpTestLog_endSampleInfo() argument
1425 DE_ASSERT(log); in qpTestLog_endSampleInfo()
1426 deMutex_lock(log->lock); in qpTestLog_endSampleInfo()
1428 if (!qpXmlWriter_endElement(log->writer, "SampleInfo")) in qpTestLog_endSampleInfo()
1431 deMutex_unlock(log->lock); in qpTestLog_endSampleInfo()
1435 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_SAMPLEINFO); in qpTestLog_endSampleInfo()
1437 deMutex_unlock(log->lock); in qpTestLog_endSampleInfo()
1441 deBool qpTestLog_startSample (qpTestLog* log) in qpTestLog_startSample() argument
1443 DE_ASSERT(log); in qpTestLog_startSample()
1444 deMutex_lock(log->lock); in qpTestLog_startSample()
1446 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SAMPLELIST); in qpTestLog_startSample()
1448 if (!qpXmlWriter_startElement(log->writer, "Sample", 0, DE_NULL)) in qpTestLog_startSample()
1451 deMutex_unlock(log->lock); in qpTestLog_startSample()
1455 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_SAMPLE)); in qpTestLog_startSample()
1457 deMutex_unlock(log->lock); in qpTestLog_startSample()
1461 deBool qpTestLog_writeValueFloat (qpTestLog* log, double value) in qpTestLog_writeValueFloat() argument
1466 deMutex_lock(log->lock); in qpTestLog_writeValueFloat()
1468 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SAMPLE); in qpTestLog_writeValueFloat()
1470 if (!qpXmlWriter_writeStringElement(log->writer, "Value", &tmpString[0])) in qpTestLog_writeValueFloat()
1473 deMutex_unlock(log->lock); in qpTestLog_writeValueFloat()
1477 deMutex_unlock(log->lock); in qpTestLog_writeValueFloat()
1481 deBool qpTestLog_writeValueInteger (qpTestLog* log, deInt64 value) in qpTestLog_writeValueInteger() argument
1486 deMutex_lock(log->lock); in qpTestLog_writeValueInteger()
1488 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SAMPLE); in qpTestLog_writeValueInteger()
1490 if (!qpXmlWriter_writeStringElement(log->writer, "Value", &tmpString[0])) in qpTestLog_writeValueInteger()
1493 deMutex_unlock(log->lock); in qpTestLog_writeValueInteger()
1497 deMutex_unlock(log->lock); in qpTestLog_writeValueInteger()
1501 deBool qpTestLog_endSample (qpTestLog* log) in qpTestLog_endSample() argument
1503 DE_ASSERT(log); in qpTestLog_endSample()
1504 deMutex_lock(log->lock); in qpTestLog_endSample()
1506 if (!qpXmlWriter_endElement(log->writer, "Sample")) in qpTestLog_endSample()
1509 deMutex_unlock(log->lock); in qpTestLog_endSample()
1513 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_SAMPLE); in qpTestLog_endSample()
1515 deMutex_unlock(log->lock); in qpTestLog_endSample()
1519 deBool qpTestLog_endSampleList (qpTestLog* log) in qpTestLog_endSampleList() argument
1521 DE_ASSERT(log); in qpTestLog_endSampleList()
1522 deMutex_lock(log->lock); in qpTestLog_endSampleList()
1524 if (!qpXmlWriter_endElement(log->writer, "SampleList")) in qpTestLog_endSampleList()
1527 deMutex_unlock(log->lock); in qpTestLog_endSampleList()
1531 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_SAMPLELIST); in qpTestLog_endSampleList()
1533 deMutex_unlock(log->lock); in qpTestLog_endSampleList()
1537 deUint32 qpTestLog_getLogFlags (const qpTestLog* log) in qpTestLog_getLogFlags() argument
1539 DE_ASSERT(log); in qpTestLog_getLogFlags()
1540 return log->flags; in qpTestLog_getLogFlags()