mirror of
https://github.com/fmang/opustags.git
synced 2025-01-16 13:13:15 +01:00
t: use git to detect the version number
This commit is contained in:
parent
69561ae05f
commit
2181f9f0eb
9
t/meta.t
9
t/meta.t
@ -7,18 +7,19 @@ use warnings;
|
||||
use Test::More tests => 5;
|
||||
|
||||
my $opustags = './opustags';
|
||||
chomp(my $version = `git describe --tags --abbrev=0`);
|
||||
|
||||
BAIL_OUT("$opustags does not exist or is not executable") if (! -x $opustags);
|
||||
|
||||
is(`$opustags`, <<'EOF', 'no options show the usage');
|
||||
opustags version 1.1.1
|
||||
is(`$opustags`, <<"EOF", 'no options show the usage');
|
||||
opustags version $version
|
||||
Usage: opustags --help
|
||||
opustags [OPTIONS] FILE
|
||||
opustags OPTIONS FILE -o FILE
|
||||
EOF
|
||||
|
||||
is(`$opustags --help`, <<'EOF', '--help displays the help message');
|
||||
opustags version 1.1.1
|
||||
is(`$opustags --help`, <<"EOF", '--help displays the help message');
|
||||
opustags version $version
|
||||
|
||||
Usage: opustags --help
|
||||
opustags [OPTIONS] FILE
|
||||
|
Loading…
x
Reference in New Issue
Block a user