Add testing and enable gating
And enable building against itself.
This commit is contained in:
parent
942e8b4298
commit
115e095157
@ -67,8 +67,6 @@ Source0: dotnet-v%{sdk_version}-SDK.tar.gz
|
|||||||
Source1: check-debug-symbols.py
|
Source1: check-debug-symbols.py
|
||||||
Source2: dotnet.sh.in
|
Source2: dotnet.sh.in
|
||||||
|
|
||||||
Patch1: sdk-rid.patch
|
|
||||||
|
|
||||||
# Fix building with our additional CFLAGS/CXXFLAGS/LDFLAGS
|
# Fix building with our additional CFLAGS/CXXFLAGS/LDFLAGS
|
||||||
Patch100: corefx-optflags-support.patch
|
Patch100: corefx-optflags-support.patch
|
||||||
|
|
||||||
@ -102,6 +100,7 @@ BuildRequires: dotnet-build-reference-packages
|
|||||||
BuildRequires: dotnet-sdk-3.1
|
BuildRequires: dotnet-sdk-3.1
|
||||||
BuildRequires: dotnet-sdk-3.1-source-built-artifacts
|
BuildRequires: dotnet-sdk-3.1-source-built-artifacts
|
||||||
%endif
|
%endif
|
||||||
|
BuildRequires: findutils
|
||||||
BuildRequires: git
|
BuildRequires: git
|
||||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||||
BuildRequires: glibc-langpack-en
|
BuildRequires: glibc-langpack-en
|
||||||
@ -384,8 +383,8 @@ find -iname 'nuget.config' -exec echo {}: \; -exec cat {} \; -exec echo \;
|
|||||||
cat /etc/os-release
|
cat /etc/os-release
|
||||||
|
|
||||||
%if %{without bootstrap}
|
%if %{without bootstrap}
|
||||||
cp -a %{_libdir}/dotnet .dotnet
|
# We need to create a copy because we will mutate this
|
||||||
patch -p0 -i %{PATCH1}
|
cp -a %{_libdir}/dotnet previously-built-dotnet
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
export CFLAGS="%{dotnet_cflags}"
|
export CFLAGS="%{dotnet_cflags}"
|
||||||
@ -399,12 +398,15 @@ export LDFLAGS="%{dotnet_ldflags}"
|
|||||||
#%%endif
|
#%%endif
|
||||||
|
|
||||||
VERBOSE=1 ./build.sh \
|
VERBOSE=1 ./build.sh \
|
||||||
-- \
|
%if %{without bootstrap}
|
||||||
/v:n \
|
--with-sdk previously-built-dotnet \
|
||||||
/p:SkipPortableRuntimeBuild=true \
|
%endif
|
||||||
/p:LogVerbosity=n \
|
-- \
|
||||||
/p:MinimalConsoleLogOutput=false \
|
/v:n \
|
||||||
/p:ContinueOnPrebuiltBaselineError=true \
|
/p:SkipPortableRuntimeBuild=true \
|
||||||
|
/p:LogVerbosity=n \
|
||||||
|
/p:MinimalConsoleLogOutput=false \
|
||||||
|
/p:ContinueOnPrebuiltBaselineError=true \
|
||||||
|
|
||||||
|
|
||||||
sed -e 's|[@]LIBDIR[@]|%{_libdir}|g' %{SOURCE2} > dotnet.sh
|
sed -e 's|[@]LIBDIR[@]|%{_libdir}|g' %{SOURCE2} > dotnet.sh
|
||||||
|
7
gating.yaml
Normal file
7
gating.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
--- !Policy
|
||||||
|
product_versions:
|
||||||
|
- fedora-*
|
||||||
|
decision_context: bodhi_update_push_testing
|
||||||
|
subject_type: koji_build
|
||||||
|
rules:
|
||||||
|
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}
|
@ -1,33 +0,0 @@
|
|||||||
--- .dotnet/sdk/3.1.101/RuntimeIdentifierGraph.json
|
|
||||||
+++ .dotnet/sdk/3.1.101/RuntimeIdentifierGraph.json
|
|
||||||
@@ -488,6 +488,23 @@
|
|
||||||
"fedora-x64"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
+ "fedora.33": {
|
|
||||||
+ "#import": [
|
|
||||||
+ "fedora"
|
|
||||||
+ ]
|
|
||||||
+ },
|
|
||||||
+ "fedora.33-arm64": {
|
|
||||||
+ "#import": [
|
|
||||||
+ "fedora.33",
|
|
||||||
+ "fedora-arm64"
|
|
||||||
+ ]
|
|
||||||
+ },
|
|
||||||
+ "fedora.33-x64": {
|
|
||||||
+ "#import": [
|
|
||||||
+ "fedora.33",
|
|
||||||
+ "fedora-x64"
|
|
||||||
+ ]
|
|
||||||
+ },
|
|
||||||
"freebsd": {
|
|
||||||
"#import": [
|
|
||||||
"unix"
|
|
||||||
@@ -2042,4 +2059,4 @@
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
-}
|
|
||||||
\ No newline at end of file
|
|
||||||
+}
|
|
1
tests/.fmf/version
Normal file
1
tests/.fmf/version
Normal file
@ -0,0 +1 @@
|
|||||||
|
2
|
6
tests/provision.fmf
Normal file
6
tests/provision.fmf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
standard-inventory-qcow2:
|
||||||
|
qemu:
|
||||||
|
m: 5G
|
||||||
|
|
38
tests/tests.yml
Normal file
38
tests/tests.yml
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- role: standard-test-basic
|
||||||
|
tags:
|
||||||
|
- classic
|
||||||
|
- container
|
||||||
|
- atomic
|
||||||
|
repositories:
|
||||||
|
- repo: "https://github.com/redhat-developer/dotnet-bunny.git"
|
||||||
|
dest: "dotnet-bunny"
|
||||||
|
- repo: "https://github.com/redhat-developer/dotnet-regular-tests.git"
|
||||||
|
dest: "dotnet-regular-tests"
|
||||||
|
tests:
|
||||||
|
- build_test_suite:
|
||||||
|
dir: dotnet-bunny
|
||||||
|
run: make
|
||||||
|
- print_test_suite_version:
|
||||||
|
dir: dotnet-bunny
|
||||||
|
run: bin/turkey --version
|
||||||
|
- run_regular_tests:
|
||||||
|
dir: dotnet-regular-tests
|
||||||
|
run: ../dotnet-bunny/bin/turkey -l={{ remote_artifacts }}
|
||||||
|
required_packages:
|
||||||
|
- babeltrace
|
||||||
|
- bash-completion
|
||||||
|
- binutils
|
||||||
|
- expect
|
||||||
|
- git
|
||||||
|
- jq
|
||||||
|
- lldb
|
||||||
|
- lttng-tools
|
||||||
|
- make
|
||||||
|
- npm
|
||||||
|
- python3
|
||||||
|
- strace
|
||||||
|
- wget
|
||||||
|
- which
|
Loading…
Reference in New Issue
Block a user