Blob Blame History Raw
# Test which run in classic and docker environemnt
- hosts: localhost
  tags:
  - classic
  - container
  - atomic
  vars:
    # standard-test-basic directory for tests are relative to {{ tenv_workdir }}
    tenv_workdir: /var/test
  pre_tasks:
  - import_role:
      name: standard-test-source
    vars:
      fetch_only: True

  - name: Copy files including source to test environment
    synchronize:
      src: "{{ playbook_dir }}/.."
      dest: "{{ tenv_workdir }}"
      mode: push
      ssh_args: "-o UserKnownHostsFile=/dev/null"
  roles:
  - role: standard-test-beakerlib
    tests:
    - various
    required_packages:
    - util-linux
    - util-linux-user
  - role: standard-test-basic
    required_packages:
    - util-linux
    - util-linux-user
    - coreutils
    - bzip2
    - xz
    - bc
    - device-mapper
    - iproute
    - mdadm
    - e2fsprogs
    - binutils
    - procps-ng
    - sed
    - gawk
    - file
    - git
    - rpm-build
    tests:
    - prepare-source:
        dir: ./
        run: rpmbuild -bp {{tenv_workdir}}/*.spec --nodeps --define "_sourcedir {{tenv_workdir}}" --define "_builddir {{tenv_workdir}}/source"
    - flatten-source:
        dir: ./
        run: shopt -s dotglob; mv {{tenv_workdir}}/source/*/* {{tenv_workdir}}/source
    - upstream:
        dir: upstream
        run: ./runtest.sh