Skip to content

Commit

Permalink
Test perl dependencies using AtVersion syntax
Browse files Browse the repository at this point in the history
Ensure perl dependencies that use Pkg::Name@Version definitions work
with the cpanm utility.
  • Loading branch information
Stealthii committed Apr 24, 2024
1 parent 51248d1 commit e658127
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/languages/perl_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,16 @@ def test_perl_additional_dependencies(mock_exe_exists, cpanm, tmp_path):
mock_exe_exists.assert_called_once_with('cpanm')
assert ret == 0
assert out.startswith(b'This is perltidy, v20211029')


def test_perl_additional_dependencies_at_syntax(tmp_path):
_make_local_repo(str(tmp_path))

ret, out = run_language(
tmp_path,
perl,
'perltidy --version',
deps=('Perl::Tidy@20211029',),
)
assert ret == 0
assert out.startswith(b'This is perltidy, v20211029')

0 comments on commit e658127

Please sign in to comment.