Max Moroz 975eacada5 [lit] Implement "-r" option for builtin "diff" command + a test using that.
Summary:
That would allow to recursively compare directories in tests using
"diff -r" on Windows in a similar way as it can be done on Linux or Mac.

Reviewers: zturner, morehouse, vsk

Reviewed By: zturner

Subscribers: kcc, llvm-commits

Differential Revision: https://reviews.llvm.org/D41776

llvm-svn: 322102
2018-01-09 18:23:34 +00:00

9 lines
274 B
Plaintext

# Create two directories for further comparison.
# RUN: rm -rf %t/dir1 %t/dir2
# RUN: mkdir -p %t/dir1 %t/dir2
# Add two empty files with different names, "diff -r" should fail.
# RUN: touch %t/dir1/dir1unique
# RUN: touch %t/dir2/dir2unique
# RUN: diff -r %t/dir1 %t/dir2