[petsc-dev] Strange issue with testsuite

Scott Kruger kruger at txcorp.com
Wed May 12 14:33:15 CDT 2021


It's something like this:

cd arch-debug-uni/tests/sys/tests/runex54_1_options_file-ex54options_1a_wrong/

cat  *.tmp       #  Does anything look fishy?
cat diff*.sh     # see how diff test with filter is being setup by harness
./diff*.sh       # run the diff test


Hopefully you can see what's the problem is in more detail.  These error
catching tests are tricker to debug than the normal tests.

Scott

On 2021-05-12 16:48, Stefano Zampini did write:
> I'm currently trying to build PETSc on a NEC-SX. Apart from other issues,
> I'm facing the following issue with the testsuite.
> 
> [zampins at stork petsc]$ make test s='sys*ex54*1a*' V=1
> Using MAKEFLAGS: -- V=1 s=sys*ex54*1a*
> arch-debug-uni/tests/sys/tests/runex54_1_options_file-ex54options_1a_wrong.sh
>  -v
>  ok sys_tests-ex54_1_options_file-ex54options_1a_wrong #
> /home/zampins/src/petsc/lib/petsc/bin/petsc-mpiexec.uni  -n 1 ../ex54
> -options_left 0 -options_view -options_file ex54options_1a_wrong  2>&1 |
> cat > ex54_1_options_file-ex54options_1a_wrong.tmp
> not ok diff-sys_tests-ex54_1_options_file-ex54options_1a_wrong # Error
> code: 1
> # 1a2
> # > [0]PETSC ERROR:
> /home/zampins/src/petsc/arch-debug-uni/tests/sys/tests/runex54_1_options_file-ex54options_1a_wrong/../ex54
> on a arch-debug-uni named stork by zampins Wed May 12 16:45:46 2021
> 
> However, if I run the test directly, I think it produces the proper output
> to be filtered. How can I debug this?
> 
> [zampins at stork tests]$ ./ex54 -options_left 0 -options_view -options_file
> ex54options_1a_wrong
> [0]PETSC ERROR: --------------------- Error Message
> --------------------------------------------------------------
> [0]PETSC ERROR: Invalid argument
> [0]PETSC ERROR: Unknown first token in options file ex54options_1a_wrong
> line 1: !
> [0]PETSC ERROR: See https://www.mcs.anl.gov/petsc/documentation/faq.html
> for trouble shooting.
> [0]PETSC ERROR: Petsc Development GIT revision: v3.15.0-298-g2115278b7a
>  GIT Date: 2021-05-12 14:01:17 +0300
> [0]PETSC ERROR: ./ex54 on a arch-debug-uni named stork by zampins Wed May
> 12 16:46:21 2021
> [0]PETSC ERROR: Configure options --FC_LINKER_FLAGS="-Wl,-z -Wl,muldefs"
> --download-sowing-configure-arguments="CC=ncc CXX=nc++"
> --with-blaslapack-lib="[/opt/nec/ve/nlc/2.3.0/lib/liblapack.a,/opt/nec/ve/nlc/2.3.0/lib/libblas_sequential.a]"
> --with-cc=ncc --with-cxx=nc++ --with-debugging=1 --with-fc=nfort
> --with-mpi=0 --with-shared-ld=nld --with-shared-libraries=1
> PETSC_ARCH=arch-debug-uni
> [0]PETSC ERROR: #1 PetscOptionsInsertFilePetsc() at
> /home/zampins/src/petsc/src/sys/objects/options.c:537
> [0]PETSC ERROR: #2 PetscOptionsInsertFile() at
> /home/zampins/src/petsc/src/sys/objects/options.c:645
> [0]PETSC ERROR: #3 PetscOptionsInsertArgs() at
> /home/zampins/src/petsc/src/sys/objects/options.c:684
> [0]PETSC ERROR: #4 PetscOptionsInsert() at
> /home/zampins/src/petsc/src/sys/objects/options.c:907
> [0]PETSC ERROR: #5 PetscInitialize() at
> /home/zampins/src/petsc/src/sys/objects/pinit.c:1024
> 
> -- 
> Stefano

-- 
Scott Kruger
Tech-X Corporation               kruger at txcorp.com
5621 Arapahoe Ave, Suite A       Phone: (720) 466-3196
Boulder, CO 80303                Fax:   (303) 448-7756


More information about the petsc-dev mailing list