5972c3
# Test which run in classic and docker environemnt
5972c3
- hosts: localhost
5972c3
  tags:
5972c3
  - classic
5972c3
  - container
5972c3
  - atomic
Karel Zak 42def0
  vars:
Karel Zak 42def0
    # standard-test-basic directory for tests are relative to {{ tenv_workdir }}
Karel Zak 42def0
    tenv_workdir: /var/test
Karel Zak 42def0
  pre_tasks:
Karel Zak 42def0
  - import_role:
Karel Zak 42def0
      name: standard-test-source
Karel Zak 42def0
    vars:
Karel Zak 42def0
      fetch_only: True
Karel Zak 42def0
Karel Zak 42def0
  - name: Copy files including source to test environment
Karel Zak 42def0
    synchronize:
Karel Zak 42def0
      src: "{{ playbook_dir }}/.."
Karel Zak 42def0
      dest: "{{ tenv_workdir }}"
Karel Zak 42def0
      mode: push
Karel Zak 42def0
      ssh_args: "-o UserKnownHostsFile=/dev/null"
5972c3
  roles:
5972c3
  - role: standard-test-beakerlib
5972c3
    tests:
5972c3
    - various
5972c3
    required_packages:
5972c3
    - util-linux
5972c3
    - util-linux-user
Karel Zak 42def0
  - role: standard-test-basic
Karel Zak 42def0
    required_packages:
Karel Zak 42def0
    - util-linux
Karel Zak 42def0
    - util-linux-user
Karel Zak 42def0
    - coreutils
Karel Zak 42def0
    - bzip2
Karel Zak 42def0
    - xz
Karel Zak 42def0
    - bc
Karel Zak 42def0
    - device-mapper
Karel Zak 42def0
    - iproute
Karel Zak 42def0
    - mdadm
Karel Zak 42def0
    - e2fsprogs
Karel Zak 42def0
    - binutils
Karel Zak 42def0
    - procps-ng
Karel Zak 42def0
    - sed
Karel Zak 42def0
    - gawk
Karel Zak 42def0
    - file
Karel Zak 42def0
    - git
Karel Zak 42def0
    - rpm-build
Karel Zak 42def0
    tests:
Karel Zak 42def0
    - prepare-source:
Karel Zak 42def0
        dir: ./
Karel Zak 42def0
        run: rpmbuild -bp {{tenv_workdir}}/*.spec --nodeps --define "_sourcedir {{tenv_workdir}}" --define "_builddir {{tenv_workdir}}/source"
Karel Zak 42def0
    - flatten-source:
Karel Zak 42def0
        dir: ./
Karel Zak 42def0
        run: shopt -s dotglob; mv {{tenv_workdir}}/source/*/* {{tenv_workdir}}/source
Karel Zak 42def0
    - upstream:
Karel Zak 42def0
        dir: upstream
Karel Zak 42def0
        run: ./runtest.sh