Home | History | Annotate | Download | only in tests

Lines Matching defs:tag

27  * $ ./checkTag tag
29 * The tag is then compared to LZ4 version number.
32 * Example : tag v1.8.1.2 is compatible with version 1.8.1
33 * When tag and version are not compatible, program exits with error code 1.
44 * @return 1 if tag is compatible, 0 if not.
46 static int validate(const char* const tag)
48 size_t const tagLength = strlen(tag);
52 if (tag[0] != 'v') return 0;
55 if (strncmp(LZ4_VERSION_STRING, tag+1, verLength)) return 0;
63 const char* const tag = argv[1];
65 printf("incorrect usage : %s tag \n", exeName);
70 printf("Tag : %s \n", tag);
72 if (validate(tag)) {
73 printf("OK : tag is compatible with lz4 version \n");
77 printf("!! error : tag and versions are not compatible !! \n");