move compiler tests from compiler/ to v/
parent
95e67c9502
commit
eed7c91e87
|
@ -20,8 +20,8 @@ const (
|
||||||
'./vlib/arrays/arrays.v',
|
'./vlib/arrays/arrays.v',
|
||||||
'./vlib/arrays/arrays_test.v',
|
'./vlib/arrays/arrays_test.v',
|
||||||
'./vlib/builtin/js/hashmap.v',
|
'./vlib/builtin/js/hashmap.v',
|
||||||
'./vlib/compiler/tests/fn_variadic_test.v',
|
'./vlib/v/tests/fn_variadic_test.v',
|
||||||
'./vlib/compiler/tests/generic_test.v',
|
'./vlib/v/tests/generic_test.v',
|
||||||
'./vlib/crypto/aes/aes.v',
|
'./vlib/crypto/aes/aes.v',
|
||||||
'./vlib/crypto/aes/aes_cbc.v',
|
'./vlib/crypto/aes/aes_cbc.v',
|
||||||
'./vlib/crypto/aes/block_generic.v',
|
'./vlib/crypto/aes/block_generic.v',
|
||||||
|
|
|
@ -7,7 +7,7 @@ fn test_all() {
|
||||||
}
|
}
|
||||||
vexe := os.getenv('VEXE')
|
vexe := os.getenv('VEXE')
|
||||||
vroot := os.dir(vexe)
|
vroot := os.dir(vexe)
|
||||||
dir := os.join_path(vroot,'vlib/v/tests')
|
dir := os.join_path(vroot,'vlib/v/tests/inout')
|
||||||
files := os.ls(dir) or {
|
files := os.ls(dir) or {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
import compiler.tests.local
|
import v.tests.local
|
||||||
|
|
||||||
fn test_local_module_is_callable() {
|
fn test_local_module_is_callable() {
|
||||||
assert local.local_fn()
|
assert local.local_fn()
|
|
@ -1,7 +1,7 @@
|
||||||
// Build and run files in ./prod/ folder, comparing their output to *.expected.txt files.
|
// Build and run files in ./prod/ folder, comparing their output to *.expected.txt files.
|
||||||
// (Similar to REPL tests, but in -prod mode.)
|
// (Similar to REPL tests, but in -prod mode.)
|
||||||
// import os
|
// import os
|
||||||
import compiler.tests.repl.runner
|
import v.tests.repl.runner
|
||||||
import benchmark
|
import benchmark
|
||||||
|
|
||||||
fn test_all_v_prod_files() {
|
fn test_all_v_prod_files() {
|
|
@ -1,3 +1,3 @@
|
||||||
import compiler.tests.modules.acommentedmodule
|
import v.tests.modules.acommentedmodule
|
||||||
===output===
|
===output===
|
||||||
vlib/compiler/tests/modules/acommentedmodule/commentedfile.v:7:1: bad module definition: vlib/compiler/tests/modules/acommentedmodule/commentedfile.v imports module "compiler.tests.modules.acommentedmodule" but vlib/compiler/tests/modules/acommentedmodule/commentedfile.v is defined as module `main`
|
vlib/compiler/tests/modules/acommentedmodule/commentedfile.v:7:1: bad module definition: vlib/compiler/tests/modules/acommentedmodule/commentedfile.v imports module "compiler.tests.modules.acommentedmodule" but vlib/compiler/tests/modules/acommentedmodule/commentedfile.v is defined as module `main`
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue