LastTest.log 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. Start testing: Sep 30 18:22 CEST
  2. ----------------------------------------------------------
  3. 1/2 Testing: UnitTests
  4. 1/2 Test: UnitTests
  5. Command: "/mnt/hgfs/vm-exchange/SQLiteCpp/build/SQLiteCpp_tests"
  6. Directory: /mnt/hgfs/vm-exchange/SQLiteCpp/build
  7. "UnitTests" start time: Sep 30 18:22 CEST
  8. Output:
  9. ----------------------------------------------------------
  10. Running main() from gtest_main.cc
  11. [==========] Running 25 tests from 6 test cases.
  12. [----------] Global test environment set-up.
  13. [----------] 2 tests from Column
  14. [ RUN ] Column.basis
  15. [ OK ] Column.basis (36 ms)
  16. [ RUN ] Column.getName
  17. [ OK ] Column.getName (1 ms)
  18. [----------] 2 tests from Column (37 ms total)
  19. [----------] 1 test from SQLiteCpp
  20. [ RUN ] SQLiteCpp.version
  21. [ OK ] SQLiteCpp.version (0 ms)
  22. [----------] 1 test from SQLiteCpp (0 ms total)
  23. [----------] 7 tests from Database
  24. [ RUN ] Database.ctorExecCreateDropExist
  25. [ OK ] Database.ctorExecCreateDropExist (61 ms)
  26. [ RUN ] Database.createCloseReopen
  27. [ OK ] Database.createCloseReopen (9 ms)
  28. [ RUN ] Database.inMemory
  29. [ OK ] Database.inMemory (1 ms)
  30. [ RUN ] Database.busyTimeout
  31. [ OK ] Database.busyTimeout (0 ms)
  32. [ RUN ] Database.exec
  33. [ OK ] Database.exec (1 ms)
  34. [ RUN ] Database.execAndGet
  35. [ OK ] Database.execAndGet (0 ms)
  36. [ RUN ] Database.execException
  37. [ OK ] Database.execException (1 ms)
  38. [----------] 7 tests from Database (73 ms total)
  39. [----------] 10 tests from Statement
  40. [ RUN ] Statement.invalid
  41. [ OK ] Statement.invalid (0 ms)
  42. [ RUN ] Statement.executeStep
  43. [ OK ] Statement.executeStep (1 ms)
  44. [ RUN ] Statement.bindings
  45. [ OK ] Statement.bindings (0 ms)
  46. [ RUN ] Statement.bindNoCopy
  47. [ OK ] Statement.bindNoCopy (1 ms)
  48. [ RUN ] Statement.bindByName
  49. [ OK ] Statement.bindByName (0 ms)
  50. [ RUN ] Statement.bindNoCopyByName
  51. [ OK ] Statement.bindNoCopyByName (0 ms)
  52. [ RUN ] Statement.isColumnNull
  53. [ OK ] Statement.isColumnNull (1 ms)
  54. [ RUN ] Statement.isColumnNullByName
  55. [ OK ] Statement.isColumnNullByName (0 ms)
  56. [ RUN ] Statement.getColumnByName
  57. [ OK ] Statement.getColumnByName (6 ms)
  58. [ RUN ] Statement.getName
  59. [ OK ] Statement.getName (1 ms)
  60. [----------] 10 tests from Statement (10 ms total)
  61. [----------] 4 tests from Backup
  62. [ RUN ] Backup.initException
  63. [ OK ] Backup.initException (30 ms)
  64. [ RUN ] Backup.executeStepOne
  65. [ OK ] Backup.executeStepOne (23 ms)
  66. [ RUN ] Backup.executeStepAll
  67. [ OK ] Backup.executeStepAll (64 ms)
  68. [ RUN ] Backup.executeStepException
  69. [ OK ] Backup.executeStepException (52 ms)
  70. [----------] 4 tests from Backup (169 ms total)
  71. [----------] 1 test from Transaction
  72. [ RUN ] Transaction.commitRollback
  73. SQLite exception: near "DesiredSyntaxError": syntax error
  74. [ OK ] Transaction.commitRollback (1 ms)
  75. [----------] 1 test from Transaction (1 ms total)
  76. [----------] Global test environment tear-down
  77. [==========] 25 tests from 6 test cases ran. (290 ms total)
  78. [ PASSED ] 25 tests.
  79. <end of output>
  80. Test time = 0.48 sec
  81. ----------------------------------------------------------
  82. Test Passed.
  83. "UnitTests" end time: Sep 30 18:22 CEST
  84. "UnitTests" time elapsed: 00:00:00
  85. ----------------------------------------------------------
  86. 2/2 Testing: Example1Run
  87. 2/2 Test: Example1Run
  88. Command: "/mnt/hgfs/vm-exchange/SQLiteCpp/build/SQLiteCpp_example1"
  89. Directory: /mnt/hgfs/vm-exchange/SQLiteCpp/build
  90. "Example1Run" start time: Sep 30 18:22 CEST
  91. Output:
  92. ----------------------------------------------------------
  93. SQlite3 version 3.13.0 (3.13.0)
  94. SQliteC++ version 2.00.00
  95. SQLite database file '/mnt/hgfs/vm-exchange/SQLiteCpp/examples/example1//example.db3' opened successfully
  96. SQLite table 'test' exists=1
  97. execAndGet=second line
  98. SQLite database file '/mnt/hgfs/vm-exchange/SQLiteCpp/examples/example1//example.db3' opened successfully
  99. SQLite statement 'SELECT id as test_id, value as test_val, weight as test_weight FROM test WHERE weight > ?' compiled (3 columns in the result)
  100. binded with integer value '2' :
  101. row (1, "first word"(10) 2.3)
  102. row (2, "second line"(11) 6.7)
  103. row (3, "and a last one"(14) 9.5)
  104. row (4, ""(0) 18)
  105. SQLite statement 'SELECT id as test_id, value as test_val, weight as test_weight FROM test WHERE weight > ?' reseted (3 columns in the result)
  106. aliased result ["test_id", "test_val", "test_weight"]
  107. origin table 'test' ["id", "value", "weight"]
  108. row (1, "first word", 2.3)
  109. row (2, "second line", 6.7)
  110. row (3, "and a last one", 9.5)
  111. row (4, "", 18,1)
  112. SQLite statement 'SELECT id as test_id, value as test_val, weight as test_weight FROM test WHERE weight > ?' reseted (3 columns in the result)
  113. row (1, "first word" 2.3)
  114. row (2, "second line" 6.7)
  115. row (3, "and a last one" 9.5)
  116. row (4, "" 18)
  117. SQLite statement 'SELECT id as test_id, value as test_val, weight as test_weight FROM test WHERE weight > ?' reseted (3 columns in the result)
  118. binded with string value "6" :
  119. row (2, "second line", 6)
  120. row (3, "and a last one", 9)
  121. row (4, "", 18)
  122. ListGreaterThan (8)
  123. row (3, "and a last one", 9.5)
  124. row (4, "", 18,1)
  125. ListGreaterThan (6)
  126. row (2, "second line", 6.7)
  127. row (3, "and a last one", 9.5)
  128. row (4, "", 18,1)
  129. ListGreaterThan (2)
  130. row (1, "first word", 2.3)
  131. row (2, "second line", 6.7)
  132. row (3, "and a last one", 9.5)
  133. row (4, "", 18,1)
  134. SQLite database file '/mnt/hgfs/vm-exchange/SQLiteCpp/examples/example1//example.db3' opened successfully
  135. execAndGet=second line
  136. SQLite database file 'test.db3' opened successfully
  137. INSERT INTO test VALUES (NULL, "test")", returned 1
  138. INSERT INTO test VALUES (NULL, "second")", returned 1
  139. UPDATE test SET value="second-updated" WHERE id='2', returned 1
  140. SELECT * FROM test :
  141. row (1, "test")
  142. row (2, "second-updated")
  143. SQLite database file 'transaction.db3' opened successfully
  144. INSERT INTO test VALUES (NULL, "test")", returned 1
  145. INSERT INTO test VALUES (NULL, "second")", returned 1
  146. SQLite exception: near "ObviousError": syntax error
  147. SELECT * FROM test :
  148. row (1, "test")
  149. SQLite database file ':memory:' opened successfully
  150. blob size=12581 :
  151. blob binded successfully
  152. INSERT INTO test VALUES (NULL, ?)", returned 1
  153. SELECT * FROM test :
  154. row (1, size=12581)
  155. everything ok, quitting
  156. <end of output>
  157. Test time = 0.16 sec
  158. ----------------------------------------------------------
  159. Test Passed.
  160. "Example1Run" end time: Sep 30 18:22 CEST
  161. "Example1Run" time elapsed: 00:00:00
  162. ----------------------------------------------------------
  163. End testing: Sep 30 18:22 CEST