()
| 787 | #[test] |
| 788 | #[cfg_attr(not(feature = "component-model"), ignore)] |
| 789 | fn component_enabled_by_default() -> Result<()> { |
| 790 | let path = "tests/all/cli_tests/component-basic.wat"; |
| 791 | let wasm = build_wasm(path)?; |
| 792 | let output = get_wasmtime_command()? |
| 793 | .arg("-Ccache=n") |
| 794 | .arg(wasm.path()) |
| 795 | .output()?; |
| 796 | assert!(output.status.success()); |
| 797 | |
| 798 | // also tests with raw *.wat input |
| 799 | let output = get_wasmtime_command()? |
| 800 | .arg("-Ccache=n") |
| 801 | .arg(path) |
| 802 | .output()?; |
| 803 | assert!(output.status.success()); |
| 804 | |
| 805 | Ok(()) |
| 806 | } |
| 807 | |
| 808 | // If the text format is invalid then the filename should be mentioned in the |
| 809 | // error message. |
nothing calls this directly
no test coverage detected