This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: a request with help with modifying the libstdc++ test suite harness to analyze a copy of libstdc++ other than the one in the source unpacking and build directory


On 20 March 2013 23:37, Abe wrote:
> First: my apologies to Jonathan if he gets this in duplicate.  If so,
> please just tell me, and I will not CC again when I reply to the list
> as well.

(Any decent email client will recognise the second copy as a duplicate
and discard it)

>> The docs at http://gcc.gnu.org/onlinedocs/libstdc++/manual/test.html say:
> […]
>> runtest --tool libstdc++ --srcdir=/path/to/gcc/libstdc++-v3/testsuite
>
> Thanks for that!  I had forgotten about that.  IIRC I tried that a
> long-enough time ago that I had already forgotten about that command,
> but when I tried it the first time I didn`t have DejaGNU installed yet
> so it didn`t work at that time.  ;-)
>
>
>> Have you tried that method? i.e. not running 'make check' within the
>> build tree (which causes it to use the just-built compiler) but
>> launching DejaGNU from another location, where it finds GCC in your PATH?
>
> I have now, and thanks _very_ much for your help.  However, not all
> the problem[s] is/are solved, I think.  Now [when running the test
> suite in the abovementioned way], I get these errors that I`m pretty
> sure I didn`t get from "make check":
>
>   ERROR: tcl error sourcing
> /usr/src/gcc-4.7.2/libstdc++-v3/testsuite/libstdc++-abi/abi.exp.
>   ERROR: can't read "baseline_subdir_switch": no such variable
>       while executing
>   "eval exec $cxx $baseline_subdir_switch"
>       invoked from within
>   "set baseline_subdir "[eval exec $cxx $baseline_subdir_switch]""
>       (file "/usr/src/gcc-4.7.2/libstdc++-v3/testsuite/libstdc++-abi/abi.exp"
> line 27)
>       invoked from within
>   "source /usr/src/gcc-4.7.2/libstdc++-v3/testsuite/libstdc++-abi/abi.exp"
>       ("uplevel" body line 1)
>       invoked from within
>   "uplevel #0 source
> /usr/src/gcc-4.7.2/libstdc++-v3/testsuite/libstdc++-abi/abi.exp"
>       invoked from within
>   "catch "uplevel #0 source $test_file_name""
>   Running /usr/src/gcc-4.7.2/libstdc++-v3/testsuite/libstdc++-dg/conformance.exp
> ...
>   […]

Hmm, it looks as though something is broken when running the testsuite
outside the build dir. That should work, so please report it to
http://gcc.gnu.org/bugzilla - thanks.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]