4 ; Comments are preserved.
12 # RUN: split-file --leading-lines %s %t
13 # RUN: diff %S/Inputs/basic-aa.txt %t/aa
14 # RUN: diff %S/Inputs/basic-bb.txt %t/bb
15 # RUN: diff %S/Inputs/basic-cc.txt %t/subdir/cc
16 # RUN: FileCheck %s --check-prefix=END < %t/end
18 ## Can be called on a non-empty directory.
19 # RUN: split-file --leading-lines %s %t
20 # RUN: diff %S/Inputs/basic-aa.txt %t/aa
22 ## Test that we will delete the output if it is a file, so that we can create
24 # RUN: rm -rf %t && touch %t
25 # RUN: split-file --leading-lines %s %t
26 # RUN: diff %S/Inputs/basic-aa.txt %t/aa
28 # END: RUN: split-file %s %t
30 # RUN: not %split-file 2>&1 | FileCheck %s --check-prefix=NO_INPUT
32 # NO_INPUT: split-file: error: input filename is not specified
34 # RUN: not %split-file %s '' 2>&1 | FileCheck %s --check-prefix=NO_OUTPUT
36 # NO_OUTPUT: split-file: error: output directory is not specified
38 # RUN: not %split-file %S/Inputs/basic-aa.txt %t 2>&1 | FileCheck %s --check-prefix=NOT_EXIST
40 # NOT_EXIST: split-file: error: {{.*}}.txt: no part separator was found