Home
last modified time | relevance | path

Searched +full:test +full:- (Results 1 – 25 of 336) sorted by relevance

12345678910>>...14

/libCEED/tests/
H A Djunit.py5 def create_argparser() -> argparse.ArgumentParser:
11 parser = argparse.ArgumentParser('Test runner with JUnit and TAP output')
13 '-c',
14 '--ceed-backends',
20 '-m',
21 '--mode',
26 parser.add_argument('-n', '--nproc', type=int, default=1, help='number of MPI processes')
27 …parser.add_argument('-b', '--junit-batch', type=str, default='', help='Name of JUnit batch for out…
28 …parser.add_argument('-np', '--pool-size', type=int, default=1, help='Number of test cases to run i…
29 parser.add_argument('-s', '--search', type=str, default='.*',
[all …]
H A Djunit_common.py19 sys.path.insert(0, str(Path(__file__).parent / "junit-xml"))
63 """Dataclass storing information about a single test case"""
65 csv_rtol: float = -1
66 csv_ztol: float = -1
67 cgns_tol: float = -1
86 """Abstract Base Class defining the required interface for running a test suite"""
88 def get_source_path(self, test: str) -> Path:
89 """Compute path to test source file
92 test (str): Name of test
100 def get_run_path(self, test: str) -> Path:
[all …]
H A Dt340-basis.c2 /// Test creation and destruction of a 2D Simplex non-tensor H(curl) basis
3 /// \test Test creation and destruction of a 2D Simplex non-tensor H(curl) basis
4 #include "t340-basis.h"
17 // Test skipped if using single precision in main()
18 …if (CEED_SCALAR_TYPE == CEED_SCALAR_FP32) return CeedError(ceed, CEED_ERROR_UNSUPPORTED, "Test not… in main()
H A Dt320-basis.c2 /// Test creation and destruction of a 2D Simplex non-tensor H^1 basis
3 /// \test Test creation and destruction of a 2D Simplex non-tensor H^1 basis
4 #include "t320-basis.h"
17 // Test skipped if using single precision in main()
18 …if (CEED_SCALAR_TYPE == CEED_SCALAR_FP32) return CeedError(ceed, CEED_ERROR_UNSUPPORTED, "Test not… in main()
H A Dt122-vector.c2 /// Test pointwise multiplication of a pair of vectors
3 /// \test Test pointwise multiplication of a pair of vectors
32 // Test multiplying two vectors into third in main()
36 if (fabs(read_array[i] - i * i) > 1e-14) { in main()
44 // Test multiplying two vectors into one of the two in main()
48 if (fabs(read_array[i] - i * i * i) > 1e-14) { in main()
56 // Test multiplying two vectors into one of the two in main()
60 if (fabs(read_array[i] - i * i * i * i) > 1e-14) { in main()
68 // Test multiplying vector by itself and putting product into self in main()
78 if (fabs(read_array[i] - i * i) > 1e-14) { in main()
H A Dt330-basis.c2 /// Test creation and destruction of a 2D Quad non-tensor H(div) basis
3 /// \test Test creation and destruction of a 2D Quad non-tensor H(div) basis
4 #include "t330-basis.h"
18 // Test skipped if using single precision in main()
19 …if (CEED_SCALAR_TYPE == CEED_SCALAR_FP32) return CeedError(ceed, CEED_ERROR_UNSUPPORTED, "Test not… in main()
/libCEED/julia/LibCEED.jl/test/
H A Druntests.jl1 using Test, LibCEED, LinearAlgebra, StaticArrays
23 const run_dev_tests = !isrelease() || ("--run-dev-tests" in ARGS)
34 @test ceedversion() isa VersionNumber
35 @test isrelease() isa Bool
36 @test isfile(get_libceed_path())
42 @test isdeterministic(c)
43 @test getresource(c) == res
44 @test !iscuda(c)
45 @test get_preferred_memtype(c) == MEM_HOST
47 @test showstr(c) == """
[all …]
H A DProject.toml1 # A bug in Julia 1.6.0's Pkg causes Preferences to be dropped during `Pkg.test()`, so we work around
2 # it by explicitly creating a `test/Project.toml` which will correctly communicate any preferences
3 # through to the child Julia process. X-ref: https://github.com/JuliaLang/Pkg.jl/issues/2500
4 # See also test/Project.toml in FFTW.jl.
7 LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
8 Preferences = "21216c6a-2e73-6563-6e65-726566657250"
9 StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
10 Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
11 libCEED_jll = "762fde13-7596-547b-826d-8223c52d51c1"
/libCEED/.github/workflows/
H A Djulia-test-with-style.yml6 - main
10 test:
13 os: [ubuntu-24.04]
14 julia-version: ['1']
16 runs-on: ${{ matrix.os }}
24 - name: Environment setup
26 - name: Julia setup
27 uses: julia-actions/setup-julia@latest
29 version: ${{ matrix.julia-version }}
30 - name: Julia test and style
[all …]
H A Dpython-test-with-style.yml6 - main
10 test:
13 os: [ubuntu-24.04]
15 python-version: ['3.x']
17 runs-on: ${{ matrix.os }}
20 - name: Environment setup
22 - name: Python setup
23 uses: actions/setup-python@v5
25 python-version: ${{ matrix.python-version }}
26 - name: Python dependencies
[all …]
/libCEED/tests/junit-xml/
H A DREADME.rst1 python-junit-xml
3 .. image:: https://travis-ci.org/kyrus/python-junit-xml.png?branch=master
6 -----
8 A Python module for creating JUnit XML test result documents that can be
9 read by tools such as Jenkins or Bamboo. If you are ever working with test tool or
10 test suite written in Python and want to take advantage of Jenkins' or Bamboo's
11 pretty graphs and test reporting capabilities, this module will let you
12 generate the XML test reports.
21 ------------
27 pip install junit-xml
[all …]
/libCEED/tests/junit-xml/junit_xml/
H A D__init__.py2 # -*- coding: UTF-8 -*-
22 <?xml version="1.0" encoding="utf-8"?>
25 package="testdb" tests="4" timestamp="2012-11-15T01:02:29">
27 <property name="assert-passed" value="1"/>
29 <testcase classname="testdb.directory" name="1-passed-test" time="10"/>
30 <testcase classname="testdb.directory" name="2-failed-test" time="20">
35 <testcase classname="package.directory" name="3-errord-test" time="15">
40 <testcase classname="package.directory" name="3-skipped-test" time="0">
41 <skipped message="SKIPPED Test" type="skipped">
45 <testcase classname="testdb.directory" name="3-passed-test" time="10">
[all …]
/libCEED/examples/python/
H A Dex_test.py2 # Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors
3 # All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
5 # SPDX-License-Identifier: BSD-2-Clause
15 # -------------------------------------------------------------------------------
25 problem_size=-1,
26 test=True,
32 # -------------------------------------------------------------------------------
42 problem_size=-1,
43 test=True,
49 # -------------------------------------------------------------------------------
[all …]
/libCEED/python/tests/
H A DREADME.md4 operators can be found in the file `test-5-operator.py`.
10 python setup-qfunctions.py build
12 Then, to run the test suite use the command
14 pytest test-*.py --ceed /cpu/self/ref/serial
18 To build user defined QFunctions, modify `libceed-qfunctions.c` to include
20 `python setup-qfunctions.py build`. The files `test-4-qfunction.py` and
21 `test-5-operator.py` both contain the example function `load_qfs_so()` for
H A Dtest-4-qfunction.py1 # Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors
2 # All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
4 # SPDX-License-Identifier: BSD-2-Clause
9 # Test Ceed QFunction functionality
18 # -------------------------------------------------------------------------------
20 # -------------------------------------------------------------------------------
35 # -------------------------------------------------------------------------------
36 # Test creation, evaluation, and destruction for qfunction
37 # -------------------------------------------------------------------------------
47 os.path.join(file_dir, "test-qfunctions.h:setup_mass"))
[all …]
H A Dtest-1-vector.py1 # Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors
2 # All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
4 # SPDX-License-Identifier: BSD-2-Clause
9 # Test Ceed Vector functionality
18 # -------------------------------------------------------------------------------
20 # -------------------------------------------------------------------------------
28 # -------------------------------------------------------------------------------
29 # Test creation, setting, reading, restoring, and destroying of a vector
30 # -------------------------------------------------------------------------------
46 # -------------------------------------------------------------------------------
[all …]
H A Dtest-0-ceed.py1 # Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors
2 # All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
4 # SPDX-License-Identifier: BSD-2-Clause
9 # Test Ceed functionality
14 # -------------------------------------------------------------------------------
15 # Test creation and destruction of a Ceed object
16 # -------------------------------------------------------------------------------
22 # -------------------------------------------------------------------------------
23 # Test return of Ceed backend preferred memory type
24 # -------------------------------------------------------------------------------
[all …]
H A DMakefile1 # Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors.
2 # All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
4 # SPDX-License-Identifier: BSD-2-Clause
11 rm -rf build __pycache__ .pytest_cache *.so
14 $(PYTHON) setup-qfunctions.py build
16 TEST_OPTS ?= --ceed /cpu/self/ref/serial
17 test: setup target
18 $(PYTHON) -m pytest test-*.py $(TEST_OPTS)
20 .PHONY: clean setup test
/libCEED/examples/mfem/
H A Dbp1.cpp1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors.
2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
4 // SPDX-License-Identifier: BSD-2-Clause
12 // The example reads a mesh from a file and solves a simple linear system with a mass matrix (L2-pr…
15 // All libCEED objects use a Ceed device object constructed based on a command line argument (-ceed…
27 // ./bp1 -ceed /cpu/self
28 // ./bp1 -ceed /gpu/cuda
29 // ./bp1 -m ../../../mfem/data/fichera.mesh
30 // ./bp1 -m ../../../mfem/data/star.vtk -o 3
31 // ./bp1 -m ../../../mfem/data/inline-segment.mesh -o 8
[all …]
H A Dbp3.cpp1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors.
2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
4 // SPDX-License-Identifier: BSD-2-Clause
15 // object constructed based on a command line argument. (-ceed).
27 // ./bp3 -ceed /cpu/self
28 // ./bp3 -ceed /gpu/cuda
29 // ./bp3 -m ../../../mfem/data/fichera.mesh -o 4
30 // ./bp3 -m ../../../mfem/data/square-disc-nurbs.mesh -o 6
31 // ./bp3 -m ../../../mfem/data/inline-segment.mesh -o 8
44 static const double x[3] = {-0.32, 0.15, 0.24}; in solution()
[all …]
/libCEED/examples/rust/ex1-volume-vector/src/
H A Dmain.rs1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors.
2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
4 // SPDX-License-Identifier: BSD-2-Clause
11 // 3D body using matrix-free application of a mass operator. Arbitrary mesh and
15 // The example has no dependencies, and is designed to be self-contained. For
20 // line argument (-ceed).
29 // ----------------------------------------------------------------------------
31 // ----------------------------------------------------------------------------
32 fn main() -> libceed::Result<()> { in main()
39 fn example_1_vector(options: opt::Opt) -> libceed::Result<()> { in example_1_vector()
[all …]
/libCEED/examples/rust/ex1-volume/src/
H A Dmain.rs1 // Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors.
2 // All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
4 // SPDX-License-Identifier: BSD-2-Clause
11 // 3D body using matrix-free application of a mass operator. Arbitrary mesh and
14 // The example has no dependencies, and is designed to be self-contained. For
19 // line argument (-ceed).
28 // ----------------------------------------------------------------------------
30 // ----------------------------------------------------------------------------
31 fn main() -> libceed::Result<()> { in main()
38 fn example_1(options: opt::Opt) -> libceed::Result<()> { in example_1()
[all …]
/libCEED/benchmarks/
H A Dpostprocess_plot.py3 # Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors.
4 # All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
6 # SPDX-License-Identifier: BSD-2-Clause
16 log_y = 0 # use log scale on the y-axis?
17 x_range = (1e1, 4e6) # plot range for the x-axis; comment out for auto
18 y_range = (0, 2e9) # plot range for the y-axis; comment out for auto
33 rcParams['font.sans-serif'].insert(0, 'Noto Sans')
34 rcParams['font.sans-serif'].insert(1, 'Open Sans')
42 # Get test names
44 tests = list(sel_runs.test.unique())
[all …]
/libCEED/
H A Dpyproject.toml1 [build-system]
3 build-backend = "setuptools.build_meta"
9 build-verbosity = "1"
10 test-requires = ["pytest"]
11 test-command = "bash {project}/python/test-wheel.sh {project}"
12 skip = "cp36-* cp37-* pp37-* *-manylinux_i686 *_ppc64le *_s390x *-musllinux*"
15 manylinux-x86_64-image = "manylinux2014"
16 manylinux-aarch64-image = "manylinux2014"
H A DRELEASING.md5 In preparing a release, create a branch to hold pre-release commits.
21 Use `git log --first-parent v0.7..` to get a sense of the pull requests that have been merged and t…
25 Use `make doc-latexpdf` to build a PDF users manual and inspect it for missing references or format…
31 …[ABI compliance checker](https://github.com/lvc/abi-compliance-checker) is a useful tool, as is `n…
34 …ite to make a PR to support the new release, and it's good for quality to test before tagging a li…
36 3. Update and test all the language bindings (see below) within the branch.
44 1. `git commit -am'libCEED 0.8.1'`
45 More frequently, this is amending the commit message on an in-progress commit, after rebasing if ap…
47 3. `git switch main && git merge --ff-only HEAD@{1}` fast-forward merge into `main`
48 4. `git tag --sign -m'libCEED 0.8.1'`
[all …]

12345678910>>...14