forked from OSchip/llvm-project
Check for availability of `cpio` command.
cpio may not be available on Windows, so it is better to check for availability before running the command in a test. llvm-svn: 278249
This commit is contained in:
parent
c1f6cd2980
commit
2dc5645b94
|
@ -1,4 +1,4 @@
|
|||
# REQUIRES: x86
|
||||
# REQUIRES: x86, cpio
|
||||
|
||||
# Test that a repro archive always uses / instead of \.
|
||||
# RUN: rm -rf %t.dir
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# REQUIRES: x86
|
||||
# REQUIRES: x86, cpio
|
||||
|
||||
# Extracting the cpio archive can get over the path limit on windows.
|
||||
# REQUIRES: shell
|
||||
|
|
|
@ -252,3 +252,7 @@ if cvtres and rc:
|
|||
# Check if "lib.exe" command exists.
|
||||
if lit.util.which('lib', config.environment['PATH']):
|
||||
config.available_features.add('winlib')
|
||||
|
||||
# Check if "cpio" command exists.
|
||||
if lit.util.which('cpio', config.environment['PATH']):
|
||||
config.available_features.add('cpio')
|
||||
|
|
Loading…
Reference in New Issue