Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Jul 23, 2021
1 parent cbd0bb2 commit f04b2fb
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
gcc_machine:
- arch123
gcc_vendor:
- conda
gcc_version:
- 9.4.0
libgfortran_soname:
- 5
binutils_version:
- 2.36.1
target_platform:
- linux-32
cross_target_platform:
- linux-32
old_gcc_vendor:
- conda_cos7
gcc_build_number:
- 0
glibc_version:
- 2.17
# openmp versions
openmp_ver:
- 4.5
libgomp_ver:
- 1.0.0
_libgcc_mutex:
- 0.1 conda_forge
use_system_gcc:
- False
38 changes: 38 additions & 0 deletions tests/test-recipes/split-packages/_circular_deps_cross/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{% set name = "gcc_impl" %}
{% set version = gcc_version %}
{% set chost = gcc_machine ~ "-" ~ gcc_vendor ~ "-linux-gnu-" %}
{% set build_num = gcc_build_number %}

package:
name: gcc_compilers
version: {{ version }}

build:
number: 0

outputs:
- name: gcc_impl_{{ cross_target_platform }}
requirements:
build:
- gcc_impl_{{ target_platform }} # [build_platform != target_platform]
- gxx_impl_{{ target_platform }} # [build_platform != target_platform]
- gcc_impl_{{ cross_target_platform }} # [build_platform != target_platform]
- gxx_impl_{{ cross_target_platform }} # [build_platform != target_platform]
- sysroot_{{ cross_target_platform }} {{ glibc_version }}
host:
- sysroot_{{ cross_target_platform }} {{ glibc_version }}
run:
- sysroot_{{ cross_target_platform }}

- name: gxx_impl_{{ cross_target_platform }}
requirements:
build:
- gcc_impl_{{ target_platform }} # [build_platform != target_platform]
- gxx_impl_{{ target_platform }} # [build_platform != target_platform]
- gcc_impl_{{ cross_target_platform }} # [build_platform != target_platform]
- gxx_impl_{{ cross_target_platform }} # [build_platform != target_platform]
- sysroot_{{ cross_target_platform }} {{ glibc_version }}
host:
- sysroot_{{ cross_target_platform }} {{ glibc_version }}
run:
- sysroot_{{ cross_target_platform }}
6 changes: 6 additions & 0 deletions tests/test_subpackages.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,12 @@ def test_inherit_build_number(testing_config):
assert int(m.meta['build']['number']) == 1, "build number should have been inherited as '1'"


def test_circular_deps_cross(testing_config):
recipe = os.path.join(subpackage_dir, '_circular_deps_cross')
# check that this does not raise an exception
ms = api.render(recipe, config=testing_config)


@pytest.mark.slow
def test_loops_do_not_remove_earlier_packages(testing_config):
recipe = os.path.join(subpackage_dir, '_xgboost_example')
Expand Down

0 comments on commit f04b2fb

Please sign in to comment.