Skip to content

Latest commit

 

History

History

tests

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Unit Tests

Tests development environment

From repository root directory.

# Build docker image
docker build -t cubzh-core-unit-tests -f ./dockerfiles/ubuntu_build_env.Dockerfile .

# Run docker image (bash)
docker run --rm -ti -v $(pwd)/core:/core cubzh-core-unit-tests bash

# Run docker image (Windows PowerShell)
docker run --rm -ti -v $pwd/core:/core cubzh-core-unit-tests bash

Build/Run tests

# one liner
cd /core/tests/cmake && cmake -G Ninja . && cmake --build . --parallel 4 && ./unit_tests

# cmake .
# cmake --build .
# ./unit_tests
# cmake clean .