File tree 6 files changed +115
-4
lines changed
6 files changed +115
-4
lines changed Original file line number Diff line number Diff line change 17
17
fail-fast : false
18
18
matrix :
19
19
cip_tag :
20
- - " 5.37"
20
+ - " 5.41"
21
+ - " 5.40"
22
+ - " 5.38"
21
23
- " 5.36"
22
24
- " 5.34"
23
25
- " 5.32"
Original file line number Diff line number Diff line change @@ -2,4 +2,7 @@ FFI-Model-*
2
2
/.build /
3
3
* .swp
4
4
5
-
5
+ /FFI-Model- *
6
+ /.build
7
+ * .old
8
+ * .orig
Original file line number Diff line number Diff line change
1
+ {
2
+ "pls.perlcritic.perlcriticrc" : " perlcriticrc" ,
3
+ "pls.inc" : [
4
+ " $ROOT_PATH/lib"
5
+ ]
6
+ }
Original file line number Diff line number Diff line change
1
+ # FFI::Model ![ static] ( https://github.com/PerlFFI/FFI-Model/workflows/static/badge.svg ) ![ linux] ( https://github.com/PerlFFI/FFI-Model/workflows/linux/badge.svg )
2
+
3
+ Model for FFI generated code
4
+
5
+ # AUTHOR
6
+
7
+
8
+
9
+ # COPYRIGHT AND LICENSE
10
+
11
+ This software is copyright (c) 2022-2024 by Graham Ollis.
12
+
13
+ This is free software; you can redistribute it and/or modify it under
14
+ the same terms as the Perl 5 programming language system itself.
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ name = FFI-Model
2
2
author = Graham Ollis <
[email protected] >
3
3
license = Perl_5
4
4
copyright_holder = Graham Ollis
5
- copyright_year = 2022
5
+ copyright_year = 2022-2024
6
6
version = 0.01
7
7
8
8
[@Author::Plicease]
9
- :version = 2.69
9
+ :version = 2.79
10
10
release_tests = 1
11
11
installer = Author::Plicease::MakeMaker
12
12
github_user = PerlFFI
Original file line number Diff line number Diff line change
1
+ use Test2::V0 -no_srand => 1;
2
+ use Config;
3
+
4
+ eval { require ' Test/More.pm' };
5
+
6
+ # This .t file is generated.
7
+ # make changes instead to dist.ini
8
+
9
+ my %modules ;
10
+ my $post_diag ;
11
+
12
+ $modules {$_ } = $_ for qw(
13
+ ExtUtils::MakeMaker
14
+ Test2::V0
15
+ ) ;
16
+
17
+
18
+
19
+ my @modules = sort keys %modules ;
20
+
21
+ sub spacer ()
22
+ {
23
+ diag ' ' ;
24
+ diag ' ' ;
25
+ diag ' ' ;
26
+ }
27
+
28
+ pass ' okay' ;
29
+
30
+ my $max = 1;
31
+ $max = $_ > $max ? $_ : $max for map { length $_ } @modules ;
32
+ our $format = " %-${max} s %s " ;
33
+
34
+ spacer;
35
+
36
+ my @keys = sort grep /(MOJO|PERL|\A(LC|HARNESS)_|\A(SHELL|LANG)\Z)/i, keys %ENV ;
37
+
38
+ if (@keys > 0)
39
+ {
40
+ diag " $_ =$ENV {$_ }" for @keys ;
41
+
42
+ if ($ENV {PERL5LIB })
43
+ {
44
+ spacer;
45
+ diag " PERL5LIB path" ;
46
+ diag $_ for split $Config {path_sep }, $ENV {PERL5LIB };
47
+
48
+ }
49
+ elsif ($ENV {PERLLIB })
50
+ {
51
+ spacer;
52
+ diag " PERLLIB path" ;
53
+ diag $_ for split $Config {path_sep }, $ENV {PERLLIB };
54
+ }
55
+
56
+ spacer;
57
+ }
58
+
59
+ diag sprintf $format , ' perl' , " $] $^O $Config {archname}" ;
60
+
61
+ foreach my $module (sort @modules )
62
+ {
63
+ my $pm = " $module .pm" ;
64
+ $pm =~ s { ::} { /} g ;
65
+ if (eval { require $pm ; 1 })
66
+ {
67
+ my $ver = eval { $module -> VERSION };
68
+ $ver = ' undef' unless defined $ver ;
69
+ diag sprintf $format , $module , $ver ;
70
+ }
71
+ else
72
+ {
73
+ diag sprintf $format , $module , ' -' ;
74
+ }
75
+ }
76
+
77
+ if ($post_diag )
78
+ {
79
+ spacer;
80
+ $post_diag -> ();
81
+ }
82
+
83
+ spacer;
84
+
85
+ done_testing;
86
+
You can’t perform that action at this time.
0 commit comments