diff options
author | Florian Apolloner <florian@apolloner.eu> | 2017-03-06 21:16:42 +0100 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-03-10 10:54:53 -0500 |
commit | a52faa1fcb7b54026ecfbef573d05568846e1aba (patch) | |
tree | 0ec71817719dc1f076787fc21bf892df7f334a51 /Tests/RunCMake/file | |
parent | 0a312e2271710554f8e73518dc4b28bd1d0d1d7a (diff) | |
download | cmake-a52faa1fcb7b54026ecfbef573d05568846e1aba.tar.gz |
file: Add READ_ELF command to parse ELF binaries
Leave it undocumented for now because we intend to use it internally and
it cannot be made available everywhere.
Diffstat (limited to 'Tests/RunCMake/file')
-rw-r--r-- | Tests/RunCMake/file/READ_ELF-result.txt | 1 | ||||
-rw-r--r-- | Tests/RunCMake/file/READ_ELF-stderr.txt | 2 | ||||
-rw-r--r-- | Tests/RunCMake/file/READ_ELF.cmake | 2 | ||||
-rw-r--r-- | Tests/RunCMake/file/RunCMakeTest.cmake | 1 |
4 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/file/READ_ELF-result.txt b/Tests/RunCMake/file/READ_ELF-result.txt new file mode 100644 index 0000000000..d00491fd7e --- /dev/null +++ b/Tests/RunCMake/file/READ_ELF-result.txt @@ -0,0 +1 @@ +1 diff --git a/Tests/RunCMake/file/READ_ELF-stderr.txt b/Tests/RunCMake/file/READ_ELF-stderr.txt new file mode 100644 index 0000000000..7b328049bd --- /dev/null +++ b/Tests/RunCMake/file/READ_ELF-stderr.txt @@ -0,0 +1,2 @@ +.*file READ_ELF must be called with at least three additional arguments\. +.*file READ_ELF given FILE "XXX" that does not exist\. diff --git a/Tests/RunCMake/file/READ_ELF.cmake b/Tests/RunCMake/file/READ_ELF.cmake new file mode 100644 index 0000000000..cd02c9b623 --- /dev/null +++ b/Tests/RunCMake/file/READ_ELF.cmake @@ -0,0 +1,2 @@ +file(READ_ELF XXX) +file(READ_ELF XXX RPATH YYY) diff --git a/Tests/RunCMake/file/RunCMakeTest.cmake b/Tests/RunCMake/file/RunCMakeTest.cmake index 7497544132..3f3c0da3a9 100644 --- a/Tests/RunCMake/file/RunCMakeTest.cmake +++ b/Tests/RunCMake/file/RunCMakeTest.cmake @@ -25,6 +25,7 @@ run_cmake(LOCK-error-no-timeout) run_cmake(LOCK-error-timeout) run_cmake(LOCK-error-unknown-option) run_cmake(LOCK-lowercase) +run_cmake(READ_ELF) run_cmake(GLOB) run_cmake(GLOB_RECURSE) # test is valid both for GLOB and GLOB_RECURSE |