Home
last modified time | relevance | path

Searched refs:test (Results 1 – 25 of 131) sorted by relevance

123456

/libCEED/julia/LibCEED.jl/test/
H A Druntests.jl34 @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) == """
67 @test size(v) == (n,)
[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.
/libCEED/tests/
H A Djunit.py43 def get_source_path(self, test: str) -> Path:
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')
71 return (Path('examples') / 'ceed' / test).with_suffix('.c')
72 elif test.endswith('-f'):
73 return (Path('tests') / test).with_suffix('.f90')
75 return (Path('tests') / test).with_suffix('.c')
78 def get_run_path(self, test: str) -> Path:
[all …]
H A Djunit_common.py88 def get_source_path(self, test: str) -> Path:
100 def get_run_path(self, test: str) -> Path:
112 def get_output_path(self, test: str, output_file: str) -> Path:
172 def post_test_hook(self, test: str, spec: TestSpec, backend: str) -> None:
181 def check_pre_skip(self, test: str, spec: TestSpec, resource: str, nproc: int) -> Optional[str]:
195 … def check_post_skip(self, test: str, spec: TestSpec, resource: str, stderr: str) -> Optional[str]:
209 …def check_required_failure(self, test: str, spec: TestSpec, resource: str, stderr: str) -> Tuple[s…
223 def check_allowed_stdout(self, test: str) -> bool:
524 backend: str, test: str, index: int, verbose: bool) -> str:
585 def run_test(index: int, test: str, spec: TestSpec, backend: str,
[all …]
/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/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/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/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/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()
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()
159 if (test) { in main()
170 if (!test) { in main()
/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/examples/rust/ex2-surface/src/
H A Dmain.rs48 test, in example_2()
58 if test { in example_2()
362 #[cfg(test)]
366 #[test]
375 test: true, in example_2_1d()
382 #[test]
391 test: true, in example_2_2d()
398 #[test]
407 test: true, in example_2_3d()
414 #[test]
[all …]
/libCEED/rust/libceed/tests/
H A Dversion-numbers.rs10 #[test]
29 #[test]
34 #[test]
/libCEED/
H A Dpyproject.toml10 test-requires = ["pytest"]
11 test-command = "bash {project}/python/test-wheel.sh {project}"
/libCEED/examples/rust/ex2-surface-vector/src/
H A Dmain.rs49 test, in example_2_vector()
59 if test { in example_2_vector()
393 #[cfg(test)]
397 #[test]
406 test: true, in example_2_vector_1d()
413 #[test]
422 test: true, in example_2_vector_2d()
429 #[test]
438 test: true, in example_2_vector_3d()
445 #[test]
[all …]
/libCEED/benchmarks/
H A Dpostprocess_plot.py44 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]
/libCEED/examples/ceed/
H A Dex1-volume-f.f90261 integer help, test, gallery, benchmark variable
290 test = 0
335 test = 1
343 if (test == 1) then
351 if ((test /= 1) .OR. (help == 1)) then
366 if (test == 0) then
385 if (test == 0) then
404 if (test == 0) then
498 if (test /= 1 .AND. benchmark /= 0) then
518 if (test /= 1) then
H A Dex2-surface.c63 CeedInt help = 0, test = 0, gallery = 0, benchmark = 0; in main() local
87 test = 1; in main()
97 if (prob_size < 0) prob_size = test ? 16 * 16 * dim * dim : 256 * 1024; in main()
104 if (!test || help) { in main()
115 printf("Test/quiet mode is %s\n", (test ? "ON" : "OFF (use -t to enable)")); in main()
138 if (!test) { in main()
154 if (!test) { in main()
262 if (!test && benchmark) { in main()
282 if (!test) { in main()
H A Dex3-volume.c62 CeedInt help = 0, test = 0, benchmark = 0; in main() local
86 test = 1; in main()
94 if (prob_size < 0) prob_size = test ? 8 * 16 : 256 * 1024; in main()
97 if (!test || help) { in main()
108 printf("Test/quiet mode is %s\n", (test ? "ON" : "OFF (use -t to enable)")); in main()
130 if (!test) { in main()
146 if (!test) { in main()
230 if (!test && benchmark) { in main()
251 if (!test) { in main()
H A Dex1-volume.c63 CeedInt help = 0, test = 0, gallery = 0, benchmark = 0; in main() local
87 test = 1; in main()
97 if (prob_size < 0) prob_size = test ? 8 * 16 : 256 * 1024; in main()
100 if (!test || help) { in main()
111 printf("Test/quiet mode is %s\n", (test ? "ON" : "OFF (use -t to enable)")); in main()
133 if (!test) { in main()
148 if (!test) { in main()
241 if (!test && benchmark) { in main()
262 if (!test) { in main()
/libCEED/examples/rust/ex3-volume/src/
H A Dmain.rs47 test, in example_3()
56 if test { in example_3()
365 #[cfg(test)]
369 #[test]
378 test: true, in example_3_1d()
384 #[test]
393 test: true, in example_3_2d()
399 #[test]
408 test: true, in example_3_3d()
/libCEED/examples/rust/ex3-volume-vector/src/
H A Dmain.rs48 test, in example_3_vector()
57 if test { in example_3_vector()
388 #[cfg(test)]
392 #[test]
401 test: true, in example_3_vector_1d()
407 #[test]
416 test: true, in example_3_vector_2d()
422 #[test]
431 test: true, in example_3_vector_vector_3d()
/libCEED/examples/rust-qfunctions/
H A Dex1-volume.c64 CeedInt help = 0, test = 0, gallery = 0, benchmark = 0; in main() local
88 test = 1; in main()
98 if (prob_size < 0) prob_size = test ? 8 * 16 : 256 * 1024; in main()
101 if (!test || help) { in main()
112 printf("Test/quiet mode is %s\n", (test ? "ON" : "OFF (use -t to enable)")); in main()
143 if (!test) { in main()
158 if (!test) { in main()
251 if (!test && benchmark) { in main()
272 if (!test) { in main()
/libCEED/examples/deal.II/
H A Dbps-kokkos.cc191 const auto test = [&](const std::string &label, const auto &op) { in main() local
246 test("ceed", op_ceed); in main()
250 test("dealii", op_dealii); in main()
H A Dbps-cpu.cc191 const auto test = [&](const std::string &label, const auto &op) { in main() local
246 test("ceed", op_ceed); in main()
250 test("dealii", op_dealii); in main()

123456