brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · b47aeb1 Raw
41 lines · plain
1#--- aa2aa3;--- bb4; Comments are preserved.5bb6 7//--- subdir/cc8cc9//--- end10 11# RUN: rm -rf %t12# RUN: split-file --leading-lines %s %t13# RUN: diff %S/Inputs/basic-aa.txt %t/aa14# RUN: diff %S/Inputs/basic-bb.txt %t/bb15# RUN: diff %S/Inputs/basic-cc.txt %t/subdir/cc16# RUN: FileCheck %s --check-prefix=END < %t/end17 18## Can be called on a non-empty directory.19# RUN: split-file --leading-lines %s %t20# RUN: diff %S/Inputs/basic-aa.txt %t/aa21 22## Test that we will delete the output if it is a file, so that we can create23## a directory.24# RUN: rm -rf %t && touch %t25# RUN: split-file --leading-lines %s %t26# RUN: diff %S/Inputs/basic-aa.txt %t/aa27 28# END: RUN: split-file %s %t29 30# RUN: not %split-file 2>&1 | FileCheck %s --check-prefix=NO_INPUT31 32# NO_INPUT: split-file: error: input filename is not specified33 34# RUN: not %split-file %s '' 2>&1 | FileCheck %s --check-prefix=NO_OUTPUT35 36# NO_OUTPUT: split-file: error: output directory is not specified37 38# RUN: not %split-file %S/Inputs/basic-aa.txt %t 2>&1 | FileCheck %s --check-prefix=NOT_EXIST39 40# NOT_EXIST: split-file: error: {{.*}}.txt: no part separator was found41