[RFC] Run tests in sub dir of testsuite/
Yao Qi
yao@codesourcery.com
Sun Jan 11 12:36:00 GMT 2015
Yao Qi <yao@codesourcery.com> writes:
> Subject: [PATCH] Run tests in sub dir of testsuite/
>
> Here is the V2, in which we have two changes,
>
> 1. Don't change the location of gdb.sum and gdb.log,
> 2. Rename sequential-tests by sequential-run.
>
> ----------------------------------------------------------------
>
> This patch is to run testsuite in a subdirectory of testsuite/, in
> order to facilitate 'make clean'. In sequential testing, directory
> testsuite/sequential-run is created, and in parallel testing,
> directory testsuite/parallel-run is created. Testing artifacts
> (such as directory gdb.base, gdb.ada, object files, shared libraries
> and executables) are stored in it.
>
> In testsuite/Makefile.in, we set OUTPUTDIR to either sequential-run
> or parallel-run, determined by whether we run tests in parallel.
> Makefile passes OUTPUTDIR to dejagnu, and lib/gdb.exp return the
> expected file path according to OUTPUTDIR.
>
> This patch doesn't changes the location of gdb.sum.
>
> gdb/testsuite:
>
> 2014-12-25 Yao Qi <yao@codesourcery.com>
>
> * Makefile.in: Set OUTPUTDIR.
> (check-single): Create dir OUTPUTDIR and pass $(OUTPUTDIR) to
> runtest.
> (check-parallel): Use $(OUTPUTDIR).
> (check/%.exp): Pass $(OUTPUTDIR) to runtest.
> (check-perf): Likewise.
> (clean): Remove directory sequential-run and parallel-run.
> * lib/gdb.exp (standard_output_file): Return file path name
> according to new directory structure.
> (gdb_init): Use $OUTPUTDIR instead of outputs.
> (top-level): Create directory $OUTPUTDIR.
> * lib/trace-support.exp (get_in_proc_agent): Don't use $objdir
> in the path of inprocagent.
> * gdb.base/completion.exp: Use ${OUTPUTDIR}.
> * gdb.base/hashline1.exp: Use [pwd] instead of $objdir.
Could anyone take a look?
--
Yao (齐尧)
More information about the Gdb-patches
mailing list