1eb4e3d
@@ -3,7 +3,13 @@
run: ci/tox.yaml
nodeset: fedora-31-vm
+ - job:
+ name: os-autoinst-perl
+ run: ci/perl.yaml
+ nodeset: fedora-31-vm
+
- project:
check:
jobs:
- os-autoinst-tox
+ - os-autoinst-perl
@@ -0,0 +1,11 @@
+ - hosts: all
+ tasks:
+ - name: Install required packages
+ package:
+ name: ['os-autoinst', 'perl-Test-Strict', 'perl-Test-Harness']
+ state: present
+ become: yes
+ - name: Run perl tests
+ command: prove t/
+ args:
+ chdir: '{{ zuul.project.src_dir }}'
@@ -1,4 +1,7 @@
package anacondatest;
+ use strict;
use base 'basetest';
# base class for all Anaconda (installation) tests
package fedoradistribution;
use base 'distribution';
use Cwd;
package installedtest;
# base class for tests that run on installed system
@@ -0,0 +1,7 @@
+ #!/bin/perl
+ use FindBin;
+ unshift @INC, "/usr/libexec/os-autoinst", "$FindBin::Bin/../lib", "$FindBin::Bin/lib";
+ use Test::Strict;
+ all_perl_files_ok(qw 'main.pm lib tests');
Inspired by openQA's 01-compile-check-all.t, this adds a perl test which checks the syntax of main.pm and all lib and test files, and hooks it up to CI. Requires os-autoinst and perl-Test-Strict.
Signed-off-by: Adam Williamson awilliam@redhat.com
Build succeeded.
rebased onto 1eb4e3d
Pull-Request has been merged by adamwill
Inspired by openQA's 01-compile-check-all.t, this adds a perl
test which checks the syntax of main.pm and all lib and test
files, and hooks it up to CI. Requires os-autoinst and
perl-Test-Strict.
Signed-off-by: Adam Williamson awilliam@redhat.com