ci: more args = os.args fixes
parent
5f5c53348b
commit
c2064b2cc0
|
@ -4,8 +4,7 @@ import os
|
||||||
import testing
|
import testing
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
args := os.args
|
args_string := os.args[1..].join(' ')
|
||||||
args_string := args[1..].join(' ')
|
|
||||||
params := args_string.all_before('build-examples')
|
params := args_string.all_before('build-examples')
|
||||||
if testing.v_build_failing(params, 'examples') {
|
if testing.v_build_failing(params, 'examples') {
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
|
@ -10,16 +10,16 @@ fn p(s string) string {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
args := os.args
|
args_string := os.args[1..].join(' ')
|
||||||
args_string := args[1..].join(' ')
|
|
||||||
skips := []string{}
|
skips := []string{}
|
||||||
vexe := os.getenv('VEXE')
|
vexe := os.getenv('VEXE')
|
||||||
vroot := os.dir(vexe)
|
vroot := os.dir(vexe)
|
||||||
util.ensure_modules_for_all_tools_are_installed('-v' in args)
|
util.ensure_modules_for_all_tools_are_installed('-v' in os.args)
|
||||||
folder := 'cmd/tools'
|
folder := 'cmd/tools'
|
||||||
main_label := 'Building $folder ...'
|
main_label := 'Building $folder ...'
|
||||||
finish_label := 'building $folder'
|
finish_label := 'building $folder'
|
||||||
mut session := testing.prepare_test_session(args_string.all_before('build-tools'), folder, skips, main_label)
|
mut session := testing.prepare_test_session(args_string.all_before('build-tools'),
|
||||||
|
folder, skips, main_label)
|
||||||
session.rm_binaries = false
|
session.rm_binaries = false
|
||||||
session.test()
|
session.test()
|
||||||
eprintln(session.benchmark.total_message(finish_label))
|
eprintln(session.benchmark.total_message(finish_label))
|
||||||
|
@ -31,6 +31,7 @@ fn main() {
|
||||||
executables.sort()
|
executables.sort()
|
||||||
executables = executables.filter(it !in ['gen1m', 'gen_vc', 'fast', 'wyhash'])
|
executables = executables.filter(it !in ['gen1m', 'gen_vc', 'fast', 'wyhash'])
|
||||||
for exe in executables {
|
for exe in executables {
|
||||||
os.mv_by_cp(os.join_path(session.vtmp_dir, exe), os.join_path(vroot, 'cmd', 'tools', exe))
|
os.mv_by_cp(os.join_path(session.vtmp_dir, exe), os.join_path(vroot, 'cmd', 'tools',
|
||||||
|
exe))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,8 +6,7 @@ import benchmark
|
||||||
import v.pref
|
import v.pref
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
args := os.args
|
args_string := os.args[1..].join(' ')
|
||||||
args_string := args[1..].join(' ')
|
|
||||||
v_test_compiler(args_string.all_before('test-compiler'))
|
v_test_compiler(args_string.all_before('test-compiler'))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,10 +45,9 @@ fn a_times_transp(mut v []f64, u []f64) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
args := os.args
|
|
||||||
mut n := 0
|
mut n := 0
|
||||||
if args.len == 2 {
|
if os.args.len == 2 {
|
||||||
n = strconv.atoi(args[1])
|
n = strconv.atoi(os.args[1])
|
||||||
} else {
|
} else {
|
||||||
n = 0
|
n = 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue