Created
December 6, 2013 15:49
-
-
Save mvidner/7826942 to your computer and use it in GitHub Desktop.
non interactive test that yast does not crash when we update some parts of libyui
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Yast | |
class TestUIClient < Client | |
def main | |
Yast.import "Wizard" | |
Wizard.CreateDialog | |
Wizard.CloseDialog | |
true | |
end | |
end | |
end | |
Yast::TestUIClient.new.main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# non interactive test that yast does not crash | |
# when we update some parts of libyui | |
try() { | |
/sbin/yast2 "$@" | |
R=$? | |
if [ $R != 0 ]; then | |
echo FAILED "$@" | |
break | |
fi | |
echo PASSED "$@" | |
} | |
UIS=${1---ncurses --qt --gtk} | |
for UI in $UIS; do | |
try $UI $(dirname $0)/test-ui.rb | |
try $UI sw_single aaa_base-extras | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment