a small "v test v" fix
parent
cb2db3170e
commit
ae171ec28e
|
@ -3,7 +3,7 @@ on: [push, pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
alpine-docker-musl-gcc:
|
alpine-docker-musl-gcc:
|
||||||
name: Alpine/musl
|
name: alpine-musl
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
|
@ -78,6 +78,15 @@ jobs:
|
||||||
run: ./v test v
|
run: ./v test v
|
||||||
|
|
||||||
|
|
||||||
|
macos-prebuilt:
|
||||||
|
runs-on: macOS-10.14
|
||||||
|
steps:
|
||||||
|
- name: Download V
|
||||||
|
run: wget https://github.com/vbinaries/vbinaries/releases/download/latest/v_macos.zip && unzip v_macos.zip && ./v --version
|
||||||
|
- name: Test V
|
||||||
|
run: ./v test v
|
||||||
|
|
||||||
|
|
||||||
ubuntu-tcc:
|
ubuntu-tcc:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -95,7 +95,7 @@ pub fn (ts mut TestSession) test() {
|
||||||
}
|
}
|
||||||
$if tinyc {
|
$if tinyc {
|
||||||
if file.contains('asm') { continue }
|
if file.contains('asm') { continue }
|
||||||
}
|
}
|
||||||
tmpc_filepath := file.replace('.v', '.tmp.c')
|
tmpc_filepath := file.replace('.v', '.tmp.c')
|
||||||
|
|
||||||
cmd := '"$ts.vexe" $ts.vargs "$file"'
|
cmd := '"$ts.vexe" $ts.vargs "$file"'
|
||||||
|
@ -142,18 +142,22 @@ pub fn v_test_v(args_before_test string){
|
||||||
println('vlib/ is missing, it must be next to the V executable')
|
println('vlib/ is missing, it must be next to the V executable')
|
||||||
exit(1)
|
exit(1)
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
if !os.file_exists(parent_dir + '/v.v') {
|
if !os.file_exists(parent_dir + '/v.v') {
|
||||||
println('v.v is missing, it must be next to the V executable')
|
println('v.v is missing, it must be next to the V executable')
|
||||||
exit(1)
|
exit(1)
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
// Make sure v.c can be compiled without warnings
|
// Make sure v.c can be compiled without warnings
|
||||||
$if mac {
|
$if mac {
|
||||||
os.system('$vexe -o v.c v.v')
|
if os.file_exists('/v.v') {
|
||||||
if os.system('cc -Werror v.c') != 0 {
|
os.system('$vexe -o v.c v.v')
|
||||||
println('cc failed to build v.c without warnings')
|
if os.system('cc -Werror v.c') != 0 {
|
||||||
exit(1)
|
println('cc failed to build v.c without warnings')
|
||||||
|
exit(1)
|
||||||
|
}
|
||||||
|
println('v.c can be compiled without warnings. This is good :)')
|
||||||
}
|
}
|
||||||
println('v.c can be compiled without warnings. This is good :)')
|
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
println('Testing...')
|
println('Testing...')
|
||||||
|
|
Loading…
Reference in New Issue