File: check_version.c

package info (click to toggle)
liblouisxml 2.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,480 kB
  • sloc: sh: 10,349; ansic: 9,994; makefile: 654; xml: 228; python: 43
file content (19 lines) | stat: -rw-r--r-- 467 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "config.h"
#include <stdio.h>
#include <string.h>
#include "liblouisxml.h"

/* Make sure lbx_version does report the actual version */
int
main (int argc, char **argv)
{
  int test_passed = 0;
  const char *version = lbx_version();

  if (strcmp(version, PACKAGE_VERSION) != 0) {
    printf("lbx_version() doesn't match PACKAGE_VERSION\n");
    printf("expected: %s; actual: %s\n", PACKAGE_VERSION, version);
    test_passed = 1;
  }
  return test_passed;
}