On Mon, Mar 27, 2023 at 10:19 AM Jacob Faibussowitsch <jacob....@gmail.com> wrote:
> Our testing framework was pretty much tailor-made for the PETSc src tree > and as such has many hard-coded paths and decisions. I’m going to go out on > a limb and say you probably won’t get this to work... > I think we can help you get this to work. I have wanted to generalize the test framework for a long time. Everything is build by confg/gmakegentest.py and I think we can get away with just changing paths here and everything will work. Thanks! Matt > That being said, one of the “base” paths that the testing harness uses to > initially find tests is the `TESTSRCDIR` variable in > `${PETSC_DIR}/gmakefile.test`. It is currently defined as > ``` > # TESTSRCDIR is always relative to gmakefile.test > # This must be before includes > mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST))) > TESTSRCDIR := $(dir $(mkfile_path))src > ``` > You should start by changing this to > ``` > # TESTSRCDIR is always relative to gmakefile.test > # This must be before includes > mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST))) > TESTSRCDIR ?= $(dir $(mkfile_path))src > ``` > That way you could run your tests via > ``` > $ make test TESTSRCDIR=/path/to/your/src/dir > ``` > I am sure there are many other modifications you will need to make. > > Best regards, > > Jacob Faibussowitsch > (Jacob Fai - booss - oh - vitch) > > > On Mar 27, 2023, at 06:14, Daniele Prada <daniele.prad...@gmail.com> > wrote: > > > > Hello everyone, > > > > I would like to use the PETSc Testing System for testing a package that > I am developing. > > > > I have read the PETSc developer documentation and have written some > tests using the PETSc Test Description Language. I am going through the > files in ${PETSC_DIR}/config but I am not able to make the testing system > look into the directory tree of my project. > > > > Any suggestions? > > > > Thanks in advance > > Daniele > > -- 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/>