File: misc.c

package info (click to toggle)
dunst 1.12.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,256 kB
  • sloc: ansic: 17,084; sh: 882; xml: 511; makefile: 256; awk: 14
file content (21 lines) | stat: -rw-r--r-- 541 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "greatest.h"

// This actually tests the buildsystem to make sure,
// the build system hands over a correct version number
// This is not testable via macros
TEST assert_version_number(void)
{
        ASSERTm("Version number is empty",
                0 != strcmp(VERSION, ""));

        ASSERTm("Version number is not seeded by git",
                NULL == strstr(VERSION, "non-git"));
        PASS();
}

SUITE(suite_misc)
{
        RUN_TEST(assert_version_number);
}

/* vim: set tabstop=8 shiftwidth=8 expandtab textwidth=0: */