diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2015-04-07 17:40:33 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-04-10 12:32:32 (GMT) |
commit | 6c4781baa9ea4cfb7b4de9ef91e58888286fab44 (patch) | |
tree | 992b9334ad833f69543702c50d1166ff1b2c06e4 /Tests/RunCMake/CommandLine | |
parent | fd04d87323749c15969982d9aa9b72059f33463b (diff) | |
download | CMake-6c4781baa9ea4cfb7b4de9ef91e58888286fab44.zip CMake-6c4781baa9ea4cfb7b4de9ef91e58888286fab44.tar.gz CMake-6c4781baa9ea4cfb7b4de9ef91e58888286fab44.tar.bz2 |
Tests: Consolidate, refactor and extend -E tar tests
Diffstat (limited to 'Tests/RunCMake/CommandLine')
22 files changed, 0 insertions, 40 deletions
diff --git a/Tests/RunCMake/CommandLine/E_tar-bad-format-result.txt b/Tests/RunCMake/CommandLine/E_tar-bad-format-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/CommandLine/E_tar-bad-format-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/CommandLine/E_tar-bad-format-stderr.txt b/Tests/RunCMake/CommandLine/E_tar-bad-format-stderr.txt deleted file mode 100644 index fe9e2dc..0000000 --- a/Tests/RunCMake/CommandLine/E_tar-bad-format-stderr.txt +++ /dev/null @@ -1 +0,0 @@ -CMake Error: Unknown -E tar --format= argument: bad-format diff --git a/Tests/RunCMake/CommandLine/E_tar-bad-from1-result.txt b/Tests/RunCMake/CommandLine/E_tar-bad-from1-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/CommandLine/E_tar-bad-from1-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/CommandLine/E_tar-bad-from1-stderr.txt b/Tests/RunCMake/CommandLine/E_tar-bad-from1-stderr.txt deleted file mode 100644 index d67431d..0000000 --- a/Tests/RunCMake/CommandLine/E_tar-bad-from1-stderr.txt +++ /dev/null @@ -1 +0,0 @@ -^CMake Error: -E tar --files-from= file 'bad' not found$ diff --git a/Tests/RunCMake/CommandLine/E_tar-bad-from2-result.txt b/Tests/RunCMake/CommandLine/E_tar-bad-from2-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/CommandLine/E_tar-bad-from2-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/CommandLine/E_tar-bad-from2-stderr.txt b/Tests/RunCMake/CommandLine/E_tar-bad-from2-stderr.txt deleted file mode 100644 index d1d278c..0000000 --- a/Tests/RunCMake/CommandLine/E_tar-bad-from2-stderr.txt +++ /dev/null @@ -1 +0,0 @@ -^CMake Error: -E tar --files-from= file '\.' is a directory$ diff --git a/Tests/RunCMake/CommandLine/E_tar-bad-from3-result.txt b/Tests/RunCMake/CommandLine/E_tar-bad-from3-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/CommandLine/E_tar-bad-from3-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/CommandLine/E_tar-bad-from3-stderr.txt b/Tests/RunCMake/CommandLine/E_tar-bad-from3-stderr.txt deleted file mode 100644 index 147bd80..0000000 --- a/Tests/RunCMake/CommandLine/E_tar-bad-from3-stderr.txt +++ /dev/null @@ -1,2 +0,0 @@ -^CMake Error: -E tar --files-from='.*/Tests/RunCMake/CommandLine/E_tar-bad-from3.txt' file invalid line: --add-file=option-typo$ diff --git a/Tests/RunCMake/CommandLine/E_tar-bad-from3.txt b/Tests/RunCMake/CommandLine/E_tar-bad-from3.txt deleted file mode 100644 index 5bad1c3..0000000 --- a/Tests/RunCMake/CommandLine/E_tar-bad-from3.txt +++ /dev/null @@ -1 +0,0 @@ --add-file=option-typo diff --git a/Tests/RunCMake/CommandLine/E_tar-bad-from4-result.txt b/Tests/RunCMake/CommandLine/E_tar-bad-from4-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/CommandLine/E_tar-bad-from4-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/CommandLine/E_tar-bad-from4-stderr.txt b/Tests/RunCMake/CommandLine/E_tar-bad-from4-stderr.txt deleted file mode 100644 index 1417d4d..0000000 --- a/Tests/RunCMake/CommandLine/E_tar-bad-from4-stderr.txt +++ /dev/null @@ -1,2 +0,0 @@ -^CMake Error: archive_read_disk_entry_from_file 'does-not-exist':.* -CMake Error: Problem creating tar: bad.tar$ diff --git a/Tests/RunCMake/CommandLine/E_tar-bad-from4.txt b/Tests/RunCMake/CommandLine/E_tar-bad-from4.txt deleted file mode 100644 index 4b97f79..0000000 --- a/Tests/RunCMake/CommandLine/E_tar-bad-from4.txt +++ /dev/null @@ -1,2 +0,0 @@ - -does-not-exist diff --git a/Tests/RunCMake/CommandLine/E_tar-bad-from5-result.txt b/Tests/RunCMake/CommandLine/E_tar-bad-from5-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/CommandLine/E_tar-bad-from5-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/CommandLine/E_tar-bad-from5-stderr.txt b/Tests/RunCMake/CommandLine/E_tar-bad-from5-stderr.txt deleted file mode 100644 index 1417d4d..0000000 --- a/Tests/RunCMake/CommandLine/E_tar-bad-from5-stderr.txt +++ /dev/null @@ -1,2 +0,0 @@ -^CMake Error: archive_read_disk_entry_from_file 'does-not-exist':.* -CMake Error: Problem creating tar: bad.tar$ diff --git a/Tests/RunCMake/CommandLine/E_tar-bad-from5.txt b/Tests/RunCMake/CommandLine/E_tar-bad-from5.txt deleted file mode 100644 index 9ea755b..0000000 --- a/Tests/RunCMake/CommandLine/E_tar-bad-from5.txt +++ /dev/null @@ -1,2 +0,0 @@ - ---add-file=does-not-exist diff --git a/Tests/RunCMake/CommandLine/E_tar-bad-mtime1-result.txt b/Tests/RunCMake/CommandLine/E_tar-bad-mtime1-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/CommandLine/E_tar-bad-mtime1-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/CommandLine/E_tar-bad-mtime1-stderr.txt b/Tests/RunCMake/CommandLine/E_tar-bad-mtime1-stderr.txt deleted file mode 100644 index ca925f1..0000000 --- a/Tests/RunCMake/CommandLine/E_tar-bad-mtime1-stderr.txt +++ /dev/null @@ -1,2 +0,0 @@ -^CMake Error: unable to parse mtime 'bad' -CMake Error: Problem creating tar: bad.tar$ diff --git a/Tests/RunCMake/CommandLine/E_tar-bad-opt1-result.txt b/Tests/RunCMake/CommandLine/E_tar-bad-opt1-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/CommandLine/E_tar-bad-opt1-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/CommandLine/E_tar-bad-opt1-stderr.txt b/Tests/RunCMake/CommandLine/E_tar-bad-opt1-stderr.txt deleted file mode 100644 index 35133c8..0000000 --- a/Tests/RunCMake/CommandLine/E_tar-bad-opt1-stderr.txt +++ /dev/null @@ -1 +0,0 @@ -^CMake Error: Unknown option to -E tar: --bad$ diff --git a/Tests/RunCMake/CommandLine/E_tar-end-opt1-result.txt b/Tests/RunCMake/CommandLine/E_tar-end-opt1-result.txt deleted file mode 100644 index d00491f..0000000 --- a/Tests/RunCMake/CommandLine/E_tar-end-opt1-result.txt +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/Tests/RunCMake/CommandLine/E_tar-end-opt1-stderr.txt b/Tests/RunCMake/CommandLine/E_tar-end-opt1-stderr.txt deleted file mode 100644 index 1fddf6d..0000000 --- a/Tests/RunCMake/CommandLine/E_tar-end-opt1-stderr.txt +++ /dev/null @@ -1,2 +0,0 @@ -^CMake Error: archive_read_disk_entry_from_file '--bad':.* -CMake Error: Problem creating tar: bad.tar$ diff --git a/Tests/RunCMake/CommandLine/RunCMakeTest.cmake b/Tests/RunCMake/CommandLine/RunCMakeTest.cmake index e3942a8..f879ee6 100644 --- a/Tests/RunCMake/CommandLine/RunCMakeTest.cmake +++ b/Tests/RunCMake/CommandLine/RunCMakeTest.cmake @@ -1,17 +1,5 @@ include(RunCMake) -run_cmake_command(E_tar-bad-opt1 ${CMAKE_COMMAND} -E tar cvf bad.tar --bad) -run_cmake_command(E_tar-bad-mtime1 ${CMAKE_COMMAND} -E tar cvf bad.tar --mtime=bad .) -run_cmake_command(E_tar-bad-from1 ${CMAKE_COMMAND} -E tar cvf bad.tar --files-from=bad) -run_cmake_command(E_tar-bad-from2 ${CMAKE_COMMAND} -E tar cvf bad.tar --files-from=.) -run_cmake_command(E_tar-bad-from3 ${CMAKE_COMMAND} -E tar cvf bad.tar --files-from=${CMAKE_CURRENT_LIST_DIR}/E_tar-bad-from3.txt) -run_cmake_command(E_tar-bad-from4 ${CMAKE_COMMAND} -E tar cvf bad.tar --files-from=${CMAKE_CURRENT_LIST_DIR}/E_tar-bad-from4.txt) -run_cmake_command(E_tar-bad-from5 ${CMAKE_COMMAND} -E tar cvf bad.tar --files-from=${CMAKE_CURRENT_LIST_DIR}/E_tar-bad-from5.txt) -run_cmake_command(E_tar-end-opt1 ${CMAKE_COMMAND} -E tar cvf bad.tar -- --bad) -run_cmake_command(E_tar-end-opt2 ${CMAKE_COMMAND} -E tar cvf bad.tar --) -run_cmake_command(E_tar-mtime ${CMAKE_COMMAND} -E tar cvf bad.tar "--mtime=1970-01-01 00:00:00 UTC") -run_cmake_command(E_tar-bad-format ${CMAKE_COMMAND} -E tar cvf bad.tar "--format=bad-format") - run_cmake_command(build-no-cache ${CMAKE_COMMAND} --build ${RunCMake_SOURCE_DIR}) run_cmake_command(build-no-generator |