Browse Source

cmake; tests

master
Robin Thoni 9 years ago
parent
commit
66ad0bde8c

+ 5
- 6
CMakeLists.txt View File

@@ -1,7 +1,6 @@
1 1
 cmake_minimum_required(VERSION 2.8)
2
-project(libpcsc_cpptools)
3
-
4
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -pthread -I/usr/include/PCSC")
5
-
6
-set(SOURCE_FILES DBO/ScCommand.cpp DBO/ScCommand.h DBO/ScByteArray.cpp DBO/ScByteArray.h)
7
-add_library(libpcsc_cpptools SHARED ${SOURCE_FILES} DBO/ScByteArray.hxx DBO/ScCommand.hxx DBO/ScBasicCommand.cpp DBO/ScBasicCommand.h DBO/ScBasicCommand.hxx DBO/ScResult.cpp DBO/ScResult.h DBO/ScResult.hxx)
2
+set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules/")
3
+project(pcsc_cpptools)
4
+enable_testing()
5
+add_subdirectory(src)
6
+add_subdirectory(tests)

+ 55
- 0
CMakeModules/FindCheck.cmake View File

@@ -0,0 +1,55 @@
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
+

+ 0
- 5
DBO/ScResult.cpp View File

@@ -1,5 +0,0 @@
1
-//
2
-// Created by robin on 6/27/15.
3
-//
4
-
5
-#include "ScResult.h"

+ 19
- 0
src/CMakeLists.txt View File

@@ -0,0 +1,19 @@
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")
3
+set(SOURCE_FILES
4
+  DBO/ScCommand.cpp
5
+  include/ScCommand.h
6
+  include/ScCommand.hxx
7
+  DBO/ScByteArray.cpp
8
+  include/ScByteArray.h
9
+  include/ScByteArray.hxx
10
+  DBO/ScBasicCommand.cpp
11
+  include/ScBasicCommand.h
12
+  include/ScBasicCommand.hxx
13
+  DBO/ScResult.cpp
14
+  include/ScResult.h
15
+  include/ScResult.hxx
16
+  DataAccess/ScReader.cpp
17
+  include/ScReader.h
18
+  include/ScReader.hxx)
19
+add_library(pcsc_cpptools SHARED ${SOURCE_FILES})

DBO/ScBasicCommand.cpp → src/DBO/ScBasicCommand.cpp View File


DBO/ScByteArray.cpp → src/DBO/ScByteArray.cpp View File


DBO/ScCommand.cpp → src/DBO/ScCommand.cpp View File


+ 14
- 0
src/DBO/ScResult.cpp View File

@@ -0,0 +1,14 @@
1
+//
2
+// Created by robin on 6/27/15.
3
+//
4
+
5
+#include "ScResult.h"
6
+
7
+ScResult::ScResult(const ScByteArray &data)
8
+    : _data(data)
9
+{
10
+}
11
+
12
+ScResult::~ScResult()
13
+{
14
+}

+ 62
- 0
src/DataAccess/ScReader.cpp View File

@@ -0,0 +1,62 @@
1
+//
2
+// Created by robin on 6/28/15.
3
+//
4
+
5
+#include <winscard.h>
6
+#include "ScReader.h"
7
+
8
+ScReader::~ScReader()
9
+{
10
+    freeContext();
11
+}
12
+
13
+bool ScReader::establishContext()
14
+{
15
+    if (!freeContext())
16
+        return false;
17
+    _context = new SCARDCONTEXT[1];
18
+    auto res = SCardEstablishContext(SCARD_SCOPE_SYSTEM, nullptr, nullptr, _context);
19
+    return res == SCARD_S_SUCCESS;
20
+}
21
+
22
+bool ScReader::freeContext()
23
+{
24
+    if (!_context)
25
+        return true;
26
+    auto res = SCardReleaseContext(*_context);
27
+    delete[] _context;
28
+    _context = nullptr;
29
+    return res == SCARD_S_SUCCESS;
30
+}
31
+
32
+bool ScReader::connect(DWORD shareMode, DWORD protocols, DWORD disposition)
33
+{
34
+    if (!disconnect(disposition))
35
+        return false;
36
+    _card = new SCARDCONTEXT[1];
37
+    _proto = new DWORD[1];
38
+    auto res = SCardConnect(*_context, _name, shareMode, protocols, _card, _proto);
39
+    return res == SCARD_S_SUCCESS;
40
+}
41
+
42
+bool ScReader::disconnect(DWORD disposition)
43
+{
44
+    if (!_card)
45
+        return true;
46
+    auto res = SCardDisconnect(*_card, disposition);
47
+    delete[] _proto;
48
+    _proto = nullptr;
49
+    delete[] _card;
50
+    _card = nullptr;
51
+    return res == SCARD_S_SUCCESS;
52
+}
53
+
54
+std::shared_ptr<ScResult> ScReader::transmit(const ScCommand& command, DWORD size)
55
+{
56
+    auto data = command.getData();
57
+    auto resBuffer = new BYTE[size];
58
+    auto res = SCardTransmit(*_card, _sendPci, data.getData(), data.getSize(), nullptr, resBuffer, &size);
59
+    if (res == SCARD_S_SUCCESS)
60
+        return std::make_shared<ScResult>(ScByteArray(resBuffer, size));
61
+    return std::make_shared<ScResult>(ScByteArray());
62
+}

DBO/ScBasicCommand.h → src/include/ScBasicCommand.h View File


DBO/ScBasicCommand.hxx → src/include/ScBasicCommand.hxx View File


DBO/ScByteArray.h → src/include/ScByteArray.h View File


DBO/ScByteArray.hxx → src/include/ScByteArray.hxx View File

@@ -32,3 +32,8 @@ BYTE* ScByteArray::getData() const
32 32
 {
33 33
     return _data;
34 34
 }
35
+
36
+DWORD ScByteArray::getSize() const
37
+{
38
+    return _size;
39
+}

DBO/ScCommand.h → src/include/ScCommand.h View File


DBO/ScCommand.hxx → src/include/ScCommand.hxx View File


+ 48
- 0
src/include/ScReader.h View File

@@ -0,0 +1,48 @@
1
+//
2
+// Created by robin on 6/28/15.
3
+//
4
+
5
+#ifndef LIBPCSC_CPPTOOLS_SCREADER_H
6
+# define LIBPCSC_CPPTOOLS_SCREADER_H
7
+
8
+# include <wintypes.h>
9
+# include <pcsclite.h>
10
+# include <memory>
11
+# include "ScCommand.h"
12
+# include "ScResult.h"
13
+
14
+class ScReader
15
+{
16
+public:
17
+    inline ScReader(LPCSTR name);
18
+
19
+    virtual ~ScReader();
20
+
21
+    bool establishContext();
22
+
23
+    bool freeContext();
24
+
25
+    bool connect(DWORD shareMode = SCARD_SHARE_SHARED, DWORD protocols =
26
+        SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1, DWORD disposition = SCARD_LEAVE_CARD);
27
+
28
+    bool disconnect(DWORD disposition = SCARD_LEAVE_CARD);
29
+
30
+    std::shared_ptr<ScResult> transmit(const ScCommand& command, DWORD size = 2048);
31
+
32
+private:
33
+    LPCSTR _name;
34
+
35
+    LPSCARDCONTEXT _context;
36
+
37
+    LPSCARDHANDLE _card;
38
+
39
+    LPDWORD _proto;
40
+
41
+    LPSCARD_IO_REQUEST _sendPci;
42
+
43
+    LONG _lastResult;
44
+};
45
+
46
+# include "ScReader.hxx"
47
+
48
+#endif //LIBPCSC_CPPTOOLS_SCREADER_H

+ 13
- 0
src/include/ScReader.hxx View File

@@ -0,0 +1,13 @@
1
+//
2
+// Created by robin on 6/28/15.
3
+//
4
+
5
+ScReader::ScReader(LPCSTR name)
6
+    : _name(name)
7
+    , _context(nullptr)
8
+    , _card(nullptr)
9
+    , _proto(nullptr)
10
+    , _sendPci(nullptr)
11
+    , _lastResult(SCARD_S_SUCCESS)
12
+{
13
+}

DBO/ScResult.h → src/include/ScResult.h View File

@@ -6,9 +6,17 @@
6 6
 # define LIBPCSC_CPPTOOLS_SCRESULT_H
7 7
 
8 8
 
9
+#include "ScByteArray.h"
10
+
9 11
 class ScResult
10 12
 {
13
+public:
14
+    ScResult(const ScByteArray& data);
15
+
16
+    ~ScResult();
11 17
 
18
+protected:
19
+    ScByteArray _data;
12 20
 };
13 21
 
14 22
 # include "ScResult.hxx"

DBO/ScResult.hxx → src/include/ScResult.hxx View File


BIN
tests/.test_pcsc_cpp_tools.cpp.swp View File


+ 8
- 0
tests/CMakeLists.txt View File

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

+ 206
- 0
tests/CTestTestfile.cmake View File

@@ -0,0 +1,206 @@
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")

+ 9
- 0
tests/test_pcsc_cpp_tools.cpp View File

@@ -0,0 +1,9 @@
1
+#include <iostream>
2
+#include "ScReader.h"
3
+
4
+int main()
5
+{
6
+  ScByteArray b;
7
+  std::cout << b.getSize() << std::endl;
8
+  return 0;
9
+}

Loading…
Cancel
Save