From 37ea44a540ffd552bc8fdebb99d8ad8845f9bb4f Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 31 Dec 2018 10:22:39 +0100 Subject: [PATCH] add another catart test --- tests/catar.rs | 2 ++ tests/catar_data/test_files_and_subdirs/a-test-symlink | 1 + tests/catar_data/test_files_and_subdirs/file1 | 1 + tests/catar_data/test_files_and_subdirs/file2 | 1 + tests/catar_data/test_files_and_subdirs/subdir1/subfile1 | 1 + tests/catar_data/test_files_and_subdirs/subdir1/subfile2 | 1 + 6 files changed, 7 insertions(+) create mode 120000 tests/catar_data/test_files_and_subdirs/a-test-symlink create mode 100644 tests/catar_data/test_files_and_subdirs/file1 create mode 100644 tests/catar_data/test_files_and_subdirs/file2 create mode 100644 tests/catar_data/test_files_and_subdirs/subdir1/subfile1 create mode 100644 tests/catar_data/test_files_and_subdirs/subdir1/subfile2 diff --git a/tests/catar.rs b/tests/catar.rs index a55ff5c3..6b274ce0 100644 --- a/tests/catar.rs +++ b/tests/catar.rs @@ -48,6 +48,8 @@ fn run_all_tests() -> Result<(), Error> { run_test("tests/catar_data/test_goodbye_sort_order")?; + run_test("tests/catar_data/test_files_and_subdirs")?; + Ok(()) } diff --git a/tests/catar_data/test_files_and_subdirs/a-test-symlink b/tests/catar_data/test_files_and_subdirs/a-test-symlink new file mode 120000 index 00000000..30d67d46 --- /dev/null +++ b/tests/catar_data/test_files_and_subdirs/a-test-symlink @@ -0,0 +1 @@ +file2 \ No newline at end of file diff --git a/tests/catar_data/test_files_and_subdirs/file1 b/tests/catar_data/test_files_and_subdirs/file1 new file mode 100644 index 00000000..5da849b5 --- /dev/null +++ b/tests/catar_data/test_files_and_subdirs/file1 @@ -0,0 +1 @@ +ABC diff --git a/tests/catar_data/test_files_and_subdirs/file2 b/tests/catar_data/test_files_and_subdirs/file2 new file mode 100644 index 00000000..ff8d790f --- /dev/null +++ b/tests/catar_data/test_files_and_subdirs/file2 @@ -0,0 +1 @@ +CDEFG diff --git a/tests/catar_data/test_files_and_subdirs/subdir1/subfile1 b/tests/catar_data/test_files_and_subdirs/subdir1/subfile1 new file mode 100644 index 00000000..aff399b3 --- /dev/null +++ b/tests/catar_data/test_files_and_subdirs/subdir1/subfile1 @@ -0,0 +1 @@ +test subdir1 content diff --git a/tests/catar_data/test_files_and_subdirs/subdir1/subfile2 b/tests/catar_data/test_files_and_subdirs/subdir1/subfile2 new file mode 100644 index 00000000..884d08c6 --- /dev/null +++ b/tests/catar_data/test_files_and_subdirs/subdir1/subfile2 @@ -0,0 +1 @@ +another test subdir1 content