xref: /wasmtime-44.0.1/ci/run-tests.py (revision bfcf4e3f)
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
26import subprocess
27import sys
28
29args = ['cargo', 'test', '--workspace', '--all-features']
30args.append('--exclude=test-programs')
31args.append('--exclude=wasmtime-wasi-nn')
32args.append('--exclude=wasmtime-wasi-tls-nativetls')
33args.append('--exclude=wasmtime-wasi-tls-openssl')
34args.append('--exclude=wasmtime-fuzzing')
35args.append('--exclude=wasm-spec-interpreter')
36args.append('--exclude=veri_engine')
37args.append('--exclude=calculator')
38args.extend(sys.argv[1:])
39
40result = subprocess.run(args)
41sys.exit(result.returncode)
42