21 lines · plain
1# Check recursive diff ("diff -r").2 3# Create two directories for further comparison.4# RUN: rm -rf %t/dir1 %t/dir25# RUN: mkdir -p %t/dir1 %t/dir26 7# Create same files in both of the dirs.8# RUN: echo "hello" > %t/dir1/f19# RUN: echo "hello" > %t/dir2/f110 11# Create same subdirectories with same contents.12# RUN: mkdir -p %t/dir1/subdir %t/dir2/subdir13# RUN: echo "12345" > %t/dir1/subdir/f0114# RUN: echo "12345" > %t/dir2/subdir/f0115# RUN: echo -e "xxx\nzzz\nyyy" > %t/dir1/subdir/f0216# RUN: echo -e "xxx\nzzz\nyyy" > %t/dir2/subdir/f0217 18# Create empty subdirectories with same names.19# RUN: mkdir -p %t/dir1/empty_subdir %t/dir2/empty_subdir20# RUN: diff -r %t/dir1 %t/dir221