System.Data.SQLite

Check-in [bbc7c21748]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Removing copying of assembly files from unit tests as they are now copied in the common prologue.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: bbc7c217488b5109fcaab53ea4b322f3936a9227
User & Date: mistachkin 2011-07-08 10:27:13.477
Context
2011-07-08
11:45
Modify test basic-1.2 to allow it to pass multiple times without having to manually re-copy the test database to the build directory. check-in: 4bfb250998 user: mistachkin tags: trunk
10:27
Removing copying of assembly files from unit tests as they are now copied in the common prologue. check-in: bbc7c21748 user: mistachkin tags: trunk
10:24
Enhancements to unit test infrastructure to enable profiling. check-in: 0c6f84763c user: mistachkin tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to Tests/tkt-201128cc88.eagle.
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

source [file join $path common.eagle]
runSQLiteTestPrologue

###############################################################################

runTest {test tkt-201128cc88-1.1 {custom function with byte[] arg} -setup {
  tryCopyAssembly SQLite.Interop.dll
  tryCopyAssembly System.Data.SQLite.dll
  set fileName tkt-201128cc88-1.1.db
} -body {
  set id [object invoke Interpreter.GetActive NextId]

  unset -nocomplain results errors

  set code [compileCSharpWith [subst {







<
<







17
18
19
20
21
22
23


24
25
26
27
28
29
30

source [file join $path common.eagle]
runSQLiteTestPrologue

###############################################################################

runTest {test tkt-201128cc88-1.1 {custom function with byte[] arg} -setup {


  set fileName tkt-201128cc88-1.1.db
} -body {
  set id [object invoke Interpreter.GetActive NextId]

  unset -nocomplain results errors

  set code [compileCSharpWith [subst {
Changes to Tests/tkt-e1b2e0f769.eagle.
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

source [file join $path common.eagle]
runSQLiteTestPrologue

###############################################################################

runTest {test tkt-e1b2e0f769-1.1 {data reader cleanup} -setup {
  tryCopyAssembly SQLite.Interop.dll
  tryCopyAssembly System.Data.SQLite.dll
  setupDb [set fileName tkt-e1b2e0f769-1.1.db]
} -body {
  sql execute $db "CREATE TABLE t1(x INTEGER);"
  sql execute $db "CREATE TABLE t2(x INTEGER);"

  foreach x [list 1 2 3] {
    sql execute $db "INSERT INTO t1 (x) VALUES($x);"







<
<







17
18
19
20
21
22
23


24
25
26
27
28
29
30

source [file join $path common.eagle]
runSQLiteTestPrologue

###############################################################################

runTest {test tkt-e1b2e0f769-1.1 {data reader cleanup} -setup {


  setupDb [set fileName tkt-e1b2e0f769-1.1.db]
} -body {
  sql execute $db "CREATE TABLE t1(x INTEGER);"
  sql execute $db "CREATE TABLE t2(x INTEGER);"

  foreach x [list 1 2 3] {
    sql execute $db "INSERT INTO t1 (x) VALUES($x);"