mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tests: add v test-all, move v test-fixed to v test-compiler-full
This commit is contained in:
@@ -4,18 +4,24 @@ but which are used less frequently by users:
|
||||
bin2v Convert a binary file to a v source file,
|
||||
that can be later embedded in a module or program.
|
||||
|
||||
build-examples Test if all examples can be built.
|
||||
build-tools Test if all tools can be built.
|
||||
build-vbinaries Test if V can be built with different configuration.
|
||||
test-fmt Test if all files in the current directory are formatted properly.
|
||||
test-compiler Test if V is working properly by running all tests, including the compiler ones.
|
||||
NB: this can take a minute or two to run
|
||||
test-parser Test that the V parser works with the given files, as if
|
||||
they were typed by a human programmer, one character at a time.
|
||||
NB: *very slow* for longer files (tens of seconds for 1KB .v file).
|
||||
Mainly useful as a parser bug finder for the V Language Server project.
|
||||
build-examples Test if all examples can be built.
|
||||
build-tools Test if all tools can be built.
|
||||
build-vbinaries Test if V can be built with different configuration.
|
||||
|
||||
setup-freetype Setup thirdparty freetype on Windows.
|
||||
|
||||
wipe-cache Remove the V cache folder. Useful for cleaning the cache, and guaranteeing a clean build.
|
||||
|
||||
test-all Run most checks, that the CI does locally.
|
||||
It may take over 2 minutes, and it needs internet connectivity too,
|
||||
because it tries to also verify that `v install` works.
|
||||
|
||||
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.
|
||||
NB: this can 1-2 minutes to run.
|
||||
|
||||
test-parser Test that the V parser works with the given files, as if
|
||||
they were typed by a human programmer, one character at a time.
|
||||
NB: *very slow* for longer files (tens of seconds for 1KB .v file).
|
||||
Mainly useful as a parser bug finder for the V Language Server project.
|
||||
|
||||
setup-freetype Setup thirdparty freetype on Windows.
|
||||
|
||||
wipe-cache Remove the V cache folder. Useful for cleaning the cache, and guaranteeing a clean build.
|
||||
|
||||
14
cmd/v/v.v
14
cmd/v/v.v
@@ -19,10 +19,12 @@ const (
|
||||
'symlink',
|
||||
'bin2v',
|
||||
'test',
|
||||
'test-all', /* runs most of the tests and other checking tools, that will be run by the CI */
|
||||
'test-fmt',
|
||||
'test-parser',
|
||||
'test-compiler',
|
||||
'test-fixed',
|
||||
'test-fixed', /* deprecated by test-compiler-full */
|
||||
'test-compiler', /* deprecated by test-compiler-full */
|
||||
'test-compiler-full',
|
||||
'test-cleancode',
|
||||
'repl',
|
||||
'complete',
|
||||
@@ -77,6 +79,14 @@ fn main() {
|
||||
eprintln('-usecache is currently disabled on windows')
|
||||
exit(1)
|
||||
}
|
||||
if command == 'test-fixed' {
|
||||
eprintln('Please use `v test-compiler-full` 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.')
|
||||
exit(1)
|
||||
}
|
||||
if command == 'test-vet' {
|
||||
println('Please use `v test-cleancode` instead.')
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user