FOSSology  4.4.0
Open Source License Compliance by Open Source Software
fossconfigTest.c File Reference

Test for fossconfig. More...

#include <libfossology.h>
#include <stdio.h>
#include <errno.h>
#include <glib.h>
Include dependency graph for fossconfigTest.c:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 Main function for the test. More...
 

Detailed Description

Test for fossconfig.

The test loads all the config files passed, join them and print all the groups and lists using the functions provided by the fossconfig library.

Definition in file fossconfigTest.c.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Main function for the test.

Test:
  1. Load the files passed using fo_config_load()
  2. Join all the config files using fo_config_join()
  3. Print the group names using fo_config_group_set()
  4. Print all the list elements in the group using fo_config_get_list() or fo_config_get()

Definition at line 28 of file fossconfigTest.c.