Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve testing and CI a bit #387

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Improve testing and CI a bit #387

wants to merge 2 commits into from

Conversation

mohawk2
Copy link
Member

@mohawk2 mohawk2 commented Dec 26, 2020

This makes the CI do make disttest NOECHO= on all platforms, both to exercise the disttest functionality a bit more, and to reveal what is happening when it doesn't work.

Similarly, t/basic.t is updated so that all runs of the install functionality go via the check_dummy_inst function, which will then always check each install systematically in the same way.

@@ -45,3 +45,8 @@ jobs:
run: |
path C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;%PATH%
gmake test
- name: Run Tests
Copy link
Member

@haarg haarg Dec 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably have a distinct name.

my $files = check_dummy_inst('other', 'PREFIX= DESTDIR=other', 'with DESTDIR');
eval {
unlike slurp($files->{'perllocal.pod'}), qr/other/, 'DESTDIR should not appear in perllocal';
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like if there is an exception here, it wouldn't run the test function, which would throw off the text count for the rest of the file.

@@ -47,3 +47,8 @@ jobs:
run: |
path c:\tools\cygwin\bin;c:\tools\cygwin\usr\bin
make test
- name: Run Tests
Copy link
Member

@haarg haarg Dec 27, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants