github.com/rkt/rkt@v1.30.1-0.20200224141603-171c416fac02/tests/test-on-several-distro.md (about)

     1  # Tests on several Linux distributions
     2  
     3  rkt aims to be supported on several Linux distributions.
     4  In order to notice distro-specific issues, Continuous Integration should ideally run the tests on several Linux distributions.
     5  
     6  rkt tests can be intrusive and require full root privileges.
     7  Each test should be run on a fresh VM.
     8  VMs should not be reused for next tests.
     9  
    10  ## Jenkins
    11  
    12  Tests run on Jenkins [Jenkins](https://jenkins-ci.org/) [for each PR](https://jenkins-rkt-public.prod.coreos.systems/job/rkt-github-ci/) and [periodically on the master branch](https://jenkins-rkt-public.prod.coreos.systems/job/rkt-master-periodic/).
    13  
    14  ### AMIs
    15  
    16  The script `tests/aws.sh` can generate a AMI of the specified Linux distribution with all the dependencies rkt needs.
    17  
    18  First, install [aws-cli](https://github.com/aws/aws-cli) and configure it with your AWS credentials.
    19  Then, create a key pair and a security group for rkt tests:
    20  
    21  ```
    22  $ tests/aws.sh setup
    23  ```
    24  
    25  Then generate an AMI of the specified Linux distribution:
    26  
    27  ```
    28  $ tests/aws.sh fedora-22
    29  $ tests/aws.sh fedora-23
    30  $ tests/aws.sh fedora-24
    31  $ tests/aws.sh fedora-rawhide
    32  $ tests/aws.sh ubuntu-1604
    33  $ tests/aws.sh ubuntu-1510
    34  $ tests/aws.sh debian
    35  $ tests/aws.sh centos
    36  ```
    37  
    38  The generated AMIs can then be used to configure Jenkins.
    39  
    40  If new packages are needed they can be added to the corresponding cloudinit files in `test/cloudinit`.