mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-05 02:55:31 +00:00
Run tests on every target
This commit is contained in:
parent
0231a50e90
commit
23936c3d2c
2
.github/workflows/build-and-test.yml
vendored
2
.github/workflows/build-and-test.yml
vendored
@ -48,7 +48,6 @@ jobs:
|
||||
- target: aarch64-pc-windows-msvc
|
||||
os: windows-latest
|
||||
ext: .exe
|
||||
skip-test: true
|
||||
|
||||
- target: x86_64-unknown-linux-gnu
|
||||
os: ubuntu-latest
|
||||
@ -80,7 +79,6 @@ jobs:
|
||||
rustup toolchain install stable nightly --profile minimal -t ${{ matrix.target }}
|
||||
|
||||
- name: Test on stable
|
||||
if: ${{ ! matrix.skip-test }}
|
||||
run: |
|
||||
${{ env.CARGO }} +stable test --target ${{ matrix.target }} $EXTRA_CARGO_FLAGS
|
||||
|
||||
|
12
tests/ui.rs
12
tests/ui.rs
@ -8,12 +8,8 @@ mod utils;
|
||||
|
||||
use std::{io, path::Path, process::Output};
|
||||
|
||||
#[cfg(not(windows))]
|
||||
use insta::assert_display_snapshot as ui;
|
||||
|
||||
// Don't run these on Windows
|
||||
#[cfg(windows)]
|
||||
use self::ignore as ui;
|
||||
use crate::utils::run_in;
|
||||
|
||||
fn testdir() -> io::Result<(tempfile::TempDir, &'static Path)> {
|
||||
@ -114,11 +110,3 @@ fn ui_test_usage_help_flag() {
|
||||
ui!(output_to_string(ouch!("--help")));
|
||||
ui!(output_to_string(ouch!("-h")));
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
#[macro_export]
|
||||
macro_rules! ignore {
|
||||
($expr:expr) => {{
|
||||
$expr
|
||||
}};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user