mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tools: remove remaining references to vlib/sqlite, vlib/mysql, vlib/pg (and make v test-cleancode
fail *loudly*, when a folder is missing, regression after a421e485f
).
This commit is contained in:
parent
428fd7f57f
commit
e3ade704cb
@ -22,7 +22,6 @@ const vet_known_failing_windows = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
const vet_folders = [
|
const vet_folders = [
|
||||||
'vlib/sqlite',
|
|
||||||
'vlib/v',
|
'vlib/v',
|
||||||
'vlib/x/json2',
|
'vlib/x/json2',
|
||||||
'vlib/x/ttf',
|
'vlib/x/ttf',
|
||||||
@ -53,7 +52,7 @@ const is_fix = '-fix' in os.args
|
|||||||
fn main() {
|
fn main() {
|
||||||
args_string := os.args[1..].join(' ')
|
args_string := os.args[1..].join(' ')
|
||||||
pass_args := args_string.all_before('test-cleancode')
|
pass_args := args_string.all_before('test-cleancode')
|
||||||
v_test_vetting(pass_args)
|
v_test_vetting(pass_args)!
|
||||||
}
|
}
|
||||||
|
|
||||||
fn tsession(vargs string, tool_source string, tool_cmd string, tool_args string, flist []string, slist []string) testing.TestSession {
|
fn tsession(vargs string, tool_source string, tool_cmd string, tool_args string, flist []string, slist []string) testing.TestSession {
|
||||||
@ -72,8 +71,8 @@ fn tsession(vargs string, tool_source string, tool_cmd string, tool_args string,
|
|||||||
return test_session
|
return test_session
|
||||||
}
|
}
|
||||||
|
|
||||||
fn v_test_vetting(vargs string) {
|
fn v_test_vetting(vargs string) ! {
|
||||||
expanded_vet_list := util.find_all_v_files(vet_folders) or { return }
|
expanded_vet_list := util.find_all_v_files(vet_folders)!
|
||||||
mut vet_known_exceptions := vet_known_failing.clone()
|
mut vet_known_exceptions := vet_known_failing.clone()
|
||||||
if os.user_os() == 'windows' {
|
if os.user_os() == 'windows' {
|
||||||
vet_known_exceptions << vet_known_failing_windows
|
vet_known_exceptions << vet_known_failing_windows
|
||||||
|
@ -326,9 +326,11 @@ fn main() {
|
|||||||
tsession.skip_files << test_js_files.map(it.replace(testroot, ''))
|
tsession.skip_files << test_js_files.map(it.replace(testroot, ''))
|
||||||
}
|
}
|
||||||
testing.find_started_process('mysqld') or {
|
testing.find_started_process('mysqld') or {
|
||||||
tsession.skip_files << 'vlib/mysql/mysql_orm_test.v'
|
tsession.skip_files << 'vlib/db/mysql/mysql_orm_test.v'
|
||||||
|
}
|
||||||
|
testing.find_started_process('postgres') or {
|
||||||
|
tsession.skip_files << 'vlib/db/pg/pg_orm_test.v'
|
||||||
}
|
}
|
||||||
testing.find_started_process('postgres') or { tsession.skip_files << 'vlib/pg/pg_orm_test.v' }
|
|
||||||
|
|
||||||
if github_job == 'windows-tcc' {
|
if github_job == 'windows-tcc' {
|
||||||
// TODO: fix these ASAP
|
// TODO: fix these ASAP
|
||||||
|
@ -40,7 +40,7 @@ Now V should be globally available on your system.
|
|||||||
### Install SQLite development dependency
|
### Install SQLite development dependency
|
||||||
|
|
||||||
If you don't have it already installed, look at the
|
If you don't have it already installed, look at the
|
||||||
[`sqlite` README](../../vlib/sqlite/README.md) for instructions.
|
[`sqlite` README](../../vlib/db/sqlite/README.md) for instructions.
|
||||||
|
|
||||||
### Creating a new Vweb project
|
### Creating a new Vweb project
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user