From 745965d4de4931cd807a107bf99ddcf1e066c3a9 Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Thu, 10 Jan 2019 18:47:50 -0800 Subject: [PATCH] infra: Capture test results in Kokoro. Signed-off-by: Tim 'mithro' Ansell --- .github/kokoro/continuous.cfg | 8 +++ .github/kokoro/ctest2junit.xsl | 120 +++++++++++++++++++++++++++++++++ .github/kokoro/presubmit.cfg | 7 ++ Makefile | 1 + 4 files changed, 136 insertions(+) create mode 100644 .github/kokoro/ctest2junit.xsl diff --git a/.github/kokoro/continuous.cfg b/.github/kokoro/continuous.cfg index ff44c4cf..87086ebb 100644 --- a/.github/kokoro/continuous.cfg +++ b/.github/kokoro/continuous.cfg @@ -1 +1,9 @@ build_file: "symbiflow-prjxray-artix7/.github/kokoro/full.sh" + +action { + define_artifacts { + regex: "**/*result*.xml" + regex: "**/*.log" + regex: "database/**" + } +} diff --git a/.github/kokoro/ctest2junit.xsl b/.github/kokoro/ctest2junit.xsl new file mode 100644 index 00000000..3ea29e50 --- /dev/null +++ b/.github/kokoro/ctest2junit.xsl @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + BuildName: + BuildStamp: + Name: + Generator: + CompilerName: + OSName: + Hostname: + OSRelease: + OSVersion: + OSPlatform: + Is64Bits: + VendorString: + VendorID: + FamilyID: + ModelID: + ProcessorCacheSize: + NumberOfLogicalCPU: + NumberOfPhysicalCPU: + TotalVirtualMemory: + TotalPhysicalMemory: + LogicalProcessorsPerPhysical: + ProcessorClockFrequency: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.github/kokoro/presubmit.cfg b/.github/kokoro/presubmit.cfg index 117c4189..85be999d 100644 --- a/.github/kokoro/presubmit.cfg +++ b/.github/kokoro/presubmit.cfg @@ -1 +1,8 @@ build_file: "symbiflow-prjxray-artix7/.github/kokoro/quick.sh" + +action { + define_artifacts { + regex: "**/*result*.xml" + regex: "**/*.log" + } +} diff --git a/Makefile b/Makefile index 98365c45..276e76ca 100644 --- a/Makefile +++ b/Makefile @@ -41,6 +41,7 @@ test-cpp: cd build && cmake -DPRJXRAY_BUILD_TESTING=ON .. cd build && $(MAKE) -s cd build && ctest --no-compress-output -T Test -C RelWithDebInfo --output-on-failure + xsltproc .github/kokoro/ctest2junit.xsl build/Testing/*/Test.xml > build/cpp_test_results.xml .PHONY: test test-py test-cpp