Home
last modified time | relevance | path

Searched full:test (Results 1 – 25 of 387) sorted by relevance

12345678910>>...16

/libCEED/tests/
H A Djunit.py11 parser = argparse.ArgumentParser('Test runner with JUnit and TAP output')
28 …parser.add_argument('-np', '--pool-size', type=int, default=1, help='Number of test cases to run i…
33 parser.add_argument('test', help='Test executable', nargs='?')
43 def get_source_path(self, test: str) -> Path:
44 """Compute path to test source file
47 test (str): Name of test
52 prefix, rest = test.split('-', 1)
67 elif test.startswith('ex'):
68 if test.endswith('-f'):
69 return (Path('examples') / 'ceed' / test).with_suffix('.f90')
[all …]
H A Djunit_common.py63 """Dataclass storing information about a single test case"""
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:
101 """Compute path to built test executable file
104 test (str): Name of test
107 Path: Path to test executable
112 def get_output_path(self, test: str, output_file: str) -> Path:
[all …]
H A Dt300-basis.c2 /// Test creation and destruction of a H^1 Lagrange basis
3 /// \test Test creation and destruction of a H^1 Lagrange basis
12 // Test skipped if using single precision in main()
13 …if (CEED_SCALAR_TYPE == CEED_SCALAR_FP32) return CeedError(ceed, CEED_ERROR_UNSUPPORTED, "Test not… in main()
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
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
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 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
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()
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()
44 // Test multiplying two vectors into one of the two in main()
56 // Test multiplying two vectors into one of the two in main()
68 // Test multiplying vector by itself and putting product into self in main()
H A Dt000-ceed.c2 /// Test creation and destruction of a CEED object
3 /// \test Test creation and destruction of a CEED object
20 // Test double destroy is safe in main()
H A Dt004-ceed.c2 /// Test checking deterministic status of a CEED object
3 /// \test Test checking deterministic status a CEED object
H A Dt010-config.c2 /// Test git version and build configuration
3 /// \test Test git version and build configuration
H A Dt008-ceed.c2 /// Test creation help message
3 /// \test Test creation help message
H A Dt006-ceed.c2 /// Test creation error message with only 1 matching character
3 /// \test Test creation error message with only 1 matching character
/libCEED/julia/LibCEED.jl/test/
H A Druntests.jl1 using Test, LibCEED, LinearAlgebra, StaticArrays
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) == """
57 @test showstr(ctx) == """
[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
4 # See also test/Project.toml in FFTW.jl.
10 Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
/libCEED/.github/workflows/
H A Djulia-test-with-style.yml10 test:
30 - name: Julia test and style
36 echo >> test/Project.toml
37 echo "[preferences.libCEED_jll]" >> test/Project.toml
38 echo "libceed_path = \"$LIBCEED_LIB\"" >> test/Project.toml
39 …~ ^refs/(heads/release|tags/).* ]] || julia --project -e 'import Pkg; Pkg.test("LibCEED"; coverage…
40 git checkout test/Project.toml && julia --project -e 'import Pkg; Pkg.test("LibCEED")'
41 …ntiate()' && julia --project=.style/ .style/ceed_style.jl && git diff --exit-code src test examples
H A Dpython-test-with-style.yml10 test:
29 pip install -r requirements-test.txt
30 - name: Python test
40 PYTHON=python3 make test TEST_OPTS="--ceed /cpu/self/ref/serial -vv"
42 PYTHON=python3 make test TEST_OPTS="--ceed /cpu/self/ref/serial -vv"
/libCEED/tests/junit-xml/
H A DREADME.rst8 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.
41 Create a test suite, add a test case, and print it to the screen:
48 ts = TestSuite("my test suite", test_cases)
58 <testsuite errors="0" failures="0" name="my test suite" tests="1">
/libCEED/tests/junit-xml/junit_xml/
H A D__init__.py29 <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">
79 Suite of test cases.
104 raise TypeError("test_cases must be a list of test cases")
119 Builds the XML document for the JUnit test suite.
125 # build the test suite element
[all …]
/libCEED/python/tests/
H A DREADME.md4 operators can be found in the file `test-5-operator.py`.
12 Then, to run the test suite use the command
14 pytest test-*.py --ceed /cpu/self/ref/serial
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
/libCEED/examples/python/
H A Dex_test.py26 test=True,
43 test=True,
60 test=True,
77 test=True,
94 test=True,
111 test=True,
127 test=True,
144 test=True,
161 test=True,
178 test=True,
[all …]
/libCEED/examples/mfem/
H A Dbp1.cpp58 bool test = false; in main() local
67 args.AddOption(&test, "-t", "--test", "-no-test", "--no-test", "Enable or disable test mode."); in main()
73 if (!test) { in main()
106 if (!test) { in main()
110 …// 6. Construct a rhs vector using the linear form f(v) = (solution, v), where v is a test functio… in main()
123 if (test) { in main()
136 if (!test) { in main()
H A Dbp3.cpp80 bool test = false; in main() local
89 args.AddOption(&test, "-t", "--test", "-no-test", "--no-test", "Enable or disable test mode."); in main()
95 if (!test) { in main()
128 if (!test) { in main()
142 // 6. Construct a rhs vector using the linear form f(v) = (rhs, v), where v is a test function. in main()
159 if (test) { in main()
170 if (!test) { in main()
/libCEED/examples/rust/ex1-volume-vector/src/
H A Dmain.rs48 test, in example_1_vector()
58 if test { in example_1_vector()
302 #[cfg(test)]
306 #[test]
315 test: true, in example_1_vector_1d()
322 #[test]
331 test: true, in example_1_vector_2d()
338 #[test]
347 test: true, in example_1_vector_3d()
354 #[test]
[all …]
/libCEED/examples/rust/ex1-volume/src/
H A Dmain.rs47 test, in example_1()
57 if test { in example_1()
284 #[cfg(test)]
288 #[test]
297 test: true, in example_1_1d()
304 #[test]
313 test: true, in example_1_2d()
320 #[test]
329 test: true, in example_1_3d()
336 #[test]
[all …]
/libCEED/benchmarks/
H A Dpostprocess_plot.py42 # Get test names
44 tests = list(sel_runs.test.unique())
45 test = tests[0] variable
48 print('Using test:', test)
50 if 'CEED Benchmark Problem' in test:
51 test_short = test.strip().split()[0] + ' BP' + test.strip().split()[-1]
54 sel_runs = sel_runs.loc[sel_runs['test'] == test]

12345678910>>...16