File: __driver__.lua

package info (click to toggle)
monotone 1.1-9
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 20,984 kB
  • ctags: 8,622
  • sloc: cpp: 86,450; sh: 6,906; perl: 924; makefile: 813; python: 517; lisp: 379; sql: 118; exp: 91; ansic: 52
file content (25 lines) | stat: -rw-r--r-- 790 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

mtn_setup()

write_large_file("largish", 1)

check(mtn("genkey", "foo"), 0, false, false, "foo\nfoo\n")
addfile("testfile1", "blah balh")
commit("branch1")
writefile("testfile1", "stuff stuff")
addfile("testfile2", "foo foo")

-- include a largish file in the dump, so we can test for iostream breakage on
-- MinGW wrt sync_with_stdio().
check(mtn("add", "largish"), 0, false, false)
commit("branch2")

-- run a db analyze so that SQLite creates any internal tables and indices,
-- because we want to make sure we don't attempt to dump and load these.
check(mtn("db", "execute", "analyze;"), 0, false, false)

check(mtn("db", "dump"), 0, true, false)
rename("stdout", "stdin")
check(mtn("db", "load", "--db=test2.db"), 0, false, false, true)

check_same_db_contents("test.db", "test2.db")