CMake >=3.10
Ubuntu 20.04 +:
Install the dependeciesdependencies:
# Install dependanciesdependenciessudo apt-get install python3-distutilssudo apt-get install diffstatsudo apt-get install chrpathsudo apt-get install makesudo apt-get install gccsudo apt-get install g++sudo apt-get install texinfosudo apt-get install libiptc0
Install libprotobuf-dev v3.7.0 or higher. For < Ubuntu 22.04, protobuf must be manually installed to fetch a later version:
| Code Block | ||||||
|---|---|---|---|---|---|---|
| ||||||
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.7.0/protobuf-all-3.7.0.tar.gz tar -zxvf protobuf-all-3.7.0.tar.gz cd protobuf-3.7.0/ ./configure make -j10 make check -j10 sudo make install -j10 # Check version protoc --version # If version still not correct add to end of ~/.bashrc vi ~/.bashrc alias protoc=/usr/local/bin/protoc #Exit out of vi source ~/.bashrc # Check version protoc --version |
Otherwise, can install protobuf normally:
sudo apt-get install protobuf-compiler| Code Block | ||||
|---|---|---|---|---|
| ||||
#Go to rialto repo, if you don't have it, clone it mkdir build && cd build #install: sudo apt-get install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev sudo apt install pkg-config cmake .. -DCMAKE_BUILD_FLAG=UnitTests make test_executable ./tests/[component_path]/[test_executable] |
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
# To run the server only tests, write the results to a file and clean after
./build_ut.py -s server -c -f
# To run only the 'RialtoServerCreateMediaPlayerTest' test group in server
./build_ut.py -s server -gt RialtoServerCreateMediaPlayerTest.*
#To run only the specific test under 'SessionServerAppManagerTests.' in a particular component name 'manager'(with a suite name of 'RialtoServerManagerUnitTests')
./build_ut.py -s manager -gf SessionServerAppManagerTests.*
# To run any tests in all suites that 'Create' something, but exclude 'Player
./build_ut.py -gf *Create*:-*Player* |