coreutils/tests/test_ptx.rs

49 lines
1.4 KiB
Rust
Raw Normal View History

use common::util::*;
2015-05-30 07:34:23 +00:00
static UTIL_NAME: &'static str = "ptx";
fn new_ucmd() -> UCommand {
TestScenario::new(UTIL_NAME).ucmd()
}
2015-05-30 07:34:23 +00:00
#[test]
fn gnu_ext_disabled_roff_no_ref() {
new_ucmd().args(&["-G", "-R", "input"])
.succeeds().stdout_only_fixture("gnu_ext_disabled_roff_no_ref.expected");
2015-05-30 07:34:23 +00:00
}
#[test]
fn gnu_ext_disabled_roff_input_ref() {
new_ucmd().args(&["-G", "-r", "-R", "input"])
.succeeds().stdout_only_fixture("gnu_ext_disabled_roff_input_ref.expected");
2015-05-30 07:34:23 +00:00
}
#[test]
fn gnu_ext_disabled_roff_auto_ref() {
new_ucmd().args(&["-G", "-A", "-R", "input"])
.succeeds().stdout_only_fixture("gnu_ext_disabled_roff_auto_ref.expected");
2015-05-30 07:34:23 +00:00
}
#[test]
fn gnu_ext_disabled_tex_no_ref() {
new_ucmd().args(&["-G", "-T", "-R", "input"])
.succeeds().stdout_only_fixture("gnu_ext_disabled_tex_no_ref.expected");
2015-05-30 07:34:23 +00:00
}
#[test]
fn gnu_ext_disabled_tex_input_ref() {
new_ucmd().args(&["-G", "-T", "-r", "-R", "input"])
.succeeds().stdout_only_fixture("gnu_ext_disabled_tex_input_ref.expected");
2015-05-30 07:34:23 +00:00
}
#[test]
fn gnu_ext_disabled_tex_auto_ref() {
new_ucmd().args(&["-G", "-T", "-A", "-R", "input"])
.succeeds().stdout_only_fixture("gnu_ext_disabled_tex_auto_ref.expected");
2015-05-30 07:34:23 +00:00
}
#[test]
fn gnu_ext_disabled_ignore_and_only_file() {
new_ucmd().args(&["-G", "-o", "only", "-i", "ignore", "input"])
.succeeds().stdout_only_fixture("gnu_ext_disabled_ignore_and_only_file.expected");
}