Bug 388612

Summary: test case for build-test
Product: [openSUSE] openSUSE 11.0 Reporter: Stephan Kulow <coolo>
Component: YaST2Assignee: Jiri Srain <jsrain>
Status: RESOLVED WONTFIX QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: captain.magnus, deanjo, forgotten_0RO3Kla3Ru, francis, jsrain, jsuchome, kailed, mvidner, robert.brooks, sontek
Version: Beta 1   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on: 382703    
Bug Blocks:    
Attachments: Sample testsuite

Description Stephan Kulow 2008-05-09 09:09:25 UTC
Do you have some test suite where this fits? E.g. build-test?

+++ This bug was initially created as a clone of Bug #382703 +++

Created an attachment (id=209836)
y2log of "yast2 --ncurses live-installer"

Running as root "yast2 --ncurses live-installer" on gnome live cd, X flickers (actually, it shows console, but then returns to X) and segfaults at "Saving keyboard configuration":

/sbin/yast2: line 420:  3550 Segmentation fault      $ybindir/y2base $module "$@" "$SELECTED_GUI" $Y2_GEOMETRY $Y2UI_ARGS

I'm attaching the entire y2log (I'm not sure what I'm looking for there).
Comment 1 Jiri Srain 2008-05-12 10:24:42 UTC
We could use the macro recorder to perform an installation, however, I don't think that we can shield from SaX.

Anyway, I don't quite understand what you require by thig bug, could you, please, explain?
Comment 2 Stephan Kulow 2008-05-12 11:30:15 UTC
I'm just talking about the attached test case, which tests sax perl bindings out of ycp. No need to test an installation. 
Comment 3 Jiri Srain 2008-05-13 07:53:32 UTC
I doubt. We would need a test mode of SaX, which does not actually write any configuration files.

Stefan, do we have something like that?
Comment 4 Stephan Kulow 2008-05-13 07:57:05 UTC
actually if you run the test case as nobody, it will do exactly that :)
Comment 5 Stephan Kulow 2008-05-13 08:00:03 UTC
nobody@desdemona:~> /usr/lib/YaST2/bin/y2base /suse/coolo/attachment.ycp UI
YaST got signal 11 at YCP file Keyboard.ycp:934
Speicherzugriffsfehler (core dumped)

Comment 6 Stephan Kulow 2008-05-13 08:01:23 UTC
I'm talking about https://bugzilla.novell.com/attachment.cgi?id=213736 btw
Comment 7 Stefan Dirsch 2008-05-13 10:11:18 UTC
No idea, why this one has been reassigned to me. Please explain.
Comment 8 Stefan Dirsch 2008-05-13 10:12:07 UTC
(In reply to comment #7 from Stefan Dirsch)
> No idea, why this one has been reassigned to me. Please explain.
Looks like this has been reverted meanwhile.

Comment 9 Jiri Srain 2008-05-19 14:12:08 UTC
Created attachment 216430 [details]
Sample testsuite

This testsuite could work to find out whether the call can succeed, however, SaX would need to run properly even without graphics card.
Comment 10 Jiri Srain 2008-05-19 14:15:26 UTC
However, since we need to build distro even on computers without graphics card (and the detection needs several filesystems which are not mounted during the build process), I cannot do a proper testsuite.

The only chance I see is having SaX detect being run in a testsuite and use some hardcoded data instead of reading from system in this case.