|
From: Philippe W. <phi...@sk...> - 2011-12-02 19:52:08
|
In order to have a regtest for the patch in https://bugs.kde.org/show_bug.cgi?id=286270 , I need to have a 32 bit and a 64 bit test program (so that one can exec the other). The only way I see to do that is to put a test program in amd64 directory; and the other one in x86. But this means that there is no test for ppc32/ppc64 (unless I duplicates the test programs there). Is there a way to have a test program compiled in 32 bits and another test program in 64 bits, but in a "common" test directory, rather than in specific architecture directory ? Thanks |
|
From: Bart V. A. <bva...@ac...> - 2011-12-17 15:40:54
|
On Fri, Dec 2, 2011 at 8:51 PM, Philippe Waroquiers < phi...@sk...> wrote: > In order to have a regtest for the patch in > https://bugs.kde.org/show_bug.cgi?id=286270 , > I need to have a 32 bit and a 64 bit test program (so that one can exec > the other). > > The only way I see to do that is to put a test program in amd64 directory; > and the other one in x86. > > But this means that there is no test for ppc32/ppc64 (unless I duplicates > the test programs there). > > Is there a way to have a test program compiled in 32 bits and another test > program > in 64 bits, but in a "common" test directory, rather than in specific > architecture directory ? > Subversion supports storing soft links. There are several examples in the Valgrind Subversion repository where the source code for 32-bit and 64-bit examples is identical and where one of the two is a soft link to the other: $ ls -l none/tests/ppc*/tw[^i]*c lrwxrwxrwx 1 bart users 16 Oct 23 14:25 none/tests/ppc32/tw.c -> ../ppc64/tw_td.c -rw-r--r-- 1 bart users 10383 Oct 23 14:25 none/tests/ppc64/tw_td.c $ svn log none/tests/ppc64/tw_td.c r6796 | sewardj | 2007-09-02 01:16:49 +0200 (Sun, 02 Sep 2007) | 2 lines Add test for tw and td instructions. $ svn log none/tests/ppc32/tw.c r6797 | sewardj | 2007-09-02 01:22:39 +0200 (Sun, 02 Sep 2007) | 2 lines Add test for tw instruction. Bart. |
|
From: Philippe W. <phi...@sk...> - 2011-12-18 16:43:36
|
> > Is there a way to have a test program compiled in 32 bits and another test program > > in 64 bits, but in a "common" test directory, rather than in specific architecture directory ? > Subversion supports storing soft links. Yes, this is finally what I did (see rev 12287). This implied to have one symlink and one entry in each architecture specific directory and Makefile.am. Philippe |