2 # Copyright (C) 2011 Toni Gundogdu <legatvs@gmail.com>
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
24 eval "use Test::Deep";
25 plan skip_all => "Test::Deep required for testing" if $@;
29 my $q = Test::Quvi->new;
31 plan skip_all => "TEST_SKIP rule"
32 if $q->test_skip("nosupport");
35 http://youtu.be/3WSQH__H1XE
36 http://youtu.be/watch?v=3WSQH__H1XE
37 http://youtu.be/embed/3WSQH__H1XE
38 http://youtu.be/v/3WSQH__H1XE
39 http://youtu.be/e/3WSQH__H1XE
40 http://youtube.com/watch?v=3WSQH__H1XE
41 http://youtube.com/embed/3WSQH__H1XE
42 http://jp.youtube.com/watch?v=3WSQH__H1XE
43 http://jp.youtube-nocookie.com/e/3WSQH__H1XE
44 http://jp.youtube.com/embed/3WSQH__H1XE
47 plan tests => 1 + scalar @a;
49 # Make a note of the use of /dev/null
50 my ($r) = $q->run("http://nosupport.url", "--support -qr 2>/dev/null");
51 is($r, 0x41, "quvi exit status == QUVI_NOSUPPORT");
55 ($r) = $q->run($_, "--support -qr");
56 is($r, 0x00, "quvi exit status == QUVI_OK");
59 # vim: set ts=2 sw=2 tw=72 expandtab: