syslog-ng source
test_hostid.c File Reference
#include <criterion/criterion.h>
#include "syslog-ng.h"
#include "host-id.h"
#include "logmsg/logmsg.h"
#include "apphook.h"
#include "cfg.h"
#include "mainloop.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>
Include dependency graph for test_hostid.c:

Functions

 TestSuite (hostid,.init=app_startup,.fini=app_shutdown)
 
 Test (hostid, test_if_hostid_generated_when_persist_file_not_exists)
 
 Test (hostid, test_if_hostid_remain_unchanged_when_persist_file_exists)
 

Function Documentation

◆ Test() [1/2]

Test ( hostid  ,
test_if_hostid_generated_when_persist_file_not_exists   
)

◆ Test() [2/2]

Test ( hostid  ,
test_if_hostid_remain_unchanged_when_persist_file_exists   
)

◆ TestSuite()

TestSuite ( hostid  ,
init = app_startup,
fini = app_shutdown 
)