Ad Widget

Collapse

How to compile unit tests from source code?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • somezabbixuser
    Junior Member
    • Mar 2024
    • 1

    #1

    How to compile unit tests from source code?

    Hi!

    There is this directory in the github repository: https://github.com/zabbix/zabbix/tree/master/tests which contains unit tests. However, there doesn't appear to be any documentation on how to run or even compile these test programs. How do I actually run these tests?

    Thanks in advance!
  • DanielRuf
    Junior Member
    • Oct 2024
    • 2

    #2
    I've asked in the Zabbix Discor and recieved following information:

    sudo apt-get update
    sudo apt-get install libevent-dev libcmocka-dev
    ./bootstrap.sh tests
    ./configure --with-server --with-agent --with-mysql
    sudo cpan install YAML::XS
    sudo cpan install Path::Tiny
    sudo cpan install IPC::Run3
    make tests

    This seems to work.
    Last edited by DanielRuf; 01-10-2024, 14:34.

    Comment

    • DanielRuf
      Junior Member
      • Oct 2024
      • 2

      #3
      With the latest changes in my previous post it should work.

      Comment

      Working...