From 7586a065a767f33bc57c664306875f57bd5562b7 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 28 Apr 2020 14:57:08 -0400 Subject: Try to store ctest results --- .circleci/config.yml | 8 ++++++++ .circleci/test_spm.sh | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 54b5d9e..c14ae58 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,6 +6,7 @@ jobs: - image: centos:7 environment: + TEST_RESULTS: /tmp/test-results MALLOC_CHECK_: 1 working_directory: ~/build @@ -39,6 +40,9 @@ jobs: command: | .circleci/test_spm.sh + - store_test_results: + path: /tmp/test-reports + build-macos: macos: xcode: 11.4.0 @@ -46,6 +50,7 @@ jobs: environment: HOMEBREW_NO_AUTO_UPDATE: 1 DYLD_INSERT_LIBRARIES: /usr/lib/libgmalloc.dylib + TEST_RESULTS: /tmp/test-results steps: - checkout @@ -70,6 +75,9 @@ jobs: command: | .circleci/test_spm.sh + - store_test_results: + path: /tmp/test-reports + workflows: version: 2 build-and-test: diff --git a/.circleci/test_spm.sh b/.circleci/test_spm.sh index eb141e5..fc52e04 100755 --- a/.circleci/test_spm.sh +++ b/.circleci/test_spm.sh @@ -1,13 +1,16 @@ #!/bin/bash -e source $(dirname "${BASH_SOURCE[0]}")/runtime.sh +export TEST_RESULTS=${TEST_RESULTS:-/tmp/test-results} export PREFIX=/tmp/root export SHELL=/bin/bash +mkdir -p "${TEST_RESULTS}" cd build set -x -ctest -V +ctest -T test +rsync -av Testing/*/*.xml "${TEST_RESULTS}" spm --list -- cgit From 1fa741494133f206d2b630708d7036517c1c953b Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 28 Apr 2020 14:58:57 -0400 Subject: Try to store ctest results --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c14ae58..258d452 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -41,7 +41,7 @@ jobs: .circleci/test_spm.sh - store_test_results: - path: /tmp/test-reports + path: /tmp/test-results build-macos: macos: @@ -76,7 +76,7 @@ jobs: .circleci/test_spm.sh - store_test_results: - path: /tmp/test-reports + path: /tmp/test-results workflows: version: 2 -- cgit From 66b90affe83f76f08c20d87722058a164d7b2885 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 28 Apr 2020 15:07:08 -0400 Subject: Create subdirectory --- .circleci/test_spm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/test_spm.sh b/.circleci/test_spm.sh index fc52e04..c7223dd 100755 --- a/.circleci/test_spm.sh +++ b/.circleci/test_spm.sh @@ -10,7 +10,7 @@ cd build set -x ctest -T test -rsync -av Testing/*/*.xml "${TEST_RESULTS}" +rsync -av Testing/*/*.xml "${TEST_RESULTS}"/spm spm --list -- cgit From bb6f98d1d88e16890d075d25027177e54dec0b7f Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 28 Apr 2020 15:41:40 -0400 Subject: ctest to junit converter --- .circleci/ctest-to-junit.xsl | 134 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+) create mode 100644 .circleci/ctest-to-junit.xsl diff --git a/.circleci/ctest-to-junit.xsl b/.circleci/ctest-to-junit.xsl new file mode 100644 index 0000000..75a5f78 --- /dev/null +++ b/.circleci/ctest-to-junit.xsl @@ -0,0 +1,134 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + BuildName: + BuildStamp: + Name: + Generator: + CompilerName: + OSName: + Hostname: + OSRelease: + OSVersion: + OSPlatform: + Is64Bits: + VendorString: + VendorID: + FamilyID: + ModelID: + ProcessorCacheSize: + NumberOfLogicalCPU: + NumberOfPhysicalCPU: + TotalVirtualMemory: + TotalPhysicalMemory: + LogicalProcessorsPerPhysical: + ProcessorClockFrequency: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit From cbad0718236c82616180c649dd3b67e65d30173f Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 28 Apr 2020 15:41:50 -0400 Subject: Use converter --- .circleci/test_spm.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.circleci/test_spm.sh b/.circleci/test_spm.sh index c7223dd..104e8fb 100755 --- a/.circleci/test_spm.sh +++ b/.circleci/test_spm.sh @@ -4,13 +4,15 @@ source $(dirname "${BASH_SOURCE[0]}")/runtime.sh export TEST_RESULTS=${TEST_RESULTS:-/tmp/test-results} export PREFIX=/tmp/root export SHELL=/bin/bash -mkdir -p "${TEST_RESULTS}" +mkdir -p "${TEST_RESULTS}"/spm cd build set -x ctest -T test -rsync -av Testing/*/*.xml "${TEST_RESULTS}"/spm +xsltproc \ + ../.circleci/ctest-to-junit.xsl \ + Testing/$(head -n 1 < Testing/TAG)/Test.xml > "${TEST_RESULTS}"/spm/Test.xml spm --list -- cgit From 0f4aa4d47e7bf98c10d461639782a2361becb8c0 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 28 Apr 2020 15:50:48 -0400 Subject: Install xsltproc --- .circleci/init.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/init.sh b/.circleci/init.sh index 877b9de..24b2f81 100755 --- a/.circleci/init.sh +++ b/.circleci/init.sh @@ -14,7 +14,8 @@ if [[ $(uname -s) == Linux ]]; then gcc \ gcc-c++ \ gcc-gfortran \ - glibc-devel + glibc-devel \ + libxslt ln -s cmake3 /usr/bin/cmake ln -s ctest3 /usr/bin/ctest -- cgit