2015-06-18 08:12:42 +08:00
|
|
|
# RUN: yaml2obj %p/Inputs/ret42.yaml > %t.obj
|
|
|
|
|
2017-07-26 02:08:03 +08:00
|
|
|
# RUN: rm -f %t.exe.manifest
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main %t.obj
|
2017-07-26 02:08:03 +08:00
|
|
|
# RUN: test ! -e %t.exe.manifest
|
|
|
|
|
|
|
|
# RUN: lld-link /manifest /out:%t.exe /entry:main %t.obj
|
2015-06-18 08:12:42 +08:00
|
|
|
# RUN: FileCheck -check-prefix=MANIFEST %s < %t.exe.manifest
|
|
|
|
|
|
|
|
MANIFEST: <?xml version="1.0" standalone="yes"?>
|
|
|
|
MANIFEST: <assembly xmlns="urn:schemas-microsoft-com:asm.v1"
|
|
|
|
MANIFEST: manifestVersion="1.0">
|
|
|
|
MANIFEST: <trustInfo>
|
|
|
|
MANIFEST: <security>
|
|
|
|
MANIFEST: <requestedPrivileges>
|
|
|
|
MANIFEST: <requestedExecutionLevel level='asInvoker' uiAccess='false'/>
|
|
|
|
MANIFEST: </requestedPrivileges>
|
|
|
|
MANIFEST: </security>
|
|
|
|
MANIFEST: </trustInfo>
|
|
|
|
MANIFEST: </assembly>
|
|
|
|
|
2017-07-26 02:08:03 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main /manifest \
|
2015-06-29 09:03:53 +08:00
|
|
|
# RUN: /manifestuac:"level='requireAdministrator' uiAccess='true'" %t.obj
|
2015-06-18 08:12:42 +08:00
|
|
|
# RUN: FileCheck -check-prefix=UAC %s < %t.exe.manifest
|
|
|
|
|
|
|
|
UAC: <?xml version="1.0" standalone="yes"?>
|
|
|
|
UAC: <assembly xmlns="urn:schemas-microsoft-com:asm.v1"
|
|
|
|
UAC: manifestVersion="1.0">
|
|
|
|
UAC: <trustInfo>
|
|
|
|
UAC: <security>
|
|
|
|
UAC: <requestedPrivileges>
|
|
|
|
UAC: <requestedExecutionLevel level='requireAdministrator' uiAccess='true'/>
|
|
|
|
UAC: </requestedPrivileges>
|
|
|
|
UAC: </security>
|
|
|
|
UAC: </trustInfo>
|
|
|
|
UAC: </assembly>
|
|
|
|
|
2017-07-26 02:08:03 +08:00
|
|
|
# /manifestdependency implies /manifest. (/manifestuac doesn't.)
|
2015-08-07 00:47:46 +08:00
|
|
|
# RUN: lld-link /out:%t.exe /entry:main \
|
2015-06-29 09:03:53 +08:00
|
|
|
# RUN: /manifestdependency:"foo='bar'" %t.obj
|
2015-06-18 08:12:42 +08:00
|
|
|
# RUN: FileCheck -check-prefix=DEPENDENCY %s < %t.exe.manifest
|
|
|
|
|
|
|
|
DEPENDENCY: <?xml version="1.0" standalone="yes"?>
|
|
|
|
DEPENDENCY: <assembly xmlns="urn:schemas-microsoft-com:asm.v1"
|
|
|
|
DEPENDENCY: manifestVersion="1.0">
|
|
|
|
DEPENDENCY: <trustInfo>
|
|
|
|
DEPENDENCY: <security>
|
|
|
|
DEPENDENCY: <requestedPrivileges>
|
|
|
|
DEPENDENCY: <requestedExecutionLevel level='asInvoker' uiAccess='false'/>
|
|
|
|
DEPENDENCY: </requestedPrivileges>
|
|
|
|
DEPENDENCY: </security>
|
|
|
|
DEPENDENCY: </trustInfo>
|
|
|
|
DEPENDENCY: <dependency>
|
|
|
|
DEPENDENCY: <dependentAssembly>
|
|
|
|
DEPENDENCY: <assemblyIdentity foo='bar' />
|
|
|
|
DEPENDENCY: </dependentAssembly>
|
|
|
|
DEPENDENCY: </dependency>
|
|
|
|
DEPENDENCY: </assembly>
|
|
|
|
|
2017-07-27 07:38:10 +08:00
|
|
|
# RUN: lld-link /manifest /out:%t.exe /entry:main /manifestuac:no \
|
|
|
|
# RUN: /manifestdependency:"foo='bar'" %t.obj
|
2015-06-18 08:12:42 +08:00
|
|
|
# RUN: FileCheck -check-prefix=NOUAC %s < %t.exe.manifest
|
|
|
|
|
|
|
|
NOUAC: <?xml version="1.0" standalone="yes"?>
|
|
|
|
NOUAC: <assembly xmlns="urn:schemas-microsoft-com:asm.v1"
|
|
|
|
NOUAC: manifestVersion="1.0">
|
2017-07-27 07:38:10 +08:00
|
|
|
NOUAC: <dependency>
|
|
|
|
NOUAC: <dependentAssembly>
|
|
|
|
NOUAC: <assemblyIdentity foo='bar' />
|
|
|
|
NOUAC: </dependentAssembly>
|
|
|
|
NOUAC: </dependency>
|
2015-06-18 08:12:42 +08:00
|
|
|
NOUAC: </assembly>
|
2017-07-27 07:38:10 +08:00
|
|
|
|
|
|
|
# RUN: lld-link /manifest /out:%t.exe /entry:main /manifestuac:no %t.obj
|
|
|
|
# RUN: FileCheck -check-prefix=NOUACNODEP %s < %t.exe.manifest
|
|
|
|
|
|
|
|
NOUACNODEP: <?xml version="1.0" standalone="yes"?>
|
|
|
|
NOUACNODEP: <assembly xmlns="urn:schemas-microsoft-com:asm.v1"
|
|
|
|
NOUACNODEP: manifestVersion="1.0">
|
|
|
|
NOUACNODEP: </assembly>
|