Skip to content

Commit

Permalink
Add test for cpanm --with-recommends
Browse files Browse the repository at this point in the history
  • Loading branch information
ZephOne committed Jan 11, 2025
1 parent 47056ae commit fd76584
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/unit/plugins/modules/test_cpanm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -357,3 +357,29 @@
cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm)
perl version 5.041005 (/usr/local/bin/perl)
err: ""
- id: install_dancer_with_recommends
input:
name: Dancer2
install_recommendations: true
version: "1.1.2"
output:
changed: true
mocks:
run_command:
- command: [/testbin/cpanm, --version]
environ: *env-def-true
rc: 0
out: |
cpanm (App::cpanminus) version 1.7047 (/usr/local/bin/cpanm)
perl version 5.041005 (/usr/local/bin/perl)
err: ""
- command: [/testbin/perl, -le, 'use Dancer;']
environ: *env-def-false
rc: 0
out: ""
err: ""
- command: [/testbin/perl, -le, 'use Unicode::UTF8;']
environ: *env-def-false
rc: 0
out: ""
err: ""

0 comments on commit fd76584

Please sign in to comment.