Skip to content

Instantly share code, notes, and snippets.

@mvidner
Created December 6, 2013 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mvidner/7826942 to your computer and use it in GitHub Desktop.
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
module Yast
class TestUIClient < Client
def main
Yast.import "Wizard"
Wizard.CreateDialog
Wizard.CloseDialog
true
end
end
end
Yast::TestUIClient.new.main
#! /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