diff options
author | Angelo Naselli <anaselli@linux.it> | 2014-12-10 18:16:48 +0100 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2014-12-10 18:16:48 +0100 |
commit | 742aef75e939b44cbeccc5304e265b6fa59235d2 (patch) | |
tree | 65efdae417bfd09b040b825517bfc43e1046fd1b /t/05-rpmnew.t | |
parent | 735e5e5992d445c7ff30d3a83275b0eb9951f09d (diff) | |
download | manatools-742aef75e939b44cbeccc5304e265b6fa59235d2.tar manatools-742aef75e939b44cbeccc5304e265b6fa59235d2.tar.gz manatools-742aef75e939b44cbeccc5304e265b6fa59235d2.tar.bz2 manatools-742aef75e939b44cbeccc5304e265b6fa59235d2.tar.xz manatools-742aef75e939b44cbeccc5304e265b6fa59235d2.zip |
Skipped GUI dialog testing (enable them by running make test TEST_GUI=1)
thanks to Thierry Vignaud for the suggestion
Diffstat (limited to 't/05-rpmnew.t')
-rw-r--r-- | t/05-rpmnew.t | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/t/05-rpmnew.t b/t/05-rpmnew.t index cc1021f6..ce561397 100644 --- a/t/05-rpmnew.t +++ b/t/05-rpmnew.t @@ -7,30 +7,26 @@ BEGIN { use_ok( 'AdminPanel::Rpmdragora::rpmnew' ) || print "AdminPanel::Rpmdragora::rpmnew failed!\n"; } - diag "\n\nNext tests will create some gui dialogs"; - diag "Perform tests (y/n) [n] ?"; - my $a = <>; chomp $a; $a = "n" unless $a; +SKIP: { + #remember to skip the righ number of tests + skip "To enable dialog tests set TEST_GUI", 1, unless $ENV{TEST_GUI}; - SKIP: { - #remember to skip the righ number of tests - skip "You didn't say yes...", 1, unless ( $a eq "y" ); - - open (MYFILE, '>/tmp/_rpmnew_test'); + open (MYFILE, '>/tmp/_rpmnew_test'); print MYFILE "value = 1\n"; print MYFILE "value1 = 2\n"; close (MYFILE); - open (MYFILE, '>/tmp/_rpmnew_test.rpmnew'); + open (MYFILE, '>/tmp/_rpmnew_test.rpmnew'); print MYFILE "value = 2\n"; print MYFILE "value1 = 1\n"; close (MYFILE); - is( AdminPanel::Rpmdragora::rpmnew::rpmnew_dialog("Test rpmnew dialog", ( - test_package => ["/tmp/_rpmnew_test", "/tmp/rpmnew_test"], - test_package2 => ["/tmp/tp2"], - )), 0, 'rpmnew'); + is( AdminPanel::Rpmdragora::rpmnew::rpmnew_dialog("Test rpmnew dialog", ( + test_package => ["/tmp/_rpmnew_test", "/tmp/rpmnew_test"], + test_package2 => ["/tmp/tp2"], + )), 0, 'rpmnew'); - } +} done_testing; |