Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
girara
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwmt
girara
Commits
3ce50a1b
Commit
3ce50a1b
authored
Feb 10, 2018
by
Sebastian Ramacher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add header listing all test suites
parent
375cf463
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
29 additions
and
21 deletions
+29
-21
tests/test_config.c
tests/test_config.c
+2
-3
tests/test_datastructures.c
tests/test_datastructures.c
+3
-1
tests/test_session.c
tests/test_session.c
+2
-3
tests/test_setting.c
tests/test_setting.c
+2
-3
tests/test_template.c
tests/test_template.c
+2
-4
tests/test_utils.c
tests/test_utils.c
+2
-1
tests/tests.c
tests/tests.c
+1
-6
tests/tests.h
tests/tests.h
+15
-0
No files found.
tests/test_config.c
View file @
3ce50a1b
...
...
@@ -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"
);
...
...
tests/test_datastructures.c
View file @
3ce50a1b
...
...
@@ -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"
);
...
...
tests/test_session.c
View file @
3ce50a1b
...
...
@@ -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"
);
...
...
tests/test_setting.c
View file @
3ce50a1b
...
...
@@ -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"
);
...
...
tests/test_template.c
View file @
3ce50a1b
...
...
@@ -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"
);
...
...
tests/test_utils.c
View file @
3ce50a1b
...
...
@@ -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"
);
...
...
tests/tests.c
View file @
3ce50a1b
...
...
@@ -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
)
{
...
...
tests/tests.h
0 → 100644
View file @
3ce50a1b
/* 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment