[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:
aleksandr.vodyanov
2025-02-25 13:53:43 +03:00
committed by Aleksandr Vodyanov
parent 3759e1163f
commit a82e89a1bc
46 changed files with 679 additions and 197 deletions

View 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}")

View 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";
}