mirror of
https://git.code.sf.net/p/zint/code
synced 2026-05-14 18:13:53 +00:00
Tabs/typo in zint.h; PostNet -> POSTNET; ui: shortcuts, tooltips; tests inkscape -> libreoffice
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user