• Home
  • Raw
  • Download

Lines Matching full:log

251 static void qpTestLog_flushFile (qpTestLog* log)  in qpTestLog_flushFile()  argument
253 DE_ASSERT(log && log->outputFile); in qpTestLog_flushFile()
254 fflush(log->outputFile); in qpTestLog_flushFile()
257 FlushFileBuffers((HANDLE)_get_osfhandle(_fileno(log->outputFile))); in qpTestLog_flushFile()
292 static deBool beginSession (qpTestLog* log) in beginSession() argument
294 DE_ASSERT(log && !log->isSessionOpen); in beginSession()
297 fprintf(log->outputFile, "#sessionInfo releaseName %s\n", qpGetReleaseName()); in beginSession()
298 fprintf(log->outputFile, "#sessionInfo releaseId 0x%08x\n", qpGetReleaseId()); in beginSession()
299 fprintf(log->outputFile, "#sessionInfo targetName \"%s\"\n", qpGetTargetName()); in beginSession()
302 fprintf(log->outputFile, "#beginSession\n"); in beginSession()
303 qpTestLog_flushFile(log); in beginSession()
305 log->isSessionOpen = DE_TRUE; in beginSession()
310 static deBool endSession (qpTestLog* log) in endSession() argument
312 DE_ASSERT(log && log->isSessionOpen); in endSession()
315 qpXmlWriter_flush(log->writer); in endSession()
318 fprintf(log->outputFile, "\n#endSession\n"); in endSession()
319 qpTestLog_flushFile(log); in endSession()
321 log->isSessionOpen = DE_FALSE; in endSession()
333 qpTestLog* log = (qpTestLog*)deCalloc(sizeof(qpTestLog)); in qpTestLog_createFileLog() local
334 if (!log) in qpTestLog_createFileLog()
340 ContainerStack_reset(&log->containerStack); in qpTestLog_createFileLog()
343 qpPrintf("Writing test log into %s\n", fileName); in qpTestLog_createFileLog()
346 log->outputFile = fopen(fileName, "wb"); in qpTestLog_createFileLog()
347 if (!log->outputFile) in qpTestLog_createFileLog()
349 qpPrintf("ERROR: Unable to open test log output file '%s'.\n", fileName); in qpTestLog_createFileLog()
350 qpTestLog_destroy(log); in qpTestLog_createFileLog()
354 log->flags = flags; in qpTestLog_createFileLog()
355 log->writer = qpXmlWriter_createFileWriter(log->outputFile, 0, !(flags & QP_TEST_LOG_NO_FLUSH)); in qpTestLog_createFileLog()
356 log->lock = deMutex_create(DE_NULL); in qpTestLog_createFileLog()
357 log->isSessionOpen = DE_FALSE; in qpTestLog_createFileLog()
358 log->isCaseOpen = DE_FALSE; in qpTestLog_createFileLog()
360 if (!log->writer) in qpTestLog_createFileLog()
363 qpTestLog_destroy(log); in qpTestLog_createFileLog()
367 if (!log->lock) in qpTestLog_createFileLog()
370 qpTestLog_destroy(log); in qpTestLog_createFileLog()
374 beginSession(log); in qpTestLog_createFileLog()
376 return log; in qpTestLog_createFileLog()
383 void qpTestLog_destroy (qpTestLog* log) in qpTestLog_destroy() argument
385 DE_ASSERT(log); in qpTestLog_destroy()
387 if (log->isSessionOpen) in qpTestLog_destroy()
388 endSession(log); in qpTestLog_destroy()
390 if (log->writer) in qpTestLog_destroy()
391 qpXmlWriter_destroy(log->writer); in qpTestLog_destroy()
393 if (log->outputFile) in qpTestLog_destroy()
394 fclose(log->outputFile); in qpTestLog_destroy()
396 if (log->lock) in qpTestLog_destroy()
397 deMutex_destroy(log->lock); in qpTestLog_destroy()
399 deFree(log); in qpTestLog_destroy()
403 * \brief Log start of test case
404 * \param log qpTestLog instance
409 deBool qpTestLog_startCase (qpTestLog* log, const char* testCasePath, qpTestCaseType testCaseType) in qpTestLog_startCase() argument
415 DE_ASSERT(log && testCasePath && (testCasePath[0] != 0)); in qpTestLog_startCase()
416 deMutex_lock(log->lock); in qpTestLog_startCase()
418 DE_ASSERT(!log->isCaseOpen); in qpTestLog_startCase()
419 DE_ASSERT(ContainerStack_isEmpty(&log->containerStack)); in qpTestLog_startCase()
422 qpXmlWriter_flush(log->writer); in qpTestLog_startCase()
423 fprintf(log->outputFile, "\n#beginTestCaseResult %s\n", testCasePath); in qpTestLog_startCase()
424 if (!(log->flags & QP_TEST_LOG_NO_FLUSH)) in qpTestLog_startCase()
425 qpTestLog_flushFile(log); in qpTestLog_startCase()
427 log->isCaseOpen = DE_TRUE; in qpTestLog_startCase()
434 if (!qpXmlWriter_startDocument(log->writer) || in qpTestLog_startCase()
435 !qpXmlWriter_startElement(log->writer, "TestCaseResult", numResultAttribs, resultAttribs)) in qpTestLog_startCase()
438 deMutex_unlock(log->lock); in qpTestLog_startCase()
442 deMutex_unlock(log->lock); in qpTestLog_startCase()
447 * \brief Log end of test case
448 * \param log qpTestLog instance
453 deBool qpTestLog_endCase (qpTestLog* log, qpTestResult result, const char* resultDetails) in qpTestLog_endCase() argument
458 deMutex_lock(log->lock); in qpTestLog_endCase()
460 DE_ASSERT(log->isCaseOpen); in qpTestLog_endCase()
461 DE_ASSERT(ContainerStack_isEmpty(&log->containerStack)); in qpTestLog_endCase()
466 if (!qpXmlWriter_startElement(log->writer, "Result", 1, &statusAttrib) || in qpTestLog_endCase()
467 (resultDetails && !qpXmlWriter_writeString(log->writer, resultDetails)) || in qpTestLog_endCase()
468 !qpXmlWriter_endElement(log->writer, "Result") || in qpTestLog_endCase()
469 !qpXmlWriter_endElement(log->writer, "TestCaseResult") || in qpTestLog_endCase()
470 !qpXmlWriter_endDocument(log->writer)) /* Close any XML elements still open */ in qpTestLog_endCase()
473 deMutex_unlock(log->lock); in qpTestLog_endCase()
478 qpXmlWriter_flush(log->writer); in qpTestLog_endCase()
479 fprintf(log->outputFile, "\n#endTestCaseResult\n"); in qpTestLog_endCase()
480 if (!(log->flags & QP_TEST_LOG_NO_FLUSH)) in qpTestLog_endCase()
481 qpTestLog_flushFile(log); in qpTestLog_endCase()
483 log->isCaseOpen = DE_FALSE; in qpTestLog_endCase()
485 deMutex_unlock(log->lock); in qpTestLog_endCase()
491 * \param log qpTestLog instance
495 deBool qpTestLog_terminateCase (qpTestLog* log, qpTestResult result) in qpTestLog_terminateCase() argument
499 DE_ASSERT(log); in qpTestLog_terminateCase()
502 deMutex_lock(log->lock); in qpTestLog_terminateCase()
504 if (!log->isCaseOpen) in qpTestLog_terminateCase()
506 deMutex_unlock(log->lock); in qpTestLog_terminateCase()
511 qpXmlWriter_flush(log->writer); in qpTestLog_terminateCase()
512 fprintf(log->outputFile, "\n#terminateTestCaseResult %s\n", resultStr); in qpTestLog_terminateCase()
513 qpTestLog_flushFile(log); in qpTestLog_terminateCase()
515 log->isCaseOpen = DE_FALSE; in qpTestLog_terminateCase()
518 ContainerStack_reset(&log->containerStack); in qpTestLog_terminateCase()
521 deMutex_unlock(log->lock); in qpTestLog_terminateCase()
525 static deBool qpTestLog_writeKeyValuePair (qpTestLog* log, const char* elementName, const char* nam… in qpTestLog_writeKeyValuePair() argument
531 DE_ASSERT(log && elementName && text); in qpTestLog_writeKeyValuePair()
532 deMutex_lock(log->lock); in qpTestLog_writeKeyValuePair()
540 if (!qpXmlWriter_startElement(log->writer, elementName, numAttribs, attribs) || in qpTestLog_writeKeyValuePair()
541 !qpXmlWriter_writeString(log->writer, text) || in qpTestLog_writeKeyValuePair()
542 !qpXmlWriter_endElement(log->writer, elementName)) in qpTestLog_writeKeyValuePair()
545 deMutex_unlock(log->lock); in qpTestLog_writeKeyValuePair()
549 deMutex_unlock(log->lock); in qpTestLog_writeKeyValuePair()
554 * \brief Write a message to output log
555 * \param log qpTestLog instance
560 deBool qpTestLog_writeMessage (qpTestLog* log, const char* format, ...) in qpTestLog_writeMessage() argument
575 …return qpTestLog_writeKeyValuePair(log, "Text", DE_NULL, DE_NULL, DE_NULL, QP_KEY_TAG_LAST, buffer… in qpTestLog_writeMessage()
579 * \brief Write key-value-pair into log
580 * \param log qpTestLog instance
587 deBool qpTestLog_writeText (qpTestLog* log, const char* name, const char* description, qpKeyValueTa… in qpTestLog_writeText() argument
590 return qpTestLog_writeKeyValuePair(log, "Text", name, description, DE_NULL, tag, text); in qpTestLog_writeText()
594 * \brief Write key-value-pair into log
595 * \param log qpTestLog instance
602 deBool qpTestLog_writeInteger (qpTestLog* log, const char* name, const char* description, const cha… in qpTestLog_writeInteger() argument
610 return qpTestLog_writeKeyValuePair(log, "Number", name, description, unit, tag, tmpString); in qpTestLog_writeInteger()
614 * \brief Write key-value-pair into log
615 * \param log qpTestLog instance
622 deBool qpTestLog_writeFloat (qpTestLog* log, const char* name, const char* description, const char*… in qpTestLog_writeFloat() argument
630 return qpTestLog_writeKeyValuePair(log, "Number", name, description, unit, tag, tmpString); in qpTestLog_writeFloat()
768 * \param log qpTestLog instance
773 deBool qpTestLog_startImageSet (qpTestLog* log, const char* name, const char* description) in qpTestLog_startImageSet() argument
778 DE_ASSERT(log && name); in qpTestLog_startImageSet()
779 deMutex_lock(log->lock); in qpTestLog_startImageSet()
786 if (!qpXmlWriter_startElement(log->writer, "ImageSet", numAttribs, attribs)) in qpTestLog_startImageSet()
789 deMutex_unlock(log->lock); in qpTestLog_startImageSet()
793 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_IMAGESET)); in qpTestLog_startImageSet()
795 deMutex_unlock(log->lock); in qpTestLog_startImageSet()
801 * \param log qpTestLog instance
804 deBool qpTestLog_endImageSet (qpTestLog* log) in qpTestLog_endImageSet() argument
806 DE_ASSERT(log); in qpTestLog_endImageSet()
807 deMutex_lock(log->lock); in qpTestLog_endImageSet()
810 if (!qpXmlWriter_endElement(log->writer, "ImageSet")) in qpTestLog_endImageSet()
813 deMutex_unlock(log->lock); in qpTestLog_endImageSet()
817 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_IMAGESET); in qpTestLog_endImageSet()
819 deMutex_unlock(log->lock); in qpTestLog_endImageSet()
824 * \brief Write base64 encoded raw image data into log
825 * \param log qpTestLog instance
837 qpTestLog* log, in qpTestLog_writeImage() argument
855 DE_ASSERT(log && name); in qpTestLog_writeImage()
860 if (log->flags & QP_TEST_LOG_EXCLUDE_IMAGES) in qpTestLog_writeImage()
947 /* \note Log lock is acquired after compression! */ in qpTestLog_writeImage()
948 deMutex_lock(log->lock); in qpTestLog_writeImage()
951 if (!qpXmlWriter_startElement(log->writer, "Image", numAttribs, attribs) || in qpTestLog_writeImage()
952 !qpXmlWriter_writeBase64(log->writer, (const deUint8*)writeDataPtr, writeDataBytes) || in qpTestLog_writeImage()
953 !qpXmlWriter_endElement(log->writer, "Image")) in qpTestLog_writeImage()
956 deMutex_unlock(log->lock); in qpTestLog_writeImage()
961 deMutex_unlock(log->lock); in qpTestLog_writeImage()
970 * \brief Write a OpenGL ES shader program into the log.
972 * \param linkInfoLog Implementation provided linkage log
974 deBool qpTestLog_startShaderProgram (qpTestLog* log, deBool linkOk, const char* linkInfoLog) in qpTestLog_startShaderProgram() argument
979 DE_ASSERT(log); in qpTestLog_startShaderProgram()
980 deMutex_lock(log->lock); in qpTestLog_startShaderProgram()
984 if (!qpXmlWriter_startElement(log->writer, "ShaderProgram", numProgramAttribs, programAttribs) || in qpTestLog_startShaderProgram()
985 !qpXmlWriter_writeStringElement(log->writer, "InfoLog", linkInfoLog)) in qpTestLog_startShaderProgram()
988 deMutex_unlock(log->lock); in qpTestLog_startShaderProgram()
992 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_SHADERPROGRAM)); in qpTestLog_startShaderProgram()
994 deMutex_unlock(log->lock); in qpTestLog_startShaderProgram()
1000 * \param log qpTestLog instance
1003 deBool qpTestLog_endShaderProgram (qpTestLog* log) in qpTestLog_endShaderProgram() argument
1005 DE_ASSERT(log); in qpTestLog_endShaderProgram()
1006 deMutex_lock(log->lock); in qpTestLog_endShaderProgram()
1009 if (!qpXmlWriter_endElement(log->writer, "ShaderProgram")) in qpTestLog_endShaderProgram()
1012 deMutex_unlock(log->lock); in qpTestLog_endShaderProgram()
1016 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_SHADERPROGRAM); in qpTestLog_endShaderProgram()
1018 deMutex_unlock(log->lock); in qpTestLog_endShaderProgram()
1023 * \brief Write a OpenGL ES shader into the log.
1027 * \param infoLog Implementation provided shader compilation log
1029 deBool qpTestLog_writeShader (qpTestLog* log, qpShaderType type, const char* source, deBool compile… in qpTestLog_writeShader() argument
1032 …const char* sourceStr = ((log->flags & QP_TEST_LOG_EXCLUDE_SHADER_SOURCES) == 0 || !compileOk) … in qpTestLog_writeShader()
1036 deMutex_lock(log->lock); in qpTestLog_writeShader()
1039 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SHADERPROGRAM); in qpTestLog_writeShader()
1043 if (!qpXmlWriter_startElement(log->writer, tagName, numShaderAttribs, shaderAttribs) || in qpTestLog_writeShader()
1044 !qpXmlWriter_writeStringElement(log->writer, "ShaderSource", sourceStr) || in qpTestLog_writeShader()
1045 !qpXmlWriter_writeStringElement(log->writer, "InfoLog", infoLog) || in qpTestLog_writeShader()
1046 !qpXmlWriter_endElement(log->writer, tagName)) in qpTestLog_writeShader()
1049 deMutex_unlock(log->lock); in qpTestLog_writeShader()
1053 deMutex_unlock(log->lock); in qpTestLog_writeShader()
1058 * \brief Start writing a set of EGL configurations into the log.
1060 deBool qpTestLog_startEglConfigSet (qpTestLog* log, const char* name, const char* description) in qpTestLog_startEglConfigSet() argument
1065 DE_ASSERT(log && name); in qpTestLog_startEglConfigSet()
1066 deMutex_lock(log->lock); in qpTestLog_startEglConfigSet()
1073 if (!qpXmlWriter_startElement(log->writer, "EglConfigSet", numAttribs, attribs)) in qpTestLog_startEglConfigSet()
1076 deMutex_unlock(log->lock); in qpTestLog_startEglConfigSet()
1080 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_EGLCONFIGSET)); in qpTestLog_startEglConfigSet()
1082 deMutex_unlock(log->lock); in qpTestLog_startEglConfigSet()
1089 deBool qpTestLog_endEglConfigSet (qpTestLog* log) in qpTestLog_endEglConfigSet() argument
1091 DE_ASSERT(log); in qpTestLog_endEglConfigSet()
1092 deMutex_lock(log->lock); in qpTestLog_endEglConfigSet()
1095 if (!qpXmlWriter_endElement(log->writer, "EglConfigSet")) in qpTestLog_endEglConfigSet()
1098 deMutex_unlock(log->lock); in qpTestLog_endEglConfigSet()
1102 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_EGLCONFIGSET); in qpTestLog_endEglConfigSet()
1104 deMutex_unlock(log->lock); in qpTestLog_endEglConfigSet()
1112 deBool qpTestLog_writeEglConfig (qpTestLog* log, const qpEglConfigInfo* config) in qpTestLog_writeEglConfig() argument
1117 DE_ASSERT(log && config); in qpTestLog_writeEglConfig()
1118 deMutex_lock(log->lock); in qpTestLog_writeEglConfig()
1152 if (!qpXmlWriter_startElement(log->writer, "EglConfig", numAttribs, attribs) || in qpTestLog_writeEglConfig()
1153 !qpXmlWriter_endElement(log->writer, "EglConfig")) in qpTestLog_writeEglConfig()
1156 deMutex_unlock(log->lock); in qpTestLog_writeEglConfig()
1160 deMutex_unlock(log->lock); in qpTestLog_writeEglConfig()
1165 * \brief Start section in log.
1166 * \param log qpTestLog instance
1171 deBool qpTestLog_startSection (qpTestLog* log, const char* name, const char* description) in qpTestLog_startSection() argument
1176 DE_ASSERT(log && name); in qpTestLog_startSection()
1177 deMutex_lock(log->lock); in qpTestLog_startSection()
1184 if (!qpXmlWriter_startElement(log->writer, "Section", numAttribs, attribs)) in qpTestLog_startSection()
1187 deMutex_unlock(log->lock); in qpTestLog_startSection()
1191 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_SECTION)); in qpTestLog_startSection()
1193 deMutex_unlock(log->lock); in qpTestLog_startSection()
1198 * \brief End section in log.
1199 * \param log qpTestLog instance
1202 deBool qpTestLog_endSection (qpTestLog* log) in qpTestLog_endSection() argument
1204 DE_ASSERT(log); in qpTestLog_endSection()
1205 deMutex_lock(log->lock); in qpTestLog_endSection()
1208 if (!qpXmlWriter_endElement(log->writer, "Section")) in qpTestLog_endSection()
1211 deMutex_unlock(log->lock); in qpTestLog_endSection()
1215 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_SECTION); in qpTestLog_endSection()
1217 deMutex_unlock(log->lock); in qpTestLog_endSection()
1222 * \brief Write OpenCL compute kernel source into the log.
1224 deBool qpTestLog_writeKernelSource (qpTestLog* log, const char* source) in qpTestLog_writeKernelSource() argument
1226 const char* sourceStr = (log->flags & QP_TEST_LOG_EXCLUDE_SHADER_SOURCES) != 0 ? "" : source; in qpTestLog_writeKernelSource()
1228 DE_ASSERT(log); in qpTestLog_writeKernelSource()
1229 deMutex_lock(log->lock); in qpTestLog_writeKernelSource()
1231 if (!qpXmlWriter_writeStringElement(log->writer, "KernelSource", sourceStr)) in qpTestLog_writeKernelSource()
1234 deMutex_unlock(log->lock); in qpTestLog_writeKernelSource()
1238 deMutex_unlock(log->lock); in qpTestLog_writeKernelSource()
1243 * \brief Write a SPIR-V module assembly source into the log.
1245 deBool qpTestLog_writeSpirVAssemblySource (qpTestLog* log, const char* source) in qpTestLog_writeSpirVAssemblySource() argument
1247 const char* const sourceStr = (log->flags & QP_TEST_LOG_EXCLUDE_SHADER_SOURCES) != 0 ? "" : source; in qpTestLog_writeSpirVAssemblySource()
1249 deMutex_lock(log->lock); in qpTestLog_writeSpirVAssemblySource()
1251 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SHADERPROGRAM); in qpTestLog_writeSpirVAssemblySource()
1253 if (!qpXmlWriter_writeStringElement(log->writer, "SpirVAssemblySource", sourceStr)) in qpTestLog_writeSpirVAssemblySource()
1256 deMutex_unlock(log->lock); in qpTestLog_writeSpirVAssemblySource()
1260 deMutex_unlock(log->lock); in qpTestLog_writeSpirVAssemblySource()
1265 * \brief Write OpenCL kernel compilation results into the log
1267 deBool qpTestLog_writeCompileInfo (qpTestLog* log, const char* name, const char* description, deBoo… in qpTestLog_writeCompileInfo() argument
1272 DE_ASSERT(log && name && description && infoLog); in qpTestLog_writeCompileInfo()
1273 deMutex_lock(log->lock); in qpTestLog_writeCompileInfo()
1279 if (!qpXmlWriter_startElement(log->writer, "CompileInfo", numAttribs, attribs) || in qpTestLog_writeCompileInfo()
1280 !qpXmlWriter_writeStringElement(log->writer, "InfoLog", infoLog) || in qpTestLog_writeCompileInfo()
1281 !qpXmlWriter_endElement(log->writer, "CompileInfo")) in qpTestLog_writeCompileInfo()
1284 deMutex_unlock(log->lock); in qpTestLog_writeCompileInfo()
1288 deMutex_unlock(log->lock); in qpTestLog_writeCompileInfo()
1292 deBool qpTestLog_startSampleList (qpTestLog* log, const char* name, const char* description) in qpTestLog_startSampleList() argument
1297 DE_ASSERT(log && name && description); in qpTestLog_startSampleList()
1298 deMutex_lock(log->lock); in qpTestLog_startSampleList()
1303 if (!qpXmlWriter_startElement(log->writer, "SampleList", numAttribs, attribs)) in qpTestLog_startSampleList()
1306 deMutex_unlock(log->lock); in qpTestLog_startSampleList()
1310 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_SAMPLELIST)); in qpTestLog_startSampleList()
1312 deMutex_unlock(log->lock); in qpTestLog_startSampleList()
1316 deBool qpTestLog_startSampleInfo (qpTestLog* log) in qpTestLog_startSampleInfo() argument
1318 DE_ASSERT(log); in qpTestLog_startSampleInfo()
1319 deMutex_lock(log->lock); in qpTestLog_startSampleInfo()
1321 if (!qpXmlWriter_startElement(log->writer, "SampleInfo", 0, DE_NULL)) in qpTestLog_startSampleInfo()
1324 deMutex_unlock(log->lock); in qpTestLog_startSampleInfo()
1328 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_SAMPLEINFO)); in qpTestLog_startSampleInfo()
1330 deMutex_unlock(log->lock); in qpTestLog_startSampleInfo()
1334 deBool qpTestLog_writeValueInfo (qpTestLog* log, const char* name, const char* description, const c… in qpTestLog_writeValueInfo() argument
1340 DE_ASSERT(log && name && description && tagName); in qpTestLog_writeValueInfo()
1341 deMutex_lock(log->lock); in qpTestLog_writeValueInfo()
1343 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SAMPLEINFO); in qpTestLog_writeValueInfo()
1352 if (!qpXmlWriter_startElement(log->writer, "ValueInfo", numAttribs, attribs) || in qpTestLog_writeValueInfo()
1353 !qpXmlWriter_endElement(log->writer, "ValueInfo")) in qpTestLog_writeValueInfo()
1356 deMutex_unlock(log->lock); in qpTestLog_writeValueInfo()
1360 deMutex_unlock(log->lock); in qpTestLog_writeValueInfo()
1364 deBool qpTestLog_endSampleInfo (qpTestLog* log) in qpTestLog_endSampleInfo() argument
1366 DE_ASSERT(log); in qpTestLog_endSampleInfo()
1367 deMutex_lock(log->lock); in qpTestLog_endSampleInfo()
1369 if (!qpXmlWriter_endElement(log->writer, "SampleInfo")) in qpTestLog_endSampleInfo()
1372 deMutex_unlock(log->lock); in qpTestLog_endSampleInfo()
1376 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_SAMPLEINFO); in qpTestLog_endSampleInfo()
1378 deMutex_unlock(log->lock); in qpTestLog_endSampleInfo()
1382 deBool qpTestLog_startSample (qpTestLog* log) in qpTestLog_startSample() argument
1384 DE_ASSERT(log); in qpTestLog_startSample()
1385 deMutex_lock(log->lock); in qpTestLog_startSample()
1387 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SAMPLELIST); in qpTestLog_startSample()
1389 if (!qpXmlWriter_startElement(log->writer, "Sample", 0, DE_NULL)) in qpTestLog_startSample()
1392 deMutex_unlock(log->lock); in qpTestLog_startSample()
1396 DE_ASSERT(ContainerStack_push(&log->containerStack, CONTAINERTYPE_SAMPLE)); in qpTestLog_startSample()
1398 deMutex_unlock(log->lock); in qpTestLog_startSample()
1402 deBool qpTestLog_writeValueFloat (qpTestLog* log, double value) in qpTestLog_writeValueFloat() argument
1407 deMutex_lock(log->lock); in qpTestLog_writeValueFloat()
1409 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SAMPLE); in qpTestLog_writeValueFloat()
1411 if (!qpXmlWriter_writeStringElement(log->writer, "Value", &tmpString[0])) in qpTestLog_writeValueFloat()
1414 deMutex_unlock(log->lock); in qpTestLog_writeValueFloat()
1418 deMutex_unlock(log->lock); in qpTestLog_writeValueFloat()
1422 deBool qpTestLog_writeValueInteger (qpTestLog* log, deInt64 value) in qpTestLog_writeValueInteger() argument
1427 deMutex_lock(log->lock); in qpTestLog_writeValueInteger()
1429 DE_ASSERT(ContainerStack_getTop(&log->containerStack) == CONTAINERTYPE_SAMPLE); in qpTestLog_writeValueInteger()
1431 if (!qpXmlWriter_writeStringElement(log->writer, "Value", &tmpString[0])) in qpTestLog_writeValueInteger()
1434 deMutex_unlock(log->lock); in qpTestLog_writeValueInteger()
1438 deMutex_unlock(log->lock); in qpTestLog_writeValueInteger()
1442 deBool qpTestLog_endSample (qpTestLog* log) in qpTestLog_endSample() argument
1444 DE_ASSERT(log); in qpTestLog_endSample()
1445 deMutex_lock(log->lock); in qpTestLog_endSample()
1447 if (!qpXmlWriter_endElement(log->writer, "Sample")) in qpTestLog_endSample()
1450 deMutex_unlock(log->lock); in qpTestLog_endSample()
1454 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_SAMPLE); in qpTestLog_endSample()
1456 deMutex_unlock(log->lock); in qpTestLog_endSample()
1460 deBool qpTestLog_endSampleList (qpTestLog* log) in qpTestLog_endSampleList() argument
1462 DE_ASSERT(log); in qpTestLog_endSampleList()
1463 deMutex_lock(log->lock); in qpTestLog_endSampleList()
1465 if (!qpXmlWriter_endElement(log->writer, "SampleList")) in qpTestLog_endSampleList()
1468 deMutex_unlock(log->lock); in qpTestLog_endSampleList()
1472 DE_ASSERT(ContainerStack_pop(&log->containerStack) == CONTAINERTYPE_SAMPLELIST); in qpTestLog_endSampleList()
1474 deMutex_unlock(log->lock); in qpTestLog_endSampleList()
1478 deUint32 qpTestLog_getLogFlags (const qpTestLog* log) in qpTestLog_getLogFlags() argument
1480 DE_ASSERT(log); in qpTestLog_getLogFlags()
1481 return log->flags; in qpTestLog_getLogFlags()