Thanks! Matthew Knepley <knep...@gmail.com> 于2022年10月6日周四 16:19写道:
> On Thu, Oct 6, 2022 at 9:16 AM Zongze Yang <yangzon...@gmail.com> wrote: > >> Hi, everyone, >> >> I am trying to run some test cases with x window, but the x window never >> showed up with command `make -f ./gmakefile test ...`. It seems a default >> option `-nox` is set. How to disable this option for `make test`? >> > > Yes, we disable it for tests by default in order to make the CI efficient. > You can edit > > $PETSC_DIR/$PETSC_ARCH/lib/petsc/conf/petscvariables > > and remove it from PETSC_TEST_OPTIONS, which should be the last line. > > Thanks, > > Matt > > >> An example is shown below: >> ``` >> z2yang@ws6:~/repos/petsc$ PETSC_ARCH=arch-main-debug make -f ./gmakefile >> test search="dm_impls_plex_tests-ex20_2d" TIMEOUT=5000 >> EXTRA_OPTIONS="-post_adapt_dm_view draw:x -draw_pause -1 -options_view >> -petsc_ci false" >> Using MAKEFLAGS: -- EXTRA_OPTIONS=-post_adapt_dm_view draw:x -draw_pause >> -1 -options_view -petsc_ci false TIMEOUT=5000 >> search=dm_impls_plex_tests-ex20_2d >> TEST >> arch-main-debug/tests/counts/dm_impls_plex_tests-ex20_2d.counts >> ok dm_impls_plex_tests-ex20_2d >> not ok diff-dm_impls_plex_tests-ex20_2d # Error code: 1 >> # 12,22c12,26 >> # < DM Object: Post Adaptation Mesh 1 MPI process >> # < type: plex >> # < Post Adaptation Mesh in 2 dimensions: >> # < Number of 0-cells per rank: 49 >> # < Number of 1-cells per rank: 120 >> # < Number of 2-cells per rank: 72 >> # < Labels: >> # < celltype: 3 strata with value/size (1 (120), 3 (72), 0 (49)) >> # < depth: 3 strata with value/size (0 (49), 1 (120), 2 (72)) >> # < marker: 1 strata with value/size (1 (48)) >> # < Face Sets: 1 strata with value/size (1 (36)) >> # --- >> # > #PETSc Option Table entries: >> # > -check_pointer_intensity 0 >> # > -dm_coord_space 0 >> # > -dm_plex_box_faces 3,3 >> # > -draw_pause -1 >> # > -error_output_stdout >> # > -malloc_dump >> # > -nox >> # > -nox_warning >> # > -options_view >> # > -petsc_ci false >> # > -post_adapt_dm_view draw:x >> # > -pre_adapt_dm_view ascii::ascii_info >> # > -use_gpu_aware_mpi 0 >> # > #End of PETSc Option Table entries >> >> >> # FAILED diff-dm_impls_plex_tests-ex20_2d >> # >> # To rerun failed tests: >> # /usr/bin/gmake -f gmakefile test test-fail=1 >> ``` >> >> Thanks, >> Zongze >> > > > -- > What most experimenters take for granted before they begin their > experiments is infinitely more interesting than any results to which their > experiments lead. > -- Norbert Wiener > > https://www.cse.buffalo.edu/~knepley/ > <http://www.cse.buffalo.edu/~knepley/> >