Add testing and enable gating

And enable building against itself.
This commit is contained in:
Omair Majid 2020-03-17 10:08:19 -04:00
parent 942e8b4298
commit 115e095157
6 changed files with 64 additions and 43 deletions

View File

@ -67,8 +67,6 @@ Source0: dotnet-v%{sdk_version}-SDK.tar.gz
Source1: check-debug-symbols.py
Source2: dotnet.sh.in
Patch1: sdk-rid.patch
# Fix building with our additional CFLAGS/CXXFLAGS/LDFLAGS
Patch100: corefx-optflags-support.patch
@ -102,6 +100,7 @@ BuildRequires: dotnet-build-reference-packages
BuildRequires: dotnet-sdk-3.1
BuildRequires: dotnet-sdk-3.1-source-built-artifacts
%endif
BuildRequires: findutils
BuildRequires: git
%if 0%{?fedora} || 0%{?rhel} > 7
BuildRequires: glibc-langpack-en
@ -384,8 +383,8 @@ find -iname 'nuget.config' -exec echo {}: \; -exec cat {} \; -exec echo \;
cat /etc/os-release
%if %{without bootstrap}
cp -a %{_libdir}/dotnet .dotnet
patch -p0 -i %{PATCH1}
# We need to create a copy because we will mutate this
cp -a %{_libdir}/dotnet previously-built-dotnet
%endif
export CFLAGS="%{dotnet_cflags}"
@ -399,6 +398,9 @@ export LDFLAGS="%{dotnet_ldflags}"
#%%endif
VERBOSE=1 ./build.sh \
%if %{without bootstrap}
--with-sdk previously-built-dotnet \
%endif
-- \
/v:n \
/p:SkipPortableRuntimeBuild=true \

7
gating.yaml Normal file
View 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}

View File

@ -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
View File

@ -0,0 +1 @@
2

6
tests/provision.fmf Normal file
View File

@ -0,0 +1,6 @@
---
standard-inventory-qcow2:
qemu:
m: 5G

38
tests/tests.yml Normal file
View 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