[petsc-dev] make test after make install is not right

Barry Smith bsmith at mcs.anl.gov
Sun Jul 27 21:58:46 CDT 2014


  Our 

     make install
     unset PETSC_ARCH
     export PETSC_DIR=/installed_location
     make test 

  appears to be not working correctly

~/Src/petsc  maint $ export PETSC_DIR=/Users/barrysmith/petsc-prefix
~/Src/petsc  maint $ make test_build
Running test examples to verify correct installation
Using PETSC_DIR=/Users/barrysmith/Src/petsc and PETSC_ARCH=arch-prefix

<<<<<<<<<<   ^^^^ Note here it lists the configured PETSC_DIR and PETSC_ARCH

C/C++ example src/snes/examples/tutorials/ex19 run successfully with 1 MPI process
C/C++ example src/snes/examples/tutorials/ex19 run successfully with 2 MPI processes
Fortran example src/snes/examples/tutorials/ex5f run successfully with 1 MPI process
Completed test examples
~/Src/petsc  maint $ echo $PETSC_DIR
/Users/barrysmith/petsc-prefix
~/Src/petsc  maint $ echo $PETSC_ARCH

~/Src/petsc  maint $ ls conf/
adic.init          adicmf.init        gmakegen.py        rules              test.log           variables          
adicmastercontrol  adicmfb.init       petscvariables     test               testmaingen.pyc    
~/Src/petsc  maint $ more conf/petscvariables 
PETSC_ARCH=arch-prefix
PETSC_DIR=/Users/barrysmith/Src/petsc
include /Users/barrysmith/Src/petsc/arch-prefix/conf/petscvariables

<<<<<<<<<<<<<   At the top of makefile is 

# next line defines PETSC_DIR and PETSC_ARCH if they are not set
include ././${PETSC_ARCH}/conf/petscvariables
include ${PETSC_DIR}/conf/variables
include ${PETSC_DIR}/conf/rules
include ${PETSC_DIR}/conf/test

<<<<<<<<<<<<<<<< This means the PETSC_DIR is ALWAYS set to the configure one, not the installed one

~/Src/petsc  maint $ rm conf/petscvariables 
~/Src/petsc  maint $ make test_build
makefile:15: conf/petscvariables: No such file or directory
make: *** No rule to make target `conf/petscvariables'.  Stop.


<<<<<<<<<<<<<<<<<  How to fix this? should make install remove the stuff in conf/petscvariables?

~/Src/petsc  maint $ touch conf/petscvariables
~/Src/petsc  maint $ make test_build
Running test examples to verify correct installation
Using PETSC_DIR=/Users/barrysmith/petsc-prefix and PETSC_ARCH=
C/C++ example src/snes/examples/tutorials/ex19 run successfully with 1 MPI process
C/C++ example src/snes/examples/tutorials/ex19 run successfully with 2 MPI processes
Fortran example src/snes/examples/tutorials/ex5f run successfully with 1 MPI process
Completed test examples

<<<<<<<<<<<<<<<< That at least uses the right libraries/includes to run the tests

  








More information about the petsc-dev mailing list