xref: /wasmtime-44.0.1/ci/run-tests.py (revision 134d56e7)
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: the openssl dependency does not play nice with
11#   cross compilation. This crate is tested in a separate CI job.
12#
13# - wasmtime-fuzzing: enabling all features brings in OCaml which is a pain to
14#   configure for all targets, so it has its own CI job.
15#
16# - wasm-spec-interpreter: brings in OCaml which is a pain to configure for all
17#   targets, tested as part of the wastime-fuzzing CI job.
18#
19# - calculator (under examples/wasip2-plugins): an example that's tested separately.
20#
21# - veri_engine: requires an SMT solver (z3)
22
23import subprocess
24import sys
25
26args = ['cargo', 'test', '--workspace', '--all-features']
27args.append('--exclude=test-programs')
28args.append('--exclude=wasmtime-wasi-nn')
29args.append('--exclude=wasmtime-wasi-tls')
30args.append('--exclude=wasmtime-fuzzing')
31args.append('--exclude=wasm-spec-interpreter')
32args.append('--exclude=veri_engine')
33args.append('--exclude=calculator')
34args.extend(sys.argv[1:])
35
36result = subprocess.run(args)
37sys.exit(result.returncode)
38