[users] Include a secret key in the LNT config.

git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@154548 91177308-0d34-0410-b5e6-96231b3b80d8
Migrate some code to lnt.server.ui.decorators.

git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@154549 91177308-0d34-0410-b5e6-96231b3b80d8
lnt runserver: Set up a log handler for the 'lnt' logger.

git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@154550 91177308-0d34-0410-b5e6-96231b3b80d8
lnt runserver: Add --show-sql option to dump all SQL queries (and other SA stuff).

git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@154551 91177308-0d34-0410-b5e6-96231b3b80d8
lnt.server.db: Sketch a small framework for database migrations.

git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@154552 91177308-0d34-0410-b5e6-96231b3b80d8
lnt.server.db.migrate: Pass the engine to the upgrade scripts instead of a session.

git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@154553 91177308-0d34-0410-b5e6-96231b3b80d8
[tests] Add testing for migrations.

git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@154554 91177308-0d34-0410-b5e6-96231b3b80d8
Rework how we manage database initialization in the presence of migrations.

 - Execute a full update process on newly created databases to bring them up to the current version. This is somewhat wasteful, but simple, and also ensures we are always testing migration well. We can revisit later if need be.

 - Instead of expecting V4DB to "maybe initialize" the table, redefine version 0 to be an empty database, and version 1 to match the current structure. We just have to take some care to make sure we handle databases "in the wild" which migration will treat as being at version 0, but in fact already are version 1.

git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@154555 91177308-0d34-0410-b5e6-96231b3b80d8
upgrade_0_to_1: Always create test suite definitions for the known test suite types.

git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@154556 91177308-0d34-0410-b5e6-96231b3b80d8
upgrade_0_to_1: Always create the per-test suite tables for the known test suite types.

git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@154557 91177308-0d34-0410-b5e6-96231b3b80d8
Stop creating test suite definitions and tables on the fly.
 - We do it all at initialization (or upgrade) time now.

git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@154558 91177308-0d34-0410-b5e6-96231b3b80d8
[tests] Add some minimal testing of the compiler sniffing in lnt.testing.utils.compilers.

git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@154559 91177308-0d34-0410-b5e6-96231b3b80d8
[tests] Add some minimal testing of 'lnt runtest nt'.

git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@154560 91177308-0d34-0410-b5e6-96231b3b80d8
[tests] Add some minimal testing that just verifies the main UI pages render correctly.

git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@154561 91177308-0d34-0410-b5e6-96231b3b80d8
lnt.server.db.v4db: Only attempt auto-update once per DB.

git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@154562 91177308-0d34-0410-b5e6-96231b3b80d8
Fix some distribution problems.
 - Source and install were missing migration scripts (because they live outside the package hierarchy).
 - Source distribution should exclude test output files.

Also, added optional tests (only under --param long=1) which check the source distribution sanity and the installation sanity.

git-svn-id: https://llvm.org/svn/llvm-project/lnt/trunk@154565 91177308-0d34-0410-b5e6-96231b3b80d8