[yast-devel] questions concerning yast2-testsuite
Hi, I have some problems with the yast2 testsuite. When I run tests in storage y2base cannot find the libstorage bindings since they are not installed in the system. So I need to modify the Makefile.am get unfortunately gets overwritten by the testsuite. Is there any mechanism to handle specific changes to the files from the testsuite skeleton? Also I would like to change testsuite.exp to run all tests even after a failure. Objections? -foreach file $filenames { - if {[testsuite-run $file] < 0} { - return - } -} +foreach file $filenames { testsuite-run $file } caio Arvin -- Arvin Schnell, <aschnell@suse.de> Senior Software Engineer, Research & Development SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
* Arvin Schnell <aschnell@suse.de> [Dec 11. 2009 11:44]:
Hi,
I have some problems with the yast2 testsuite. When I run tests in storage y2base cannot find the libstorage bindings since they are not installed in the system. So I need to modify the Makefile.am get unfortunately gets overwritten by the testsuite. Is there any mechanism to handle specific changes to the files from the testsuite skeleton?
Hmm, YaST used to have command line options to add search pathes for includes (-I) and modules (-M). Is this what you're looking for ? Klaus --- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Fri, Dec 11, 2009 at 11:52:40AM +0100, Klaus Kaempf wrote:
* Arvin Schnell <aschnell@suse.de> [Dec 11. 2009 11:44]:
Hi,
I have some problems with the yast2 testsuite. When I run tests in storage y2base cannot find the libstorage bindings since they are not installed in the system. So I need to modify the Makefile.am get unfortunately gets overwritten by the testsuite. Is there any mechanism to handle specific changes to the files from the testsuite skeleton?
Hmm, YaST used to have command line options to add search pathes for includes (-I) and modules (-M).
Is this what you're looking for ?
No really. I know how to setup the paths with: YCPCFLAGS = -M ../../../bindings/ycp YCPC_LD_LIBRARY_PATH = ../../../bindings/src/.libs YCPC_Y2DIR = ../../../bindings/src/.libs But I cannot simply add them to the Makefile.am as that file gets overridden with the skeleton version. I also need SUBDIRS and EXTRA_DIST modifications to Makefile.am and modifications to runtest.sh. ciao Arvin -- Arvin Schnell, <aschnell@suse.de> Senior Software Engineer, Research & Development SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Fri, Dec 11, 2009 at 12:02:04PM +0100, Arvin Schnell wrote:
On Fri, Dec 11, 2009 at 11:52:40AM +0100, Klaus Kaempf wrote:
* Arvin Schnell <aschnell@suse.de> [Dec 11. 2009 11:44]:
Hi,
I have some problems with the yast2 testsuite. When I run tests in storage y2base cannot find the libstorage bindings since they are not installed in the system. So I need to modify the Makefile.am get unfortunately gets overwritten by the testsuite. Is there any mechanism to handle specific changes to the files from the testsuite skeleton?
Hmm, YaST used to have command line options to add search pathes for includes (-I) and modules (-M).
Is this what you're looking for ?
No really. I know how to setup the paths with:
YCPCFLAGS = -M ../../../bindings/ycp YCPC_LD_LIBRARY_PATH = ../../../bindings/src/.libs YCPC_Y2DIR = ../../../bindings/src/.libs
But I cannot simply add them to the Makefile.am as that file gets overridden with the skeleton version. I also need SUBDIRS and EXTRA_DIST modifications to Makefile.am and modifications to runtest.sh.
Yes, this gets overwritten. But the testsuite is one part of classic YaST where I plan to do actual new development, having seen in rubyland that it does not have to be just a nusisance. So, let's work on fixing that. Do you have a patch? -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
On Fri, Dec 11, 2009 at 12:40:11PM +0100, Martin Vidner wrote:
Yes, this gets overwritten.
But the testsuite is one part of classic YaST where I plan to do actual new development, having seen in rubyland that it does not have to be just a nusisance.
So, let's work on fixing that. Do you have a patch?
Yes, attached. It does these things: 1) I need extra files I have placed in a data dir so I need SUBDIRS. 2) I have YCP include files places in lib dir so I need EXTRA_DIST. 3) Continues with tests after failures. 4) Sets search paths. 5) I want to very only the "Dump" lines from the log so an extra grep has need inserted in runtest.sh ciao Arvin -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Fri, Dec 11, 2009 at 11:44:13AM +0100, Arvin Schnell wrote:
Also I would like to change testsuite.exp to run all tests even after a failure. Objections?
-foreach file $filenames { - if {[testsuite-run $file] < 0} { - return - } -} +foreach file $filenames { testsuite-run $file }
Fine. That reminds me that I wanted to factor out such code, but dejagnu is amazingly unfriendly and I couldn't find a way to librarize it. -- Martin Vidner, YaST developer http://en.opensuse.org/User:Mvidner Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
participants (3)
-
Arvin Schnell
-
Klaus Kaempf
-
Martin Vidner