Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Enhance check.rb (TESTFILEDIR and others)#711

Enhance check.rb (TESTFILEDIR and others)

Enhance check.rb (TESTFILEDIR and others) #711

Workflow file for this run

name:Test
on:
push:
pull_request:
workflow_dispatch:
env:
FORM_IGNORE_DEPRECATION:1
OMPI_MCA_rmaps_base_oversubscribe:1
jobs:
# Simple tests on Linux; except the ParFORM case, they probably pass unless
# the committer has forgotten running "make check".
check:
name:Test (${{ matrix.test }}) for ${{ matrix.bin }}${{ matrix.nthreads && format(' -w{0}', matrix.nthreads) || '' }}${{ matrix.flint && format(' (flint - {0})', matrix.flint) || '' }}
runs-on:ubuntu-24.04
strategy:
fail-fast:false
matrix:
include:
-{bin: form, test: default}
-{bin: tform, test: default}
-{bin: tform, test: default, nthreads: 2}
-{bin: form, test: default, flint: no}
-{bin: tform, test: default, flint: no}
-{bin: tform, test: default, nthreads: 2, flint: no}
-{bin: form, test: extra, timeout: 60}
-{bin: tform, test: extra, timeout: 60}
-{bin: tform, test: extra, timeout: 60, nthreads: 2}
-{bin: form, test: extra, timeout: 60, flint: no}
-{bin: tform, test: extra, timeout: 60, flint: no}
-{bin: tform, test: extra, timeout: 60, nthreads: 2, flint: no}
steps:
-name:Checkout repository
uses:actions/checkout@v4
with:
fetch-depth:0# ensures a reachable tag
-name:Set up build
uses:./.github/actions/setup-build
with:
features:>-
${{ matrix.bin }}
${{ matrix.flint == 'no' && 'noflint' || '' }}
${{ matrix.test == 'extra' && 'formlib' || '' }}
-name:Build
run:make -C sources -j 4 ${{ matrix.bin }}
-name:Test
run:./check/check.rb ./sources/${{ matrix.bin }} --stat ${{ matrix.nthreads && format('-w{0}', matrix.nthreads) || '' }} ${{ matrix.timeout && format('--timeout {0}', matrix.timeout) || '' }} ${{ matrix.test != 'default' && format('-C {0}', matrix.test) || '' }}
check-parform:
name:Test (${{ matrix.test }}) for ${{ matrix.bin }}${{ matrix.nthreads && format(' -w{0}', matrix.nthreads) || '' }}${{ matrix.flint && format(' (flint - {0})', matrix.flint) || '' }}
runs-on:ubuntu-24.04
strategy:
fail-fast:false
matrix:
include:
-{bin: parform, test: default, timeout: 15}
steps:
-name:Checkout repository
uses:actions/checkout@v4
with:
fetch-depth:0# ensures a reachable tag
-name:Set up build
uses:./.github/actions/setup-build
with:
features:>-
${{ matrix.bin }}
${{ matrix.flint == 'no' && 'noflint' || '' }}
${{ matrix.test == 'extra' && 'formlib' || '' }}
-name:Build
run:make -C sources -j 4 ${{ matrix.bin }}
-name:Test
run:./check/check.rb ./sources/${{ matrix.bin }} --stat ${{ matrix.nthreads && format('-w{0}', matrix.nthreads) || '' }} ${{ matrix.timeout && format('--timeout {0}', matrix.timeout) || '' }} ${{ matrix.test != 'default' && format('-C {0}', matrix.test) || '' }}
# Check memory errors (e.g., uninitialized values and memory leaks)
# thoroughly by using Valgrind on Linux. To maximize the use of concurrent
# jobs, we divide the tests into smaller parts.
valgrind-check:
name:Valgrind check (${{ matrix.test }}) for ${{ matrix.bin }}${{ matrix.nthreads && format(' -w{0}', matrix.nthreads) || '' }} (${{ matrix.group }})
needs:[check, check-i386]
runs-on:ubuntu-24.04
strategy:
fail-fast:false
matrix:
include:
-{bin: vorm, test: default, group: 1/5}
-{bin: vorm, test: default, group: 2/5}
-{bin: vorm, test: default, group: 3/5}
-{bin: vorm, test: default, group: 4/5}
-{bin: vorm, test: default, group: 5/5}
-{bin: tvorm, test: default, group: 1/10}
-{bin: tvorm, test: default, group: 2/10}
-{bin: tvorm, test: default, group: 3/10}
-{bin: tvorm, test: default, group: 4/10}
-{bin: tvorm, test: default, group: 5/10}
-{bin: tvorm, test: default, group: 6/10}
-{bin: tvorm, test: default, group: 7/10}
-{bin: tvorm, test: default, group: 8/10}
-{bin: tvorm, test: default, group: 9/10}
-{bin: tvorm, test: default, group: 10/10}
-{bin: tvorm, test: default, nthreads: 2, group: 1/10}
-{bin: tvorm, test: default, nthreads: 2, group: 2/10}
-{bin: tvorm, test: default, nthreads: 2, group: 3/10}
-{bin: tvorm, test: default, nthreads: 2, group: 4/10}
-{bin: tvorm, test: default, nthreads: 2, group: 5/10}
-{bin: tvorm, test: default, nthreads: 2, group: 6/10}
-{bin: tvorm, test: default, nthreads: 2, group: 7/10}
-{bin: tvorm, test: default, nthreads: 2, group: 8/10}
-{bin: tvorm, test: default, nthreads: 2, group: 9/10}
-{bin: tvorm, test: default, nthreads: 2, group: 10/10}
-{bin: vorm, test: extra, group: 1/1}
-{bin: tvorm, test: extra, group: 1/1}
-{bin: tvorm, test: extra, nthreads: 2, group: 1/1}
steps:
-name:Checkout repository
uses:actions/checkout@v4
with:
fetch-depth:0# ensures a reachable tag
-name:Set up build
uses:./.github/actions/setup-build
with:
features:>-
${{ matrix.bin }}
${{ matrix.flint == 'no' && 'noflint' || '' }}
${{ matrix.test == 'extra' && 'formlib' || '' }}
valgrind
-name:Build
run:make -C sources -j 4 ${{ matrix.bin }}
-name:Test
run:./check/check.rb valgrind ./sources/${{ matrix.bin }} --stat -g ${{ matrix.group }} --retries 5 ${{ matrix.nthreads && format('-w{0}', matrix.nthreads) || '' }} ${{ matrix.test != 'default' && format('-C {0}', matrix.test) || '' }}
# Generate LCOV coverage data to be posted to coveralls.io. Note that
# we measure code coverage only for tests checked with Valgrind.
coverage:
name:Code coverage (${{ matrix.test }}) for ${{ matrix.bin }}${{ matrix.nthreads && format(' -w{0}', matrix.nthreads) || '' }}${{ matrix.flint && format(' (flint - {0})', matrix.flint) || '' }}
needs:[check, check-i386]
runs-on:ubuntu-24.04
strategy:
fail-fast:false
matrix:
include:
-{bin: vorm, test: default}
-{bin: tvorm, test: default}
-{bin: tvorm, test: default, nthreads: 2}
-{bin: vorm, test: extra, timeout: 60}
-{bin: tvorm, test: extra, timeout: 60}
-{bin: tvorm, test: extra, timeout: 60, nthreads: 2}
-{bin: vorm, test: default, flint: no}
-{bin: tvorm, test: default, flint: no}
-{bin: tvorm, test: default, nthreads: 2, flint: no}
-{bin: vorm, test: extra, timeout: 60, flint: no}
-{bin: tvorm, test: extra, timeout: 60, flint: no}
-{bin: tvorm, test: extra, timeout: 60, nthreads: 2, flint: no}
steps:
-name:Checkout repository
uses:actions/checkout@v4
with:
fetch-depth:0# ensures a reachable tag
-name:Set up build
uses:./.github/actions/setup-build
with:
features:>-
${{ matrix.bin }}
${{ matrix.flint == 'no' && 'noflint' || '' }}
${{ matrix.test == 'extra' && 'formlib' || '' }}
coverage
-name:Build
run:make -C sources -j 4 ${{ matrix.bin }}
-name:Test
run:./check/check.rb ./sources/${{ matrix.bin }} --stat --timeout ${{ matrix.timeout && format('{0}', matrix.timeout) || '30' }} ${{ matrix.nthreads && format('-w{0}', matrix.nthreads) || '' }} ${{ matrix.test != 'default' && format('-C {0}', matrix.test) || '' }} --fake-valgrind
-name:Generate LCOV coverage data
run:|
lcov -d . -c -o coverage.lcov
lcov -r coverage.lcov '*/usr/include/*' '*/extern/*'${{ matrix.flint != 'no' && ' ''*/lib/*''' || '' }} -o coverage.lcov
-name:Coveralls Parallel
uses:coverallsapp/github-action@v2
with:
flag-name:${{ matrix.bin }}${{ matrix.nthreads && format(' -w{0}', matrix.nthreads) || '' }} (${{ matrix.test }})${{ matrix.flint && format(' (flint - {0})', matrix.flint) || '' }}
parallel:true
# Post LCOV coverage data to coveralls.io.
coverage-finish:
needs:[check, valgrind-check, coverage]
runs-on:ubuntu-latest
steps:
-name:Coveralls Finished
uses:coverallsapp/github-action@v2
with:
parallel-finished:true
# Tests with a 32-bit container.
check-i386:
name:32-bit container check for ${{ matrix.bin }}${{ matrix.nthreads && format(' -w{0}', matrix.nthreads) || '' }}
runs-on:ubuntu-latest
container:
image:i386/debian:11.5
strategy:
fail-fast:false
matrix:
include:
-{bin: form}
-{bin: tform}
-{bin: tform, nthreads: 2}
steps:
# We have to use v1.
# See https://github.com/actions/checkout/issues/334
-name:Checkout repository
uses:actions/checkout@v1
-name:Set up build
uses:./.github/actions/setup-build
with:
features:${{ matrix.bin }} noflint# actions/cache@v4 doesn't work
-name:Build
run:make -C sources -j 4 ${{ matrix.bin }}
-name:Test
run:./check/check.rb ./sources/${{ matrix.bin }} --stat --wordsize 2 ${{ matrix.nthreads && format('-w{0}', matrix.nthreads) || '' }}

[8]ページ先頭

©2009-2025 Movatter.jp