[Epic-ID: ODUHIGH-516][Task-ID: ODUHIGH-527] Implementation of E2 Node Configuration...
[o-du/l2.git] / test / unit_test.sh
1 #!/bin/bash
2
3 set -euxo pipefail
4
5 echo "---> unit_test.sh"
6
7 echo "Present working directory: "; pwd
8
9 # Platform-specific install methods
10 if (grep Ubuntu /etc/os-release > /dev/null 2>&1); then
11     echo "Installing libsctp-dev dependency for Ubuntu"
12     sudo apt-get update
13     sudo apt-get install -y libsctp-dev
14 elif (grep RedHat /etc/os-release > /dev/null 2>&1) || \
15      (grep CentOS /etc/os-release > /dev/null 2>&1); then
16     echo "Installing lksctp-tools-devel dependency for CentOS/RedHat"
17     sudo yum install -y lksctp-tools-devel
18 else
19     echo "Unmatched OS/Distribution"
20     echo "Missing sctp library not installed"
21 fi
22
23 echo "Running job"
24 cd odu;make clean_odu MACHINE=BIT64 MODE=TDD;make odu MACHINE=BIT64 MODE=TDD COVERAGE=1