Tarantool development patches archive
 help / color / mirror / Atom feed
From: "n.pettik" <korablev@tarantool.org>
To: tarantool-patches@freelists.org
Cc: Kirill Shcherbatov <kshcherbatov@tarantool.org>
Subject: [tarantool-patches] Re: [PATCH v2 3/3] sql: enable multi-engine tests for SQL
Date: Fri, 29 Jun 2018 17:14:28 +0300	[thread overview]
Message-ID: <84788764-363B-483A-8353-5A3FD61B1F7F@tarantool.org> (raw)
In-Reply-To: <ad5bc5b1934517d54cd67c3a4be7d6531156efe5.1530202680.git.kshcherbatov@tarantool.org>


> 
> +-- SQL Analyze is working correctly only with memtx now.

But test-run anyway runs them twice:

[003] sql-tap/analyzeC.test.lua                       memtx           [ pass ]
[008] sql-tap/analyze7.test.lua                       memtx           [ pass ]
[002] sql-tap/analyze1.test.lua                       memtx           [ pass ]
[006] sql-tap/analyzeE.test.lua                       memtx           [ pass ]
[001] sql-tap/analyzeF.test.lua                       vinyl           [ pass ]
[007] sql-tap/analyze6.test.lua                       vinyl           [ pass ]
[006] sql-tap/analyzeC.test.lua                       vinyl           [ pass ]
[002] sql-tap/analyze8.test.lua                       memtx           [ pass ]
[006] sql-tap/analyze4.test.lua                       memtx           [ pass ]
[007] sql-tap/analyze4.test.lua                       vinyl           [ pass ]
[004] sql-tap/analyze3.test.lua                       memtx           [ pass ]
[006] sql-tap/analyzeD.test.lua                       memtx           [ pass ]
[007] sql-tap/analyze1.test.lua                       vinyl           [ pass ]
[004] sql-tap/analyze7.test.lua                       vinyl           [ pass ]
[003] sql-tap/analyzeD.test.lua                       vinyl           [ pass ]
[004] sql-tap/analyze6.test.lua                       memtx           [ pass ]
[003] sql-tap/analyzeF.test.lua                       memtx           [ pass ]
[006] sql-tap/analyze8.test.lua                       vinyl           [ pass ]
[002] sql-tap/analyzeE.test.lua                       vinyl           [ pass ]
[007] sql-tap/analyze5.test.lua                       memtx           [ pass ]
[004] sql-tap/analyze3.test.lua                       vinyl           [ pass ]
[001] sql-tap/analyze5.test.lua                       vinyl           [ pass ]
[005] sql-tap/analyze9.test.lua                       vinyl           [ pass ]
[008] sql-tap/analyze9.test.lua                       memtx           [ pass ]

Could we disable them for vinyl somehow and run only once?
Some of them take long time to execute.

> 
> diff --git a/test/sql-tap/suite.ini b/test/sql-tap/suite.ini
> index e259be2..16aaf5a 100644
> --- a/test/sql-tap/suite.ini
> +++ b/test/sql-tap/suite.ini
> @@ -5,3 +5,4 @@ disabled =
> 	reindex.test.lua ; This test is banned in scope of #2174
> lua_libs = lua/sqltester.lua ../sql/lua/sql_tokenizer.lua ../box/lua/identifier.lua
> is_parallel = True
> +config = engine.cfg
> \ No newline at end of file

Lets put newline at the end of file.

> diff --git a/test/sql/engine.test.lua b/test/sql/engine.test.lua
> new file mode 100644
> index 0000000..2a07c71
> --- /dev/null
> +++ b/test/sql/engine.test.lua
> @@ -0,0 +1,17 @@
> +env = require('test_run')
> +test_run = env.new()
> +
> +box.sql.execute("pragma sql_default_engine='vinyl'")
> +box.sql.execute("CREATE TABLE t1_vinyl(a primary key,b,c);")
> +box.sql.execute("CREATE TABLE t2_vinyl(a primary key,b,c);”)

Please, use types for columns: we are going to introduce static types
in SQL and make them mandatory.

  reply	other threads:[~2018-06-29 14:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-28 16:19 [tarantool-patches] [PATCH v2 0/3] sql: default engine pragma Kirill Shcherbatov
2018-06-28 16:19 ` [tarantool-patches] [PATCH v2 1/3] sql: introduce pragma sql_default_engine Kirill Shcherbatov
2018-06-29 14:00   ` [tarantool-patches] " n.pettik
2018-07-02  8:46     ` Kirill Shcherbatov
2018-07-02 10:23       ` n.pettik
2018-06-28 16:19 ` [tarantool-patches] [PATCH v2 2/3] sql: fix SQL Count for vinyl engine Kirill Shcherbatov
2018-06-28 16:19 ` [tarantool-patches] [PATCH v2 3/3] sql: enable multi-engine tests for SQL Kirill Shcherbatov
2018-06-29 14:14   ` n.pettik [this message]
2018-07-02  8:46     ` [tarantool-patches] " Kirill Shcherbatov
2018-07-03  8:04 ` [tarantool-patches] Re: [PATCH v2 0/3] sql: default engine pragma Kirill Yukhin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=84788764-363B-483A-8353-5A3FD61B1F7F@tarantool.org \
    --to=korablev@tarantool.org \
    --cc=kshcherbatov@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='[tarantool-patches] Re: [PATCH v2 3/3] sql: enable multi-engine tests for SQL' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox