[DO-978] openssl package (!8)
Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech> Reviewed-on: https://git.avroid.tech/Conan/conan_build/pulls/8
This commit is contained in:
22
recipes/nasm/all/test_v1_package/conanfile.py
Normal file
22
recipes/nasm/all/test_v1_package/conanfile.py
Normal file
@@ -0,0 +1,22 @@
|
||||
import os
|
||||
from conans import ConanFile, tools
|
||||
|
||||
|
||||
class TestPackageConan(ConanFile):
|
||||
settings = "os", "arch", "compiler", "build_type"
|
||||
test_type = "explicit"
|
||||
|
||||
def build_requirements(self):
|
||||
self.build_requires(self.tested_reference_str)
|
||||
|
||||
def test(self):
|
||||
self.run("nasm --version")
|
||||
asm_file = os.path.join(self.source_folder, "hello_linux.asm")
|
||||
out_file = os.path.join(self.build_folder, "hello_linux.o")
|
||||
self.run(f"nasm -felf64 {asm_file} -o {out_file}")
|
||||
if not tools.cross_building(self):
|
||||
if self.settings.os == "Linux" and self.settings.arch == "x86_64":
|
||||
ld = tools.get_env("LD", "ld")
|
||||
bin_file = os.path.join(self.build_folder, "hello_linux")
|
||||
self.run(f"{ld} hello_linux.o -o {bin_file}")
|
||||
self.run(bin_file)
|
||||
Reference in New Issue
Block a user