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:
Delyan Angelov 2023-08-03 23:00:07 +03:00
parent 428fd7f57f
commit e3ade704cb
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
3 changed files with 8 additions and 7 deletions

View File

@ -22,7 +22,6 @@ const vet_known_failing_windows = [
]
const vet_folders = [
'vlib/sqlite',
'vlib/v',
'vlib/x/json2',
'vlib/x/ttf',
@ -53,7 +52,7 @@ const is_fix = '-fix' in os.args
fn main() {
args_string := os.args[1..].join(' ')
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 {
@ -72,8 +71,8 @@ fn tsession(vargs string, tool_source string, tool_cmd string, tool_args string,
return test_session
}
fn v_test_vetting(vargs string) {
expanded_vet_list := util.find_all_v_files(vet_folders) or { return }
fn v_test_vetting(vargs string) ! {
expanded_vet_list := util.find_all_v_files(vet_folders)!
mut vet_known_exceptions := vet_known_failing.clone()
if os.user_os() == 'windows' {
vet_known_exceptions << vet_known_failing_windows

View File

@ -326,9 +326,11 @@ fn main() {
tsession.skip_files << test_js_files.map(it.replace(testroot, ''))
}
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' {
// TODO: fix these ASAP

View File

@ -40,7 +40,7 @@ Now V should be globally available on your system.
### Install SQLite development dependency
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