Commit 3ce50a1b authored by Sebastian Ramacher's avatar Sebastian Ramacher

Add header listing all test suites

parent 375cf463
......@@ -8,6 +8,7 @@
#include "session.h"
#include "settings.h"
#include "config.h"
#include "tests.h"
START_TEST(test_config_parse) {
girara_session_t* session = girara_session_create();
......@@ -48,9 +49,7 @@ START_TEST(test_config_parse) {
girara_session_destroy(session);
} END_TEST
extern void setup(void);
Suite* suite_config()
Suite* suite_config(void)
{
TCase* tcase = NULL;
Suite* suite = suite_create("Config");
......
......@@ -5,6 +5,8 @@
#include <stdint.h>
#include <datastructures.h>
#include "tests.h"
static unsigned int list_free_called = 0;
static unsigned int node_free_called = 0;
......@@ -383,7 +385,7 @@ START_TEST(test_datastructures_list_prepend) {
girara_list_free(list);
} END_TEST
Suite* suite_datastructures()
Suite* suite_datastructures(void)
{
TCase* tcase = NULL;
Suite* suite = suite_create("Datastructures");
......
......@@ -3,6 +3,7 @@
#include <check.h>
#include "session.h"
#include "tests.h"
START_TEST(test_create) {
girara_session_t* session = girara_session_create();
......@@ -18,9 +19,7 @@ START_TEST(test_init) {
girara_session_destroy(session);
} END_TEST
extern void setup(void);
Suite* suite_session()
Suite* suite_session(void)
{
TCase* tcase = NULL;
Suite* suite = suite_create("Session");
......
......@@ -4,6 +4,7 @@
#include "session.h"
#include "settings.h"
#include "tests.h"
START_TEST(test_settings_basic) {
girara_session_t* session = girara_session_create();
......@@ -66,9 +67,7 @@ START_TEST(test_settings_callback) {
girara_session_destroy(session);
} END_TEST
extern void setup(void);
Suite* suite_settings()
Suite* suite_settings(void)
{
TCase* tcase = NULL;
Suite* suite = suite_create("Settings");
......
......@@ -4,6 +4,7 @@
#include "template.h"
#include "datastructures.h"
#include "tests.h"
START_TEST(test_new) {
GiraraTemplate* obj = girara_template_new(NULL);
......@@ -121,10 +122,7 @@ START_TEST(test_full_2) {
g_object_unref(obj);
} END_TEST
extern void setup(void);
Suite* suite_template()
Suite* suite_template(void)
{
TCase* tcase = NULL;
Suite* suite = suite_create("Template");
......
......@@ -13,6 +13,7 @@
#include "utils.h"
#include "datastructures.h"
#include "tests.h"
static girara_list_t*
read_pwd_info(void)
......@@ -262,7 +263,7 @@ START_TEST(test_strings_replace_substrings_4) {
g_free(result);
} END_TEST
Suite* suite_utils()
Suite* suite_utils(void)
{
TCase* tcase = NULL;
Suite* suite = suite_create("Utils");
......
......@@ -4,12 +4,7 @@
#include <gtk/gtk.h>
#include <stdlib.h>
Suite* suite_utils();
Suite* suite_datastructures();
Suite* suite_settings();
Suite* suite_session();
Suite* suite_config();
Suite* suite_template();
#include "tests.h"
void setup(void)
{
......
/* See LICENSE file for license and copyright information */
#ifndef GIRARA_TESTS_H
#define GIRARA_TESTS_H
Suite* suite_utils(void);
Suite* suite_datastructures(void);
Suite* suite_settings(void);
Suite* suite_session(void);
Suite* suite_config(void);
Suite* suite_template(void);
void setup(void);
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment