PATCH: Run V3 tests on installed compiler

Mark Mitchell mark@codesourcery.com
Wed Mar 23 19:06:00 GMT 2005


Benjamin Kosnik wrote:

> Hmm. I must be doing something wrong: neither works for me. I've attached my output.
> 
> Help? I tried doing this in the gcc build directory and in the libstdc++
> build directory, neither worked. Same with adjusting paths. 
> 
> This is probably something I'm doing wrong.

There were two errors: (a) missing quotes in the commands I posted, and 
(b) you need to run in the build/<arch>/libstdc++/testsuite directory, 
as that's where "testsuite_files" is built.

Here are the correct commands:

runtest --tool libstdc++ normal.exp="`find $srcdir/17_intro -name *.cc`"

runtest --tool libstdc++ normal.exp="`cat testsuite_files`"

(Note the double quotes around the output from the subcommand.)

With that, and a testsuite_files that contains just a few tests, I get:

============

WARNING: Couldn't find the global config file.
Test Run By mitchell on Wed Mar 23 10:52:33 2005
Native configuration is x86_64-unknown-linux-gnu

                 === libstdc++ tests ===

Schedule of variations:
     unix

Running target unix
Using /usr/local/tools/gcc-3.3.1/share/dejagnu/baseboards/unix.exp as 
board description file for target.
Using /usr/local/tools/gcc-3.3.1/share/dejagnu/config/unix.exp as 
generic interface file for target.
Using 
/home/mitchell/dev/gcc-mainline/libstdc++-v3/testsuite/config/default.exp 
as tool-and-target-specific interface file.
Running 
/home/mitchell/dev/gcc-mainline/libstdc++-v3/testsuite/libstdc++-dg/normal.exp 
...

                 === libstdc++ Summary ===

# of expected passes            22

============

>>OK.  If you do not ask me to revert my patch, I will update that 
>>document to use the example above to show how to feed the contents 
>>testsuite_files into DejaGNU.
> 
> 
> Please do the doc updates.

Roger, wilco; on my high-priority list.  It will get done today.

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304



More information about the Libstdc++ mailing list