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

gen.golang: skip tests only on ubuntu-docker-musl

This commit is contained in:
Joe Conigliaro 2022-06-29 21:11:28 +10:00
parent 86549feafa
commit c3866bb7b1
No known key found for this signature in database
GPG Key ID: C12F7136C08206F1
3 changed files with 6 additions and 6 deletions

View File

@ -26,7 +26,6 @@ jobs:
sudo apt-get update
sudo apt-get install --quiet -y libssl-dev sqlite3 libsqlite3-dev valgrind
sudo apt-get install --quiet -y libfreetype6-dev libxi-dev libxcursor-dev libgl-dev
sudo apt-get install --quiet -y golang-go
## The following is needed for examples/wkhtmltopdf.v
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb
sudo apt-get install --quiet -y xfonts-75dpi xfonts-base
@ -85,8 +84,6 @@ jobs:
run: ./v tutorials/building_a_simple_web_blog_with_vweb/code/blog
- name: Build cmd/tools/fast
run: cd cmd/tools/fast && ../../../v fast.v && ./fast
- name: Test Go backend
run: ./v vlib/v/gen/golang/tests/golang_test.v
- name: V self compilation with -usecache
run: |
unset VFLAGS

View File

@ -90,7 +90,6 @@ const (
'vlib/context/deadline_test.v' /* sometimes blocks */,
'vlib/mysql/mysql_orm_test.v' /* mysql not installed */,
'vlib/pg/pg_orm_test.v' /* pg not installed */,
'vlib/v/gen/golang/tests/golang_test.v' /* we will manually run this on only ubuntu-tcc for now */,
]
skip_fsanitize_too_slow = [
// These tests are too slow to be run in the CI on each PR/commit

View File

@ -2,12 +2,16 @@ import os
import benchmark
import term
const github_job = os.getenv('GITHUB_JOB')
const is_verbose = os.getenv('VTEST_SHOW_CMD') != ''
// TODO some logic copy pasted from valgrind_test.v and compiler_test.v, move to a module
fn test_golang() {
$if arm64 {
return
// this was failing on ubuntu-docker-musl, skip it for now
if testing.github_job == 'ubuntu-docker-musl' {
eprintln('Skipping Go tests')
exit(0)
}
mut bench := benchmark.new_benchmark()
vexe := os.getenv('VEXE')