[DO-1345] fixed windows packages (!16)
Reviewed-on: https://git.avroid.tech/Conan/conan_build/pulls/16 Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.team> Co-committed-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.team>
This commit is contained in:
committed by
Aleksandr Vodyanov
parent
3759e1163f
commit
a82e89a1bc
16
recipes/strawberryperl/all/test_package/conanfile.py
Normal file
16
recipes/strawberryperl/all/test_package/conanfile.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from conan import ConanFile
|
||||
import os
|
||||
|
||||
|
||||
class TestPackageConan(ConanFile):
|
||||
settings = "os", "arch", "compiler", "build_type"
|
||||
generators = "VirtualBuildEnv"
|
||||
test_type = "explicit"
|
||||
|
||||
def build_requirements(self):
|
||||
self.tool_requires(self.tested_reference_str)
|
||||
|
||||
def test(self):
|
||||
self.run("perl --version")
|
||||
perl_script = os.path.join(self.source_folder, "list_files.pl")
|
||||
self.run(f"perl {perl_script}")
|
||||
12
recipes/strawberryperl/all/test_package/list_files.pl
Normal file
12
recipes/strawberryperl/all/test_package/list_files.pl
Normal file
@@ -0,0 +1,12 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use Path::Tiny;
|
||||
|
||||
my $dir = path('.');
|
||||
my $iter = $dir->iterator;
|
||||
print "Hello Conan!\n";
|
||||
while (my $file = $iter->()) {
|
||||
next if $file->is_dir();
|
||||
print "$file\n";
|
||||
}
|
||||
Reference in New Issue
Block a user