Skip to content

Commit c54e926

Browse files
authored
integration tests (#121)
* Migrate cli test to integration test * Move test files to temp dirs * Migrate sandbox test * Migrate matrix-math test * Migrate http example test and test output * Check hash-all endpoint, and fix poll loop calls * Migrate TCP example * ci: move wasmtime cli installation earlier * Looser match for hash return value * Move cli lint to rust test * Migrate linting of http bindings * Migrate tcp linting * Move sandbox linting * Move matrix math linting * Fix venv invocation on windows * Make http hash test more resilient * Try less relative paths for running venv executables * Manually join all path dirs * Try conditionally looking which directory these live in * Handle different line endings in output * Fix line ending issue and only run tcp example on unix systems
1 parent 707b508 commit c54e926

File tree

8 files changed

+747
-165
lines changed

8 files changed

+747
-165
lines changed

.github/workflows/lint_examples.sh

Lines changed: 0 additions & 42 deletions
This file was deleted.

.github/workflows/test.yaml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -79,20 +79,14 @@ jobs:
7979
shell: bash
8080
run: bash .github/workflows/lint.sh
8181

82-
- name: Test
83-
shell: bash
84-
run: COMPONENTIZE_PY_TEST_COUNT=20 PROPTEST_MAX_SHRINK_ITERS=0 cargo test --release
85-
8682
- uses: taiki-e/install-action@v2
8783
with:
8884
tool: wasmtime-cli
85+
8986
- uses: actions/setup-python@v5
9087
with:
9188
python-version: "3.12"
92-
- run: pip install wasmtime mypy
93-
- name: Test examples
94-
shell: bash
95-
run: bash .github/workflows/test_examples.sh
96-
- name: Lint examples
89+
90+
- name: Test
9791
shell: bash
98-
run: bash .github/workflows/lint_examples.sh
92+
run: COMPONENTIZE_PY_TEST_COUNT=20 PROPTEST_MAX_SHRINK_ITERS=0 cargo test --release

.github/workflows/test_examples.sh

Lines changed: 0 additions & 37 deletions
This file was deleted.

Cargo.lock

Lines changed: 99 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@ toml = "0.8.19"
4949
semver = "1.0.23"
5050

5151
[dev-dependencies]
52-
proptest = "1.5.0"
52+
assert_cmd = "2.0.16"
53+
fs_extra = "1.3.0"
5354
hex = "0.4.3"
55+
predicates = "3.1.2"
56+
proptest = "1.5.0"
5457
tempfile = "3.13.0"
5558

5659
[build-dependencies]

0 commit comments

Comments
 (0)