1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tools: rename v test-compiler-full to v test-self

This commit is contained in:
Delyan Angelov
2021-01-19 10:41:51 +02:00
parent 85bcfdd636
commit 927606dc39
10 changed files with 48 additions and 47 deletions

View File

@@ -61,7 +61,7 @@ fn main() {
}
howmany := app.api_differences.len
eprintln('NB: please, do run `git clean -xf` after this tool, or at least `find thirdparty/ |grep .o$|xargs rm`')
eprintln('otherwise, `./v test-compiler-full` may show false positives, due to .o files compiled with a cross compiler.')
eprintln('otherwise, `./v test-self` may show false positives, due to .o files compiled with a cross compiler.')
if howmany > 0 {
eprintln(term.header('Found $howmany modules with different APIs', '='))
for m in app.api_differences.keys() {

View File

@@ -53,7 +53,7 @@ const (
'bin2v',
'test',
'test-fmt',
'test-compiler-full',
'test-self',
'test-cleancode',
'repl',
'complete',

View File

@@ -37,7 +37,7 @@ fn get_all_commands() []Command {
okmsg: 'All .v files can be processed with `v fmt`. NB: the result may not always be compilable, it just means that `v fmt` does not crash.'
}
res << Command{
line: '$vexe $vargs -progress test-compiler-full'
line: '$vexe $vargs -progress test-self'
okmsg: 'There are no _test.v file regressions.'
}
res << Command{

View File

@@ -94,7 +94,7 @@ fn main() {
os.chdir(vroot)
args := os.args.clone()
args_string := args[1..].join(' ')
cmd_prefix := args_string.all_before('test-compiler-full')
cmd_prefix := args_string.all_before('test-self')
title := 'testing all fixed tests'
all_test_files := os.walk_ext(os.join_path(vroot, 'vlib'), '_test.v')
testing.eheader(title)

View File

@@ -14,7 +14,7 @@ but which are used less frequently by users:
test-fmt Test if all files in the current directory are formatted properly.
test-compiler-full Test if V is working properly by running all tests, including the compiler ones.
test-self Test if V is working properly by running all tests, including the compiler ones.
NB: this can 1-2 minutes to run.
test-parser Test that the V parser works with the given files, as if

View File

@@ -22,9 +22,10 @@ const (
'test-all', /* runs most of the tests and other checking tools, that will be run by the CI */
'test-fmt',
'test-parser',
'test-fixed', /* deprecated by test-compiler-full */
'test-compiler', /* deprecated by test-compiler-full */
'test-compiler-full',
'test-self',
'test-fixed', /* deprecated by test-self */
'test-compiler', /* deprecated by test-self */
'test-compiler-full', /* deprecated by test-self */
'test-cleancode',
'repl',
'complete',
@@ -79,12 +80,12 @@ fn main() {
eprintln('-usecache is currently disabled on windows')
exit(1)
}
if command == 'test-fixed' {
eprintln('Please use `v test-compiler-full` instead.')
if command in ['test-fixed', 'test-compiler-full'] {
eprintln('Please use `v test-self` instead.')
exit(1)
}
if command == 'test-compiler' {
eprintln('Please use either `v test-all`, `v test-compiler-full`, `v build-examples`, `v build-tools` or `v build-vbinaries` instead.')
eprintln('Please use either `v test-all`, `v test-self`, `v build-examples`, `v build-tools` or `v build-vbinaries` instead.')
exit(1)
}
if command == 'test-vet' {