ssahani / rpms / libmnl

Forked from rpms/libmnl 6 years ago
Clone

2b7411d Adds tests according to the CI

Authored and Committed by Susant Sahani 6 years ago
    Adds tests according to the CI
    
    justification
    Adds tests according to the CI wiki specifically the standard test interface in the spec.
    The playbook includes Tier1 level test cases that have been tested in the following contexts and
    is passing reliably: Classic. Test logs are stored in the artifacts directory.
    The following steps are used to execute the tests using the standard test interface:
    
    Test enveronment
    Make sure you have installed packages from the spec
    ```
    ansible-2.4.1.0-2.fc28.noarch
    python2-dnf-2.7.5-1.fc28.noarch
    libselinux-python-2.7-2.fc28.x86_64
    standard-test-roles-2.5-1.fc28.noarch
    ```
    Run tests for Classic
    Snip of the example test run for Classic tests:
    
    ```
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    ::   TEST PROTOCOL
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
        Package       : libmnl
        Installed     : libmnl-1.0.4-6.fc28.x86_64
        beakerlib RPM : beakerlib-1.17-13.fc28.noarch
        Test version  : 1.0
        Test started  : 2018-06-20 16:20:22 IST
        Test finished :
        Test duration :
        Test name     : /CoreOS/libmnl
        Distro        : Fedora release 28 (Twenty Eight)
        Hostname      : Zeus
        Architecture  : x86_64
        CPUs          : 8 x Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz
        RAM size      : 31542 MB
        HDD size      : 452.94 GB
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    ::   Setup
    ::   Setup
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    libmnl-1.0.4-6.fc28.x86_64
    :: [ 16:20:24 ] :: [   PASS   ] :: Checking for the presence of libmnl rpm
    :: [ 16:20:24 ] :: [   PASS   ] :: Checking for the presence of libmnl rpm
    :: [ 16:20:24 ] :: [   LOG    ] :: Package versions:
    :: [ 16:20:24 ] :: [   LOG    ] :: Package versions:
    :: [ 16:20:24 ] :: [   LOG    ] ::   libmnl-1.0.4-6.fc28.x86_64
    :: [ 16:20:24 ] :: [   LOG    ] ::   libmnl-1.0.4-6.fc28.x86_64
    :: [ 16:20:24 ] :: [  BEGIN   ] :: Running 'cp test-rtnl /usr/bin/'
    :: [ 16:20:24 ] :: [   PASS   ] :: Command 'cp test-rtnl /usr/bin/' (Expected 0, got 0)
    :: [ 16:20:24 ] :: [   PASS   ] :: Command 'cp test-rtnl /usr/bin/' (Expected 0, got 0)
    :::::::::::::::
    
    : [ 16:20:24 ] :: [   PASS   ] :: Command 'cp test-rtnl /usr/bin/' (Expected 0, got 0)
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    ::   Duration: 0s
    ::   Duration: 0s
    ::   Assertions: 2 good, 0 bad
    ::   Assertions: 2 good, 0 bad
    ::   RESULT: PASS
    ::   RESULT: PASS
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    ::   Test
    ::   Test
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    :: [ 16:20:24 ] :: [   LOG    ] :: Starting libmnl tests ...
    :: [ 16:20:24 ] :: [   LOG    ] :: Starting libmnl tests ...
    :: [ 16:20:24 ] :: [  BEGIN   ] :: Running '/usr/bin/test-rtnl'
    [==========] Running 7 test(s).
    [ RUN      ] test_create_dummy
    [       OK ] test_create_dummy
    [ RUN      ] test_create_ipip
    [       OK ] test_create_ipip
    [ RUN      ] test_create_sit
    [       OK ] test_create_sit
    [ RUN      ] test_create_bonding
    [       OK ] test_create_bonding
    [ RUN      ] test_create_bridge
    [       OK ] test_create_bridge
    [ RUN      ] test_delete_link
    [       OK ] test_delete_link
    [ RUN      ] test_rtnl_set_link
    [       OK ] test_rtnl_set_link
    [==========] 7 test(s) run.
    [  PASSED  ] 7 test(s).
    :: [ 16:20:24 ] :: [   PASS   ] :: Command '/usr/bin/test-rtnl' (Expected 0, got 0)
    :: [ 16:20:24 ] :: [   PASS   ] :: Command '/usr/bin/test-rtnl' (Expected 0, got 0)
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    ::   Duration: 0s
    ::   Duration: 0s
    ::   Assertions: 1 good, 0 bad
    ::   Assertions: 1 good, 0 bad
    ::   RESULT: PASS
    ::   RESULT: PASS
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    ::   Cleanup
    ::   Cleanup
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    
    :: [ 16:20:24 ] :: [  BEGIN   ] :: Running 'rm /usr/bin/test-rtnl'
    :: [ 16:20:24 ] :: [   PASS   ] :: Command 'rm /usr/bin/test-rtnl' (Expected 0, got 0)
    :: [ 16:20:24 ] :: [   PASS   ] :: Command 'rm /usr/bin/test-rtnl' (Expected 0, got 0)
    :: [ 16:20:24 ] :: [   LOG    ] :: libmnl tests done
    :: [ 16:20:24 ] :: [   LOG    ] :: libmnl tests done
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    ::   Duration: 0s
    ::   Duration: 0s
    ::   Assertions: 1 good, 0 bad
    ::   Assertions: 1 good, 0 bad
    ::   RESULT: PASS
    ::   RESULT: PASS
    ```
    
        
file added
+46
file added
+422
file added
+13