Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/ci/run-tests.py
3069 views
1
#!/usr/bin/env python3
2
3
# Excludes:
4
#
5
# - test-programs: just programs used in tests.
6
#
7
# - wasmtime-wasi-nn: mutually-exclusive features that aren't available for all
8
# targets, needs its own CI job.
9
#
10
# - wasmtime-wasi-tls-nativetls: the openssl dependency does not play nice with
11
# cross compilation. This crate is tested in a separate CI job.
12
#
13
# - wasmtime-wasi-tls-openssl: the openssl dependency does not play nice with
14
# cross compilation. This crate is tested in a separate CI job.
15
#
16
# - wasmtime-fuzzing: enabling all features brings in OCaml which is a pain to
17
# configure for all targets, so it has its own CI job.
18
#
19
# - wasm-spec-interpreter: brings in OCaml which is a pain to configure for all
20
# targets, tested as part of the wastime-fuzzing CI job.
21
#
22
# - calculator (under examples/wasip2-plugins): an example that's tested separately.
23
#
24
# - veri_engine: requires an SMT solver (z3)
25
26
import subprocess
27
import sys
28
29
args = ['cargo', 'test', '--workspace', '--all-features']
30
args.append('--exclude=test-programs')
31
args.append('--exclude=wasmtime-wasi-nn')
32
args.append('--exclude=wasmtime-wasi-tls-nativetls')
33
args.append('--exclude=wasmtime-wasi-tls-openssl')
34
args.append('--exclude=wasmtime-fuzzing')
35
args.append('--exclude=wasm-spec-interpreter')
36
args.append('--exclude=veri_engine')
37
args.append('--exclude=calculator')
38
args.extend(sys.argv[1:])
39
40
result = subprocess.run(args)
41
sys.exit(result.returncode)
42
43