Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adam Osuchowski
Kea
Commits
6d750aaf
Commit
6d750aaf
authored
Jan 24, 2013
by
Mukund Sivaraman
Browse files
[1756] Add V2.1 to 2.2 upgrade tests
parent
750c848d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/bin/dbutil/tests/dbutil_test.sh.in
View file @
6d750aaf
...
...
@@ -394,6 +394,28 @@ upgrade_ok_test $testdata/v2_0.sqlite3 $backupfile
rm
-f
$tempfile
$backupfile
sec
=
`
expr
$sec
+ 1
`
echo
$sec
".1. Database is V2.1 database - check"
check_version
$testdata
/v2_1.sqlite3
"V2.1"
check_no_backup
$tempfile
$backupfile
rm
-f
$tempfile
$backupfile
echo
$sec
".2. Database is a V2.1 database - upgrade"
upgrade_ok_test
$testdata
/v2_1.sqlite3
$backupfile
rm
-f
$tempfile
$backupfile
sec
=
`
expr
$sec
+ 1
`
echo
$sec
".1. Database is V2.2 database - check"
check_version
$testdata
/v2_2.sqlite3
"V2.2"
check_no_backup
$tempfile
$backupfile
rm
-f
$tempfile
$backupfile
echo
$sec
".2. Database is a V2.2 database - upgrade"
upgrade_ok_test
$testdata
/v2_2.sqlite3
$backupfile
rm
-f
$tempfile
$backupfile
sec
=
`
expr
$sec
+ 1
`
echo
$sec
".1. Database is V2.0 database with empty schema table - check"
check_version_fail
$testdata
/empty_version.sqlite3
$backupfile
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment