File: __driver__.lua

package info (click to toggle)
monotone 0.31-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 20,680 kB
  • ctags: 14,801
  • sloc: cpp: 87,711; ansic: 64,862; sh: 5,691; lisp: 954; perl: 783; makefile: 509; python: 265; sql: 98; sed: 16
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")