[petsc-dev] tests with multiple loops
Hapla Vaclav
vaclav.hapla at erdw.ethz.ch
Thu Nov 22 07:51:17 CST 2018
Here I can use just one test with -test_custom_layout {{0 1}} so no pressure.
Vaclav
> 22. 11. 2018 v 14:26, Hapla Vaclav via petsc-dev <petsc-dev at mcs.anl.gov>:
>
> Scott, maybe a related issue. The following testset
>
> testset:
> suffix: 4a_lsqr_hdf5
> nsize: {{1 2 4}}
> requires: datafilespath double !complex !define(PETSC_USE_64BIT_INDICES) hdf5 zlib
> args: -f ${DATAFILESPATH}/matrices/matlab/rectangular_ultrasound_4889x841.mat -hdf5
> args: -ksp_converged_reason -ksp_monitor_short -ksp_rtol 1e-5 -ksp_max_it 100
> args: -solve_normal 0 -ksp_type lsqr
> test:
> test:
> args: -test_custom_layout
>
> runs test a with all sizes but b only with the size of 4
>
> ok ksp_ksp_tutorials-ex27_4a_lsqr_hdf5-a_nsize-1
> ok diff-ksp_ksp_tutorials-ex27_4a_lsqr_hdf5-a_nsize-1
> ok ksp_ksp_tutorials-ex27_4a_lsqr_hdf5-a_nsize-2
> ok diff-ksp_ksp_tutorials-ex27_4a_lsqr_hdf5-a_nsize-2
> ok ksp_ksp_tutorials-ex27_4a_lsqr_hdf5-a_nsize-4
> ok diff-ksp_ksp_tutorials-ex27_4a_lsqr_hdf5-a_nsize-4
> ok ksp_ksp_tutorials-ex27_4a_lsqr_hdf5-b_nsize-4
> ok diff-ksp_ksp_tutorials-ex27_4a_lsqr_hdf5-b_nsize-4
>
> # -------------
> # Summary
> # -------------
> # success 8/8 tests (100.0%)
> # failed 0/8 tests (0.0%)
> # todo 0/8 tests (0.0%)
> # skip 0/8 tests (0.0%)
>
>
> Or do I use it wrong?
>
> Thanks
>
> Vaclav
>
>
>
>> 15. 11. 2018 v 23:47, Scott Kruger <kruger at txcorp.com>:
>>
>>
>>
>> Fixed in scott/fix-forloops. Could you take a look and see if that works for you?
>>
>> Thanks,
>> Scott
>>
>>
>> On 11/8/18 8:40 AM, Hapla Vaclav via petsc-dev wrote:
>>> Assume the following test
>>> test:
>>> suffix: 4_tet_test_orient
>>> nsize: 2
>>> args: -dim 3 -distribute 0
>>> args: -rotate_interface_0 {{0 1 2 11 12 13}}
>>> args: -rotate_interface_1 {{0 1 2 11 12 13}}
>>> I was thinking that it should produce all combinations of -rotate_interface_0 and -rotate_interface_1, i.e. 6*6*2 = 72 tests including diffs.
>>> But instead it produces only 22 tests for me. I guess it's wrong, isn't it?
>>> Thanks
>>> Vaclav
>>> ok dm_impls_plex_tests-ex18_4_tet_test_orient_rotate_interface_0-0_rotate_interface_1-0
>>> ok diff-dm_impls_plex_tests-ex18_4_tet_test_orient_rotate_interface_0-0_rotate_interface_1-0
>>> ok dm_impls_plex_tests-ex18_4_tet_test_orient_rotate_interface_0-0_rotate_interface_1-1
>>> ok diff-dm_impls_plex_tests-ex18_4_tet_test_orient_rotate_interface_0-0_rotate_interface_1-1
>>> ok dm_impls_plex_tests-ex18_4_tet_test_orient_rotate_interface_0-0_rotate_interface_1-2
>>> ok diff-dm_impls_plex_tests-ex18_4_tet_test_orient_rotate_interface_0-0_rotate_interface_1-2
>>> ok dm_impls_plex_tests-ex18_4_tet_test_orient_rotate_interface_0-0_rotate_interface_1-11
>>> ok diff-dm_impls_plex_tests-ex18_4_tet_test_orient_rotate_interface_0-0_rotate_interface_1-11
>>> ok dm_impls_plex_tests-ex18_4_tet_test_orient_rotate_interface_0-0_rotate_interface_1-12
>>> ok diff-dm_impls_plex_tests-ex18_4_tet_test_orient_rotate_interface_0-0_rotate_interface_1-12
>>> ok dm_impls_plex_tests-ex18_4_tet_test_orient_rotate_interface_0-0_rotate_interface_1-13
>>> ok diff-dm_impls_plex_tests-ex18_4_tet_test_orient_rotate_interface_0-0_rotate_interface_1-13
>>> ok dm_impls_plex_tests-ex18_4_tet_test_orient_rotate_interface_0-1_rotate_interface_1-13
>>> ok diff-dm_impls_plex_tests-ex18_4_tet_test_orient_rotate_interface_0-1_rotate_interface_1-13
>>> ok dm_impls_plex_tests-ex18_4_tet_test_orient_rotate_interface_0-2_rotate_interface_1-13
>>> ok diff-dm_impls_plex_tests-ex18_4_tet_test_orient_rotate_interface_0-2_rotate_interface_1-13
>>> ok dm_impls_plex_tests-ex18_4_tet_test_orient_rotate_interface_0-11_rotate_interface_1-13
>>> ok diff-dm_impls_plex_tests-ex18_4_tet_test_orient_rotate_interface_0-11_rotate_interface_1-13
>>> ok dm_impls_plex_tests-ex18_4_tet_test_orient_rotate_interface_0-12_rotate_interface_1-13
>>> ok diff-dm_impls_plex_tests-ex18_4_tet_test_orient_rotate_interface_0-12_rotate_interface_1-13
>>> ok dm_impls_plex_tests-ex18_4_tet_test_orient_rotate_interface_0-13_rotate_interface_1-13
>>> ok diff-dm_impls_plex_tests-ex18_4_tet_test_orient_rotate_interface_0-13_rotate_interface_1-13
>>> # -------------
>>> # Summary
>>> # -------------
>>> # success 22/22 tests (100.0%)
>>> # failed 0/22 tests (0.0%)
>>> # todo 0/22 tests (0.0%)
>>> # skip 0/22 tests (0.0%)
>>
>> --
>> Tech-X Corporation kruger at txcorp.com
>> 5621 Arapahoe Ave, Suite A Phone: (720) 974-1841
>> Boulder, CO 80303 Fax: (303) 448-7756
>
More information about the petsc-dev
mailing list