mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-07 18:57:19 +02:00
Merge pull request #10925 from hercules-ci/junit-report
`testresults` output
This commit is contained in:
commit
83d1bc95b3
5 changed files with 11 additions and 5 deletions
|
@ -208,7 +208,9 @@ in {
|
||||||
# If we are doing just build or just docs, the one thing will use
|
# If we are doing just build or just docs, the one thing will use
|
||||||
# "out". We only need additional outputs if we are doing both.
|
# "out". We only need additional outputs if we are doing both.
|
||||||
++ lib.optional (doBuild && (enableManual || enableInternalAPIDocs || enableExternalAPIDocs)) "doc"
|
++ lib.optional (doBuild && (enableManual || enableInternalAPIDocs || enableExternalAPIDocs)) "doc"
|
||||||
++ lib.optional installUnitTests "check";
|
++ lib.optional installUnitTests "check"
|
||||||
|
++ lib.optional doCheck "testresults"
|
||||||
|
;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoconf-archive
|
autoconf-archive
|
||||||
|
@ -317,6 +319,10 @@ in {
|
||||||
|
|
||||||
makeFlags = "profiledir=$(out)/etc/profile.d PRECOMPILE_HEADERS=1";
|
makeFlags = "profiledir=$(out)/etc/profile.d PRECOMPILE_HEADERS=1";
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
mkdir $testresults
|
||||||
|
'';
|
||||||
|
|
||||||
installTargets = lib.optional doBuild "install"
|
installTargets = lib.optional doBuild "install"
|
||||||
++ lib.optional enableInternalAPIDocs "internal-api-html"
|
++ lib.optional enableInternalAPIDocs "internal-api-html"
|
||||||
++ lib.optional enableExternalAPIDocs "external-api-html";
|
++ lib.optional enableExternalAPIDocs "external-api-html";
|
||||||
|
|
|
@ -4,7 +4,7 @@ programs += libexpr-tests
|
||||||
|
|
||||||
libexpr-tests_NAME := libnixexpr-tests
|
libexpr-tests_NAME := libnixexpr-tests
|
||||||
|
|
||||||
libexpr-tests_ENV := _NIX_TEST_UNIT_DATA=$(d)/data
|
libexpr-tests_ENV := _NIX_TEST_UNIT_DATA=$(d)/data GTEST_OUTPUT=xml:$$testresults/libexpr-tests.xml
|
||||||
|
|
||||||
libexpr-tests_DIR := $(d)
|
libexpr-tests_DIR := $(d)
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ programs += libfetchers-tests
|
||||||
|
|
||||||
libfetchers-tests_NAME = libnixfetchers-tests
|
libfetchers-tests_NAME = libnixfetchers-tests
|
||||||
|
|
||||||
libfetchers-tests_ENV := _NIX_TEST_UNIT_DATA=$(d)/data
|
libfetchers-tests_ENV := _NIX_TEST_UNIT_DATA=$(d)/data GTEST_OUTPUT=xml:$$testresults/libfetchers-tests.xml
|
||||||
|
|
||||||
libfetchers-tests_DIR := $(d)
|
libfetchers-tests_DIR := $(d)
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ programs += libstore-tests
|
||||||
|
|
||||||
libstore-tests_NAME = libnixstore-tests
|
libstore-tests_NAME = libnixstore-tests
|
||||||
|
|
||||||
libstore-tests_ENV := _NIX_TEST_UNIT_DATA=$(d)/data
|
libstore-tests_ENV := _NIX_TEST_UNIT_DATA=$(d)/data GTEST_OUTPUT=xml:$$testresults/libstore-tests.xml
|
||||||
|
|
||||||
libstore-tests_DIR := $(d)
|
libstore-tests_DIR := $(d)
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ programs += libutil-tests
|
||||||
|
|
||||||
libutil-tests_NAME = libnixutil-tests
|
libutil-tests_NAME = libnixutil-tests
|
||||||
|
|
||||||
libutil-tests_ENV := _NIX_TEST_UNIT_DATA=$(d)/data
|
libutil-tests_ENV := _NIX_TEST_UNIT_DATA=$(d)/data GTEST_OUTPUT=xml:$$testresults/libutil-tests.xml
|
||||||
|
|
||||||
libutil-tests_DIR := $(d)
|
libutil-tests_DIR := $(d)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue