diff options
author | kokke <spam@rowdy.dk> | 2019-02-01 11:32:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-01 11:32:41 +0100 |
commit | e72b6eff0884673997d0ca6385169bbd9b31936d (patch) | |
tree | a2237f39bbfa0d64148c9f8a5b651563d5cc27e7 /test_package | |
parent | Merge pull request #123 from rkeene/invcipher-not-ctr (diff) | |
parent | Add check for AES key-size option (diff) | |
download | tiny-AES-c-e72b6eff0884673997d0ca6385169bbd9b31936d.tar tiny-AES-c-e72b6eff0884673997d0ca6385169bbd9b31936d.tar.gz tiny-AES-c-e72b6eff0884673997d0ca6385169bbd9b31936d.tar.bz2 tiny-AES-c-e72b6eff0884673997d0ca6385169bbd9b31936d.tar.lz tiny-AES-c-e72b6eff0884673997d0ca6385169bbd9b31936d.tar.xz tiny-AES-c-e72b6eff0884673997d0ca6385169bbd9b31936d.tar.zst tiny-AES-c-e72b6eff0884673997d0ca6385169bbd9b31936d.zip |
Diffstat (limited to 'test_package')
-rw-r--r-- | test_package/CMakeLists.txt | 11 | ||||
-rw-r--r-- | test_package/conanfile.py | 17 |
2 files changed, 28 insertions, 0 deletions
diff --git a/test_package/CMakeLists.txt b/test_package/CMakeLists.txt new file mode 100644 index 0000000..2e4b243 --- /dev/null +++ b/test_package/CMakeLists.txt @@ -0,0 +1,11 @@ +cmake_minimum_required(VERSION 2.8.12) +project(TinyAesPackageTest C CXX) + +include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) +conan_basic_setup() + +add_executable(example ../test.c) +add_executable(example_cpp ../test.cpp) + +target_link_libraries(example ${CONAN_LIBS}) +target_link_libraries(example_cpp ${CONAN_LIBS})
\ No newline at end of file diff --git a/test_package/conanfile.py b/test_package/conanfile.py new file mode 100644 index 0000000..08f550f --- /dev/null +++ b/test_package/conanfile.py @@ -0,0 +1,17 @@ +from conans import ConanFile, CMake, tools +import os + + +class TinyAesCTestConan(ConanFile): + settings = "os", "compiler", "build_type", "arch" + generators = "cmake" + + def build(self): + cmake = CMake(self) + cmake.configure() + cmake.build() + + def test(self): + if not tools.cross_building(self.settings): + os.chdir("bin") + self.run(".%sexample" % os.sep) |