---
# System prepended metadata

title: Setup OADP unit and e2e tests
tags: [CI_Contributors]

---

# Setup OADP unit and e2e tests
###### tags: `CI_Contributors`

* Package requirements
    * Linux distro requirements
        * gcc
    ```
    sudo dnf -y install gcc
    ```
* Golang
    
    * https://golang.org/dl/
    * Example: your version of golang may vary

    ```
    wget https://golang.org/dl/go1.16.8.linux-amd64.tar.gz
    sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.16.8.linux-amd64.tar.gz
    sudo ln -s /usr/local/go/bin/go /usr/local/bin/
    go version
    
    ```
    
    * Install the golang dependencies
    ```
    go mod tidy
    go mod vendor
    ```
    
    * Execute the unit tests
       * In the oadp-operator base directory
    ```
    make test
    ```