brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1000 B · f8b0d38 Raw
40 lines · plain
1## Test that permissions for ouput files are mirrored2## from their input files.3 4## The Unix version of this test is separated because it needs5## to use umask(1). Windows has no umask, so it can be considered6## to be always 0, the required behavior.7# REQUIRES: system-windows8 9# RUN: touch %t10# RUN: chmod 0777 %t11# RUN: ls -l %t | cut -f 1 -d ' ' > %t.077712# RUN: chmod 0666 %t13# RUN: ls -l %t | cut -f 1 -d ' ' > %t.066614# RUN: chmod 0640 %t15# RUN: ls -l %t | cut -f 1 -d ' ' > %t.064016 17# RUN: yaml2obj %s -o %t18 19# RUN: chmod 0777 %t20# RUN: llvm-objcopy %t %t121# RUN: ls -l %t1 | cut -f 1 -d ' ' > %t1.perms22# RUN: cmp %t1.perms %t.077723 24# RUN: chmod 0666 %t25# RUN: llvm-objcopy %t %t126# RUN: ls -l %t1 | cut -f 1 -d ' ' > %t1.perms27# RUN: cmp %t1.perms %t.066628 29# RUN: chmod 0640 %t30# RUN: llvm-objcopy %t %t131# RUN: ls -l %t1 | cut -f 1 -d ' ' > %t1.perms32# RUN: cmp %t1.perms %t.064033 34--- !ELF35FileHeader:36  Class:   ELFCLASS6437  Data:    ELFDATA2LSB38  Type:    ET_EXEC39  Machine: EM_X86_6440