Tabs/typo in zint.h; PostNet -> POSTNET; ui: shortcuts, tooltips; tests inkscape -> libreoffice

This commit is contained in:
gitlost 2020-10-03 22:51:08 +01:00
parent 36c19053d7
commit e37a82a8f1
90 changed files with 1048 additions and 840 deletions

View file

@ -63,11 +63,11 @@ static void types(void) {
"30: GS1 DataBar Ltd 79: GS1 DataBar Stack 135: Comp UPC-A\n"
"31: GS1 DataBar Exp 80: GS1 DataBar Stack Omni 136: Comp UPC-E\n"
"32: Telepen Alpha 81: GS1 DataBar Exp Stack 137: Comp DataBar Stack\n"
"34: UPC-A 82: Planet 138: Comp DataBar Stack Omni\n"
"34: UPC-A 82: PLANET 138: Comp DataBar Stack Omni\n"
"35: UPC-A + Check 84: MicroPDF 139: Comp DataBar Exp Stack\n"
"37: UPC-E 85: USPS Intelligent Mail 140: Channel Code\n"
"38: UPC-E + Check 86: UK Plessey 141: Code One\n"
"40: Postnet 87: Telepen Numeric 142: Grid Matrix\n"
"40: POSTNET 87: Telepen Numeric 142: Grid Matrix\n"
"47: MSI Plessey 89: ITF-14 143: UPNQR\n"
"49: FIM 90: KIX Code 144: Ultracode\n"
"50: Logmars 92: Aztec Code 145: rMQR\n"

View file

@ -4,6 +4,7 @@
# vim: set ts=4 sw=4 et :
cmake_minimum_required(VERSION 3.9)
project(zint_frontend_tests)
enable_testing()
@ -15,14 +16,31 @@ set(ZINT_SANITIZE FALSE CACHE BOOL "Set sanitize compile/link flags")
find_package(LibZint REQUIRED)
find_package(PNG REQUIRED)
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
if(ZINT_DEBUG)
include(CheckCCompilerFlag)
check_c_compiler_flag(-Wall C_COMPILER_FLAG_WALL)
if(C_COMPILER_FLAG_WALL)
add_compile_options("-Wall")
endif()
check_c_compiler_flag(-Wextra C_COMPILER_FLAG_WEXTRA)
if(C_COMPILER_FLAG_WEXTRA)
add_compile_options("-Wextra")
endif()
if(ZINT_DEBUG)
check_c_compiler_flag(-g C_COMPILER_FLAG_G)
if(C_COMPILER_FLAG_G)
add_compile_options("-g")
endif()
if(ZINT_SANITIZE)
endif()
if(ZINT_SANITIZE)
# check_c_compiler_flag fails for -fsanitize
if(${CMAKE_C_COMPILER_ID} STREQUAL "GNU")
add_compile_options("-fsanitize=undefined")
add_compile_options("-fsanitize=address")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fsanitize=undefined -fsanitize=address")
link_libraries("-fsanitize=undefined -fsanitize=address")
endif()
endif()

View file

@ -161,7 +161,6 @@ static void test_dump_args(int index, int debug) {
testStart("");
int ret;
struct item {
int b;
char *data;
@ -280,7 +279,6 @@ static void test_input(int index, int debug) {
testStart("");
int ret;
struct item {
int b;
int batch;
@ -351,7 +349,6 @@ static void test_batch_input(int index, int debug) {
testStart("");
int ret;
struct item {
int b;
char *data;
@ -410,7 +407,6 @@ static void test_batch_large(int index, int debug) {
testStart("");
int ret;
struct item {
int b;
int mirror;
@ -469,7 +465,6 @@ static void test_checks(int index, int debug) {
testStart("");
int ret;
struct item {
int addongap;
int border;