Ver código fonte

tests; cmake

master
Robin Thoni 9 anos atrás
pai
commit
1b7c6b309f

+ 1
- 0
CMakeLists.txt Ver arquivo

@@ -1,6 +1,7 @@
1 1
 cmake_minimum_required(VERSION 2.8)
2 2
 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules/")
3 3
 project(pcsc_cpptools)
4
+find_package(PCSCLite REQUIRED)
4 5
 enable_testing()
5 6
 add_subdirectory(src)
6 7
 add_subdirectory(tests)

+ 0
- 55
CMakeModules/FindCheck.cmake Ver arquivo

@@ -1,55 +0,0 @@
1
-# - Try to find the CHECK libraries
2
-#  Once done this will define
3
-#
4
-#  CHECK_FOUND - system has check
5
-#  CHECK_INCLUDE_DIRS - the check include directory
6
-#  CHECK_LIBRARIES - check library
7
-#
8
-#  Copyright (c) 2007 Daniel Gollub <gollub@b1-systems.de>
9
-#  Copyright (c) 2007-2009 Bjoern Ricks  <bjoern.ricks@gmail.com>
10
-#
11
-#  Redistribution and use is allowed according to the terms of the New
12
-#  BSD license.
13
-#  For details see the accompanying COPYING-CMAKE-SCRIPTS file.
14
-
15
-
16
-INCLUDE( FindPkgConfig )
17
-
18
-IF ( Check_FIND_REQUIRED )
19
-	SET( _pkgconfig_REQUIRED "REQUIRED" )
20
-ELSE( Check_FIND_REQUIRED )
21
-	SET( _pkgconfig_REQUIRED "" )
22
-ENDIF ( Check_FIND_REQUIRED )
23
-
24
-IF ( CHECK_MIN_VERSION )
25
-	PKG_SEARCH_MODULE( CHECK ${_pkgconfig_REQUIRED} check>=${CHECK_MIN_VERSION} )
26
-ELSE ( CHECK_MIN_VERSION )
27
-	PKG_SEARCH_MODULE( CHECK ${_pkgconfig_REQUIRED} check )
28
-ENDIF ( CHECK_MIN_VERSION )
29
-
30
-# Look for CHECK include dir and libraries
31
-IF( NOT CHECK_FOUND AND NOT PKG_CONFIG_FOUND )
32
-
33
-	FIND_PATH( CHECK_INCLUDE_DIRS check.h )
34
-
35
-	FIND_LIBRARY( CHECK_LIBRARIES NAMES check )
36
-
37
-	IF ( CHECK_INCLUDE_DIRS AND CHECK_LIBRARIES )
38
-		SET( CHECK_FOUND 1 )
39
-		IF ( NOT Check_FIND_QUIETLY )
40
-			MESSAGE ( STATUS "Found CHECK: ${CHECK_LIBRARIES}" )
41
-		ENDIF ( NOT Check_FIND_QUIETLY )
42
-	ELSE ( CHECK_INCLUDE_DIRS AND CHECK_LIBRARIES )
43
-		IF ( Check_FIND_REQUIRED )
44
-			MESSAGE( FATAL_ERROR "Could NOT find CHECK" )
45
-		ELSE ( Check_FIND_REQUIRED )
46
-			IF ( NOT Check_FIND_QUIETLY )
47
-				MESSAGE( STATUS "Could NOT find CHECK" )
48
-			ENDIF ( NOT Check_FIND_QUIETLY )
49
-		ENDIF ( Check_FIND_REQUIRED )
50
-	ENDIF ( CHECK_INCLUDE_DIRS AND CHECK_LIBRARIES )
51
-ENDIF( NOT CHECK_FOUND AND NOT PKG_CONFIG_FOUND )
52
-
53
-# Hide advanced variables from CMake GUIs
54
-MARK_AS_ADVANCED( CHECK_INCLUDE_DIRS CHECK_LIBRARIES )
55
-

+ 44
- 0
CMakeModules/FindPCSCLite.cmake Ver arquivo

@@ -0,0 +1,44 @@
1
+# - Find PCSC-Lite
2
+# Find the native PCSC-Lite includes and library
3
+#
4
+#  PCSCLITE_INCLUDE_DIR - where to find winscard.h, wintypes.h, etc.
5
+#  PCSCLITE_LIBRARIES   - List of libraries when using PCSC-Lite.
6
+#  PCSCLITE_FOUND       - True if PCSC-Lite found.
7
+
8
+
9
+IF (PCSCLITE_INCLUDE_DIR AND PCSCLITE_LIBRARIES)
10
+  # Already in cache, be silent
11
+  SET(PCSCLITE_FIND_QUIETLY TRUE)
12
+ENDIF (PCSCLITE_INCLUDE_DIR AND PCSCLITE_LIBRARIES)
13
+
14
+IF (NOT WIN32)
15
+  FIND_PACKAGE(PkgConfig)
16
+  PKG_CHECK_MODULES(PC_PCSCLITE libpcsclite)
17
+ENDIF (NOT WIN32)
18
+
19
+FIND_PATH(PCSCLITE_INCLUDE_DIR winscard.h
20
+  HINTS
21
+  /usr/include/PCSC
22
+  ${PC_PCSCLITE_INCLUDEDIR}
23
+  ${PC_PCSCLITE_INCLUDE_DIRS}
24
+  ${PC_PCSCLITE_INCLUDE_DIRS}/PCSC
25
+  )
26
+
27
+FIND_LIBRARY(PCSCLITE_LIBRARY NAMES pcsclite libpcsclite PCSC
28
+  HINTS
29
+  ${PC_PCSCLITE_LIBDIR}
30
+  ${PC_PCSCLITE_LIBRARY_DIRS}
31
+  )
32
+
33
+# handle the QUIETLY and REQUIRED arguments and set PCSCLITE_FOUND to TRUE if 
34
+# all listed variables are TRUE
35
+INCLUDE(FindPackageHandleStandardArgs)
36
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(PCSC-Lite DEFAULT_MSG PCSCLITE_LIBRARY PCSCLITE_INCLUDE_DIR)
37
+
38
+IF(PCSCLITE_FOUND)
39
+  SET( PCSCLITE_LIBRARIES ${PCSCLITE_LIBRARY} )
40
+ELSE(PCSCLITE_FOUND)
41
+  SET( PCSCLITE_LIBRARIES )
42
+ENDIF(PCSCLITE_FOUND)
43
+
44
+MARK_AS_ADVANCED( PCSCLITE_LIBRARY PCSCLITE_INCLUDE_DIR )

+ 2
- 1
src/CMakeLists.txt Ver arquivo

@@ -1,5 +1,5 @@
1 1
 include_directories(.)
2
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -pthread -I/usr/include/PCSC -I${CMAKE_SOURCE_DIR}/src/include")
2
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -pthread -I${PCSCLITE_INCLUDE_DIR} -I${CMAKE_SOURCE_DIR}/src/include")
3 3
 set(SOURCE_FILES
4 4
   DBO/ScCommand.cpp
5 5
   include/ScCommand.h
@@ -17,3 +17,4 @@ set(SOURCE_FILES
17 17
   include/ScReader.h
18 18
   include/ScReader.hxx)
19 19
 add_library(pcsc_cpptools SHARED ${SOURCE_FILES})
20
+target_link_libraries(pcsc_cpptools pcsclite)

+ 24
- 2
src/DataAccess/ScReader.cpp Ver arquivo

@@ -3,11 +3,14 @@
3 3
 //
4 4
 
5 5
 #include <winscard.h>
6
+#include <vector>
6 7
 #include "ScReader.h"
7 8
 
9
+LPSCARDCONTEXT ScReader::_context = nullptr;
10
+
8 11
 ScReader::~ScReader()
9 12
 {
10
-    freeContext();
13
+    disconnect();
11 14
 }
12 15
 
13 16
 bool ScReader::establishContext()
@@ -35,7 +38,7 @@ bool ScReader::connect(DWORD shareMode, DWORD protocols, DWORD disposition)
35 38
         return false;
36 39
     _card = new SCARDCONTEXT[1];
37 40
     _proto = new DWORD[1];
38
-    auto res = SCardConnect(*_context, _name, shareMode, protocols, _card, _proto);
41
+    auto res = SCardConnect(*_context, _name.c_str(), shareMode, protocols, _card, _proto);
39 42
     return res == SCARD_S_SUCCESS;
40 43
 }
41 44
 
@@ -60,3 +63,22 @@ std::shared_ptr<ScResult> ScReader::transmit(const ScCommand& command, DWORD siz
60 63
         return std::make_shared<ScResult>(ScByteArray(resBuffer, size));
61 64
     return std::make_shared<ScResult>(ScByteArray());
62 65
 }
66
+
67
+std::vector<std::shared_ptr<ScReader>> ScReader::getReaders()
68
+{
69
+    std::vector<std::shared_ptr<ScReader>> readers;
70
+    DWORD readerCount = SCARD_AUTOALLOCATE;
71
+    LPTSTR readersNames = nullptr;
72
+    auto res = SCardListReaders(*_context, nullptr, (LPTSTR)&readersNames, &readerCount);
73
+    if (res == SCARD_S_SUCCESS)
74
+    {
75
+        LPTSTR reader = readersNames;
76
+        while (*reader)
77
+        {
78
+            readers.push_back(std::make_shared<ScReader>(reader));
79
+            reader += strlen(reader) + 1;
80
+        }
81
+    }
82
+    SCardFreeMemory(*_context, readersNames);
83
+    return readers;
84
+}

+ 10
- 5
src/include/ScReader.h Ver arquivo

@@ -8,19 +8,22 @@
8 8
 # include <wintypes.h>
9 9
 # include <pcsclite.h>
10 10
 # include <memory>
11
+#include <bits/stl_bvector.h>
11 12
 # include "ScCommand.h"
12 13
 # include "ScResult.h"
13 14
 
14 15
 class ScReader
15 16
 {
16 17
 public:
17
-    inline ScReader(LPCSTR name);
18
+    inline ScReader(std::string name);
18 19
 
19 20
     virtual ~ScReader();
20 21
 
21
-    bool establishContext();
22
+    static std::vector<std::shared_ptr<ScReader>> getReaders();
22 23
 
23
-    bool freeContext();
24
+    static bool establishContext();
25
+
26
+    static bool freeContext();
24 27
 
25 28
     bool connect(DWORD shareMode = SCARD_SHARE_SHARED, DWORD protocols =
26 29
         SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1, DWORD disposition = SCARD_LEAVE_CARD);
@@ -29,10 +32,12 @@ public:
29 32
 
30 33
     std::shared_ptr<ScResult> transmit(const ScCommand& command, DWORD size = 2048);
31 34
 
35
+    inline const std::string getName() const;
36
+
32 37
 private:
33
-    LPCSTR _name;
38
+    std::string _name;
34 39
 
35
-    LPSCARDCONTEXT _context;
40
+    static thread_local LPSCARDCONTEXT _context;
36 41
 
37 42
     LPSCARDHANDLE _card;
38 43
 

+ 6
- 2
src/include/ScReader.hxx Ver arquivo

@@ -2,12 +2,16 @@
2 2
 // Created by robin on 6/28/15.
3 3
 //
4 4
 
5
-ScReader::ScReader(LPCSTR name)
5
+ScReader::ScReader(std::string name)
6 6
     : _name(name)
7
-    , _context(nullptr)
8 7
     , _card(nullptr)
9 8
     , _proto(nullptr)
10 9
     , _sendPci(nullptr)
11 10
     , _lastResult(SCARD_S_SUCCESS)
12 11
 {
13 12
 }
13
+
14
+const std::string ScReader::getName() const
15
+{
16
+    return _name;
17
+}

BIN
tests/.test_pcsc_cpp_tools.cpp.swp Ver arquivo


+ 1
- 1
tests/CMakeLists.txt Ver arquivo

@@ -1,6 +1,6 @@
1 1
 enable_testing()
2 2
 include_directories(${CHECK_INCLUDE_DIRS})
3
-set(LIBS ${LIBS} ${CHECK_LIBRARIES} pcsc_cpptools)
3
+set(LIBS ${LIBS} pcsc_cpptools)
4 4
 include_directories(. ../src)
5 5
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -pthread -I/usr/include/PCSC -I${CMAKE_SOURCE_DIR}/src/include")
6 6
 add_executable(test_pcsc_cpp_tools test_pcsc_cpp_tools.cpp)

+ 0
- 206
tests/CTestTestfile.cmake Ver arquivo

@@ -1,206 +0,0 @@
1
-# CMake generated Testfile for 
2
-# Source directory: /home/apoelstra/dload/code/cj-client/jansson
3
-# Build directory: /home/apoelstra/dload/code/cj-client/jansson
4
-# 
5
-# This file includes the relevant testing commands required for 
6
-# testing this directory and lists subdirectories to be tested as well.
7
-ADD_TEST(test_array "/home/apoelstra/dload/code/cj-client/jansson/bin/test_array")
8
-ADD_TEST(test_copy "/home/apoelstra/dload/code/cj-client/jansson/bin/test_copy")
9
-ADD_TEST(test_dump "/home/apoelstra/dload/code/cj-client/jansson/bin/test_dump")
10
-ADD_TEST(test_dump_callback "/home/apoelstra/dload/code/cj-client/jansson/bin/test_dump_callback")
11
-ADD_TEST(test_equal "/home/apoelstra/dload/code/cj-client/jansson/bin/test_equal")
12
-ADD_TEST(test_load "/home/apoelstra/dload/code/cj-client/jansson/bin/test_load")
13
-ADD_TEST(test_loadb "/home/apoelstra/dload/code/cj-client/jansson/bin/test_loadb")
14
-ADD_TEST(test_number "/home/apoelstra/dload/code/cj-client/jansson/bin/test_number")
15
-ADD_TEST(test_object "/home/apoelstra/dload/code/cj-client/jansson/bin/test_object")
16
-ADD_TEST(test_pack "/home/apoelstra/dload/code/cj-client/jansson/bin/test_pack")
17
-ADD_TEST(test_simple "/home/apoelstra/dload/code/cj-client/jansson/bin/test_simple")
18
-ADD_TEST(test_unpack "/home/apoelstra/dload/code/cj-client/jansson/bin/test_unpack")
19
-ADD_TEST(test_memory_funcs "/home/apoelstra/dload/code/cj-client/jansson/bin/test_memory_funcs")
20
-ADD_TEST(encoding-flags__object "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/encoding-flags/object")
21
-ADD_TEST(encoding-flags__ensure-ascii "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/encoding-flags/ensure-ascii")
22
-ADD_TEST(encoding-flags__indent-compact-object "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/encoding-flags/indent-compact-object")
23
-ADD_TEST(encoding-flags__compact-array "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/encoding-flags/compact-array")
24
-ADD_TEST(encoding-flags__indent-compact-array "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/encoding-flags/indent-compact-array")
25
-ADD_TEST(encoding-flags__preserve-order "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/encoding-flags/preserve-order")
26
-ADD_TEST(encoding-flags__indent-array "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/encoding-flags/indent-array")
27
-ADD_TEST(encoding-flags__array "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/encoding-flags/array")
28
-ADD_TEST(encoding-flags__sort-keys "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/encoding-flags/sort-keys")
29
-ADD_TEST(encoding-flags__compact-object "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/encoding-flags/compact-object")
30
-ADD_TEST(encoding-flags__indent-object "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/encoding-flags/indent-object")
31
-ADD_TEST(valid__three-byte-utf-8 "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/three-byte-utf-8")
32
-ADD_TEST(valid__three-byte-utf-8__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/three-byte-utf-8")
33
-ADD_TEST(valid__two-byte-utf-8 "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/two-byte-utf-8")
34
-ADD_TEST(valid__two-byte-utf-8__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/two-byte-utf-8")
35
-ADD_TEST(valid__simple-int-0 "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/simple-int-0")
36
-ADD_TEST(valid__simple-int-0__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/simple-int-0")
37
-ADD_TEST(valid__negative-one "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/negative-one")
38
-ADD_TEST(valid__negative-one__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/negative-one")
39
-ADD_TEST(valid__empty-string "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/empty-string")
40
-ADD_TEST(valid__empty-string__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/empty-string")
41
-ADD_TEST(valid__real-capital-e "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/real-capital-e")
42
-ADD_TEST(valid__real-capital-e__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/real-capital-e")
43
-ADD_TEST(valid__empty-object "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/empty-object")
44
-ADD_TEST(valid__empty-object__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/empty-object")
45
-ADD_TEST(valid__real-capital-e-negative-exponent "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/real-capital-e-negative-exponent")
46
-ADD_TEST(valid__real-capital-e-negative-exponent__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/real-capital-e-negative-exponent")
47
-ADD_TEST(valid__utf-surrogate-four-byte-encoding "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/utf-surrogate-four-byte-encoding")
48
-ADD_TEST(valid__utf-surrogate-four-byte-encoding__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/utf-surrogate-four-byte-encoding")
49
-ADD_TEST(valid__empty-array "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/empty-array")
50
-ADD_TEST(valid__empty-array__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/empty-array")
51
-ADD_TEST(valid__string-escapes "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/string-escapes")
52
-ADD_TEST(valid__string-escapes__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/string-escapes")
53
-ADD_TEST(valid__real-exponent "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/real-exponent")
54
-ADD_TEST(valid__real-exponent__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/real-exponent")
55
-ADD_TEST(valid__real-negative-exponent "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/real-negative-exponent")
56
-ADD_TEST(valid__real-negative-exponent__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/real-negative-exponent")
57
-ADD_TEST(valid__one-byte-utf-8 "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/one-byte-utf-8")
58
-ADD_TEST(valid__one-byte-utf-8__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/one-byte-utf-8")
59
-ADD_TEST(valid__null "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/null")
60
-ADD_TEST(valid__null__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/null")
61
-ADD_TEST(valid__real-underflow "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/real-underflow")
62
-ADD_TEST(valid__real-underflow__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/real-underflow")
63
-ADD_TEST(valid__escaped-utf-control-char "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/escaped-utf-control-char")
64
-ADD_TEST(valid__escaped-utf-control-char__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/escaped-utf-control-char")
65
-ADD_TEST(valid__simple-object "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/simple-object")
66
-ADD_TEST(valid__simple-object__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/simple-object")
67
-ADD_TEST(valid__false "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/false")
68
-ADD_TEST(valid__false__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/false")
69
-ADD_TEST(valid__real-positive-exponent "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/real-positive-exponent")
70
-ADD_TEST(valid__real-positive-exponent__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/real-positive-exponent")
71
-ADD_TEST(valid__short-string "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/short-string")
72
-ADD_TEST(valid__short-string__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/short-string")
73
-ADD_TEST(valid__real-capital-e-positive-exponent "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/real-capital-e-positive-exponent")
74
-ADD_TEST(valid__real-capital-e-positive-exponent__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/real-capital-e-positive-exponent")
75
-ADD_TEST(valid__simple-ascii-string "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/simple-ascii-string")
76
-ADD_TEST(valid__simple-ascii-string__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/simple-ascii-string")
77
-ADD_TEST(valid__true "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/true")
78
-ADD_TEST(valid__true__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/true")
79
-ADD_TEST(valid__negative-zero "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/negative-zero")
80
-ADD_TEST(valid__negative-zero__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/negative-zero")
81
-ADD_TEST(valid__simple-int-1 "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/simple-int-1")
82
-ADD_TEST(valid__simple-int-1__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/simple-int-1")
83
-ADD_TEST(valid__complex-array "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/complex-array")
84
-ADD_TEST(valid__complex-array__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/complex-array")
85
-ADD_TEST(valid__empty-object-in-array "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/empty-object-in-array")
86
-ADD_TEST(valid__empty-object-in-array__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/empty-object-in-array")
87
-ADD_TEST(valid__negative-int "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/negative-int")
88
-ADD_TEST(valid__negative-int__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/negative-int")
89
-ADD_TEST(valid__utf-8-string "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/utf-8-string")
90
-ADD_TEST(valid__utf-8-string__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/utf-8-string")
91
-ADD_TEST(valid__real-fraction-exponent "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/real-fraction-exponent")
92
-ADD_TEST(valid__real-fraction-exponent__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/real-fraction-exponent")
93
-ADD_TEST(valid__simple-int-123 "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/simple-int-123")
94
-ADD_TEST(valid__simple-int-123__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/simple-int-123")
95
-ADD_TEST(valid__simple-real "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/simple-real")
96
-ADD_TEST(valid__simple-real__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/valid/simple-real")
97
-ADD_TEST(invalid__real-garbage-after-e "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/real-garbage-after-e")
98
-ADD_TEST(invalid__real-garbage-after-e__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/real-garbage-after-e")
99
-ADD_TEST(invalid__invalid-negative-integer "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/invalid-negative-integer")
100
-ADD_TEST(invalid__invalid-negative-integer__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/invalid-negative-integer")
101
-ADD_TEST(invalid__extra-comma-in-array "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/extra-comma-in-array")
102
-ADD_TEST(invalid__extra-comma-in-array__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/extra-comma-in-array")
103
-ADD_TEST(invalid__unterminated-object-and-array "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/unterminated-object-and-array")
104
-ADD_TEST(invalid__unterminated-object-and-array__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/unterminated-object-and-array")
105
-ADD_TEST(invalid__garbage-after-newline "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/garbage-after-newline")
106
-ADD_TEST(invalid__garbage-after-newline__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/garbage-after-newline")
107
-ADD_TEST(invalid__invalid-identifier "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/invalid-identifier")
108
-ADD_TEST(invalid__invalid-identifier__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/invalid-identifier")
109
-ADD_TEST(invalid__brace-comma "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/brace-comma")
110
-ADD_TEST(invalid__brace-comma__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/brace-comma")
111
-ADD_TEST(invalid__too-big-positive-integer "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/too-big-positive-integer")
112
-ADD_TEST(invalid__too-big-positive-integer__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/too-big-positive-integer")
113
-ADD_TEST(invalid__negative-integer-starting-with-zero "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/negative-integer-starting-with-zero")
114
-ADD_TEST(invalid__negative-integer-starting-with-zero__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/negative-integer-starting-with-zero")
115
-ADD_TEST(invalid__truncated-unicode-surrogate "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/truncated-unicode-surrogate")
116
-ADD_TEST(invalid__truncated-unicode-surrogate__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/truncated-unicode-surrogate")
117
-ADD_TEST(invalid__unicode-identifier "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/unicode-identifier")
118
-ADD_TEST(invalid__unicode-identifier__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/unicode-identifier")
119
-ADD_TEST(invalid__null-byte-in-object-key "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/null-byte-in-object-key")
120
-ADD_TEST(invalid__null-byte-in-object-key__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/null-byte-in-object-key")
121
-ADD_TEST(invalid__unterminated-key "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/unterminated-key")
122
-ADD_TEST(invalid__unterminated-key__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/unterminated-key")
123
-ADD_TEST(invalid__object-no-value "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/object-no-value")
124
-ADD_TEST(invalid__object-no-value__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/object-no-value")
125
-ADD_TEST(invalid__real-truncated-at-point "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/real-truncated-at-point")
126
-ADD_TEST(invalid__real-truncated-at-point__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/real-truncated-at-point")
127
-ADD_TEST(invalid__object-in-unterminated-array "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/object-in-unterminated-array")
128
-ADD_TEST(invalid__object-in-unterminated-array__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/object-in-unterminated-array")
129
-ADD_TEST(invalid__lone-open-brace "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/lone-open-brace")
130
-ADD_TEST(invalid__lone-open-brace__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/lone-open-brace")
131
-ADD_TEST(invalid__extra-comma-in-multiline-array "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/extra-comma-in-multiline-array")
132
-ADD_TEST(invalid__extra-comma-in-multiline-array__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/extra-comma-in-multiline-array")
133
-ADD_TEST(invalid__object-garbage-at-end "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/object-garbage-at-end")
134
-ADD_TEST(invalid__object-garbage-at-end__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/object-garbage-at-end")
135
-ADD_TEST(invalid__null "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/null")
136
-ADD_TEST(invalid__null__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/null")
137
-ADD_TEST(invalid__too-big-negative-integer "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/too-big-negative-integer")
138
-ADD_TEST(invalid__too-big-negative-integer__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/too-big-negative-integer")
139
-ADD_TEST(invalid__unterminated-empty-key "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/unterminated-empty-key")
140
-ADD_TEST(invalid__unterminated-empty-key__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/unterminated-empty-key")
141
-ADD_TEST(invalid__bracket-comma "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/bracket-comma")
142
-ADD_TEST(invalid__bracket-comma__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/bracket-comma")
143
-ADD_TEST(invalid__object-unterminated-value "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/object-unterminated-value")
144
-ADD_TEST(invalid__object-unterminated-value__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/object-unterminated-value")
145
-ADD_TEST(invalid__lone-second-surrogate "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/lone-second-surrogate")
146
-ADD_TEST(invalid__lone-second-surrogate__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/lone-second-surrogate")
147
-ADD_TEST(invalid__ascii-unicode-identifier "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/ascii-unicode-identifier")
148
-ADD_TEST(invalid__ascii-unicode-identifier__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/ascii-unicode-identifier")
149
-ADD_TEST(invalid__integer-starting-with-zero "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/integer-starting-with-zero")
150
-ADD_TEST(invalid__integer-starting-with-zero__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/integer-starting-with-zero")
151
-ADD_TEST(invalid__null-byte-in-string "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/null-byte-in-string")
152
-ADD_TEST(invalid__garbage-at-the-end "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/garbage-at-the-end")
153
-ADD_TEST(invalid__garbage-at-the-end__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/garbage-at-the-end")
154
-ADD_TEST(invalid__apostrophe "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/apostrophe")
155
-ADD_TEST(invalid__apostrophe__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/apostrophe")
156
-ADD_TEST(invalid__unterminated-array "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/unterminated-array")
157
-ADD_TEST(invalid__unterminated-array__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/unterminated-array")
158
-ADD_TEST(invalid__invalid-escape "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/invalid-escape")
159
-ADD_TEST(invalid__invalid-escape__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/invalid-escape")
160
-ADD_TEST(invalid__empty "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/empty")
161
-ADD_TEST(invalid__empty__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/empty")
162
-ADD_TEST(invalid__unterminated-string "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/unterminated-string")
163
-ADD_TEST(invalid__unterminated-string__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/unterminated-string")
164
-ADD_TEST(invalid__unterminated-array-and-object "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/unterminated-array-and-object")
165
-ADD_TEST(invalid__unterminated-array-and-object__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/unterminated-array-and-object")
166
-ADD_TEST(invalid__invalid-second-surrogate "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/invalid-second-surrogate")
167
-ADD_TEST(invalid__invalid-second-surrogate__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/invalid-second-surrogate")
168
-ADD_TEST(invalid__tab-character-in-string "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/tab-character-in-string")
169
-ADD_TEST(invalid__tab-character-in-string__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/tab-character-in-string")
170
-ADD_TEST(invalid__object-apostrophes "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/object-apostrophes")
171
-ADD_TEST(invalid__object-apostrophes__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/object-apostrophes")
172
-ADD_TEST(invalid__bracket-one-comma "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/bracket-one-comma")
173
-ADD_TEST(invalid__bracket-one-comma__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/bracket-one-comma")
174
-ADD_TEST(invalid__real-truncated-at-e "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/real-truncated-at-e")
175
-ADD_TEST(invalid__real-truncated-at-e__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/real-truncated-at-e")
176
-ADD_TEST(invalid__null-byte-outside-string "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/null-byte-outside-string")
177
-ADD_TEST(invalid__invalid-negative-real "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/invalid-negative-real")
178
-ADD_TEST(invalid__invalid-negative-real__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/invalid-negative-real")
179
-ADD_TEST(invalid__minus-sign-without-number "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/minus-sign-without-number")
180
-ADD_TEST(invalid__minus-sign-without-number__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/minus-sign-without-number")
181
-ADD_TEST(invalid__real-positive-overflow "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/real-positive-overflow")
182
-ADD_TEST(invalid__real-positive-overflow__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/real-positive-overflow")
183
-ADD_TEST(invalid__real-negative-overflow "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/real-negative-overflow")
184
-ADD_TEST(invalid__real-negative-overflow__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/real-negative-overflow")
185
-ADD_TEST(invalid__lone-open-bracket "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/lone-open-bracket")
186
-ADD_TEST(invalid__lone-open-bracket__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/lone-open-bracket")
187
-ADD_TEST(invalid__object-no-colon "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/object-no-colon")
188
-ADD_TEST(invalid__object-no-colon__strip "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "--strip" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid/object-no-colon")
189
-ADD_TEST(invalid-unicode__overlong-ascii-encoding "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid-unicode/overlong-ascii-encoding")
190
-ADD_TEST(invalid-unicode__invalid-utf-8-in-string "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid-unicode/invalid-utf-8-in-string")
191
-ADD_TEST(invalid-unicode__invalid-utf-8-in-identifier "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid-unicode/invalid-utf-8-in-identifier")
192
-ADD_TEST(invalid-unicode__invalid-utf-8-after-backslash "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid-unicode/invalid-utf-8-after-backslash")
193
-ADD_TEST(invalid-unicode__truncated-utf-8 "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid-unicode/truncated-utf-8")
194
-ADD_TEST(invalid-unicode__invalid-utf-8-in-array "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid-unicode/invalid-utf-8-in-array")
195
-ADD_TEST(invalid-unicode__invalid-utf-8-in-escape "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid-unicode/invalid-utf-8-in-escape")
196
-ADD_TEST(invalid-unicode__invalid-utf-8-in-exponent "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid-unicode/invalid-utf-8-in-exponent")
197
-ADD_TEST(invalid-unicode__overlong-3-byte-encoding "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid-unicode/overlong-3-byte-encoding")
198
-ADD_TEST(invalid-unicode__encoded-surrogate-half "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid-unicode/encoded-surrogate-half")
199
-ADD_TEST(invalid-unicode__lone-invalid-utf-8 "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid-unicode/lone-invalid-utf-8")
200
-ADD_TEST(invalid-unicode__overlong-4-byte-encoding "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid-unicode/overlong-4-byte-encoding")
201
-ADD_TEST(invalid-unicode__invalid-utf-8-in-bigger-int "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid-unicode/invalid-utf-8-in-bigger-int")
202
-ADD_TEST(invalid-unicode__invalid-utf-8-in-int "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid-unicode/invalid-utf-8-in-int")
203
-ADD_TEST(invalid-unicode__lone-utf-8-continuation-byte "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid-unicode/lone-utf-8-continuation-byte")
204
-ADD_TEST(invalid-unicode__invalid-utf-8-in-real-after-e "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid-unicode/invalid-utf-8-in-real-after-e")
205
-ADD_TEST(invalid-unicode__not-in-unicode-range "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid-unicode/not-in-unicode-range")
206
-ADD_TEST(invalid-unicode__restricted-utf-8 "/home/apoelstra/dload/code/cj-client/jansson/bin/json_process" "/home/apoelstra/dload/code/cj-client/jansson/test/suites/invalid-unicode/restricted-utf-8")

+ 10
- 2
tests/test_pcsc_cpp_tools.cpp Ver arquivo

@@ -3,7 +3,15 @@
3 3
 
4 4
 int main()
5 5
 {
6
-  ScByteArray b;
7
-  std::cout << b.getSize() << std::endl;
6
+  std::cout << ScReader::establishContext() << std::endl;
7
+  auto readers = ScReader::getReaders();
8
+  for (auto reader : readers)
9
+  {
10
+    std::cout << reader->getName() << " ";
11
+    std::cout << reader->connect() << " ";
12
+    std::cout << reader->disconnect();
13
+    std::cout << std::endl;
14
+  }
15
+  std::cout << ScReader::freeContext() << std::endl;
8 16
   return 0;
9 17
 }

Carregando…
Cancelar
Salvar