1 # Check recursive diff ("diff -r").
3 # Create two directories for further comparison.
4 # RUN: rm -rf %t/dir1 %t/dir2
5 # RUN: mkdir -p %t/dir1 %t/dir2
7 # Create same files in both of the dirs.
8 # RUN: echo "hello" > %t/dir1/f1
9 # RUN: echo "hello" > %t/dir2/f1
11 # Create same subdirectories with same contents.
12 # RUN: mkdir -p %t/dir1/subdir %t/dir2/subdir
13 # RUN: echo "12345" > %t/dir1/subdir/f01
14 # RUN: echo "12345" > %t/dir2/subdir/f01
15 # RUN: echo -e "xxx\nzzz\nyyy" > %t/dir1/subdir/f02
16 # RUN: echo -e "xxx\nzzz\nyyy" > %t/dir2/subdir/f02
18 # Create empty subdirectories with same names.
19 # RUN: mkdir -p %t/dir1/empty_subdir %t/dir2/empty_subdir
20 # RUN: diff -r %t/dir1 %t/dir2