From 96fab71cc42ab5c2c2f27a67bd78622e3d930afb Mon Sep 17 00:00:00 2001 From: Stanislav Pankevich Date: Thu, 21 Nov 2019 20:01:19 +0100 Subject: [PATCH] Test: options/--strict-whitespace/02_check_has_mixed_spaces_and_tabs/ --- .../filecheck.check | 0 .../filecheck.input | 0 .../sample.itest | 0 .../filecheck.check | 1 + .../filecheck.input | 1 + .../sample.itest | 15 +++++++++++++++ 6 files changed, 17 insertions(+) rename tests/integration/tests/options/--strict-whitespace/{02-positive_match => 01_input_has_mixed_spaces_and_tabs}/filecheck.check (100%) rename tests/integration/tests/options/--strict-whitespace/{02-positive_match => 01_input_has_mixed_spaces_and_tabs}/filecheck.input (100%) rename tests/integration/tests/options/--strict-whitespace/{02-positive_match => 01_input_has_mixed_spaces_and_tabs}/sample.itest (100%) create mode 100644 tests/integration/tests/options/--strict-whitespace/02_check_has_mixed_spaces_and_tabs/filecheck.check create mode 100644 tests/integration/tests/options/--strict-whitespace/02_check_has_mixed_spaces_and_tabs/filecheck.input create mode 100644 tests/integration/tests/options/--strict-whitespace/02_check_has_mixed_spaces_and_tabs/sample.itest diff --git a/tests/integration/tests/options/--strict-whitespace/02-positive_match/filecheck.check b/tests/integration/tests/options/--strict-whitespace/01_input_has_mixed_spaces_and_tabs/filecheck.check similarity index 100% rename from tests/integration/tests/options/--strict-whitespace/02-positive_match/filecheck.check rename to tests/integration/tests/options/--strict-whitespace/01_input_has_mixed_spaces_and_tabs/filecheck.check diff --git a/tests/integration/tests/options/--strict-whitespace/02-positive_match/filecheck.input b/tests/integration/tests/options/--strict-whitespace/01_input_has_mixed_spaces_and_tabs/filecheck.input similarity index 100% rename from tests/integration/tests/options/--strict-whitespace/02-positive_match/filecheck.input rename to tests/integration/tests/options/--strict-whitespace/01_input_has_mixed_spaces_and_tabs/filecheck.input diff --git a/tests/integration/tests/options/--strict-whitespace/02-positive_match/sample.itest b/tests/integration/tests/options/--strict-whitespace/01_input_has_mixed_spaces_and_tabs/sample.itest similarity index 100% rename from tests/integration/tests/options/--strict-whitespace/02-positive_match/sample.itest rename to tests/integration/tests/options/--strict-whitespace/01_input_has_mixed_spaces_and_tabs/sample.itest diff --git a/tests/integration/tests/options/--strict-whitespace/02_check_has_mixed_spaces_and_tabs/filecheck.check b/tests/integration/tests/options/--strict-whitespace/02_check_has_mixed_spaces_and_tabs/filecheck.check new file mode 100644 index 0000000..0b8daea --- /dev/null +++ b/tests/integration/tests/options/--strict-whitespace/02_check_has_mixed_spaces_and_tabs/filecheck.check @@ -0,0 +1 @@ +; CHECK: hello world hello world diff --git a/tests/integration/tests/options/--strict-whitespace/02_check_has_mixed_spaces_and_tabs/filecheck.input b/tests/integration/tests/options/--strict-whitespace/02_check_has_mixed_spaces_and_tabs/filecheck.input new file mode 100644 index 0000000..235735d --- /dev/null +++ b/tests/integration/tests/options/--strict-whitespace/02_check_has_mixed_spaces_and_tabs/filecheck.input @@ -0,0 +1 @@ +hello world hello world diff --git a/tests/integration/tests/options/--strict-whitespace/02_check_has_mixed_spaces_and_tabs/sample.itest b/tests/integration/tests/options/--strict-whitespace/02_check_has_mixed_spaces_and_tabs/sample.itest new file mode 100644 index 0000000..da30e46 --- /dev/null +++ b/tests/integration/tests/options/--strict-whitespace/02_check_has_mixed_spaces_and_tabs/sample.itest @@ -0,0 +1,15 @@ +; RUN: cat %S/filecheck.input | %FILECHECK_EXEC %S/filecheck.check | %FILECHECK_TESTER_EXEC %s --match-full-lines -check-prefix=NO_OPTION +; RUN: cat %S/filecheck.input | (%FILECHECK_EXEC %S/filecheck.check --strict-whitespace 2>&1; test $? = 1) | %FILECHECK_TESTER_EXEC %s --strict-whitespace --match-full-lines -check-prefix=OPTION + +; NO_OPTION: {{^.*}}FileCheck{{$}} +; NO_OPTION-EMPTY: + +; OPTION:{{^.*}}FileCheck{{$}} +; OPTION:{{^.*}}filecheck.check:1:10: error: CHECK: expected string not found in input{{$}} +; OPTION:; CHECK: hello world hello world +; OPTION: ^ +; OPTION:{{^:.*:.*: note: scanning from here$}} +; OPTION:hello world hello world +; OPTION:^ +; TODO: error: OPTION-EMPTY is not on the line after the previous match +; OPTION-EMPTY