File: executables.t

package info (click to toggle)
libpandoc-wrapper-perl 0.9.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 304 kB
  • sloc: perl: 589; makefile: 5; sh: 1
file content (19 lines) | stat: -rw-r--r-- 585 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use strict;
use Test::More;
use File::Temp;
use Pandoc;

plan skip_all => 'pandoc executable required' unless pandoc;
plan skip_all => 'these tests are for release candidate testing'
    unless $ENV{RELEASE_TESTING};

my $dir = File::Temp->newdir;

isa_ok pandoc->symlink("$dir/foo"), 'Pandoc', 'symlink';
new_ok 'Pandoc', [ "$dir/foo" ], 'executable not named "pandoc"';

symlink "xxx", "$dir/pandoc"; # test overriding existing symlink
is pandoc->symlink("$dir")->bin, pandoc->bin, 'return Pandoc instance';
new_ok 'Pandoc', [ "$dir/pandoc" ], 'symlink in directory';

done_testing;