Commit Graph

12 Commits

Author SHA1 Message Date
Max Desiatov
f8dee9e270 test/DebugInfo: enable test for Wasm object format (#67532)
This test is valid when testing the Wasm target, so let's fully enable it.
2023-07-26 18:42:44 +01:00
Daniel Rodríguez Troitiño
80135c913a [android] Adapt test to upstream readobj output change.
This is a change that will be necessary for master-next. readobj seems
to report elf32-littlearm when compiling for Android ARMv7.

This is similar to commit f7cf5bde46 which
is still available in master-next, but I think was (mistakenly) reverted
with #32265.
2020-08-09 17:24:17 -07:00
3405691582
18ecb1e673 [test] Use dd instead of head -c.
head -c, to print the specified number of bytes, is a GNU extension.
Using dd for the same task should be somewhat more portable.

Mac OS X does not have status=none, so redirect the status output away
instead. Despite appearances, redirecting with the Bourne shell-ism
`2>/dev/null` is fine on Windows since Windows executes with the
internal lit shell runner, which translates `/dev/null` to a temporary
file.
2020-06-18 17:26:48 -04:00
Karoy Lorentey
68351d2110 Revert "Merge remote-tracking branch 'origin/master-next'"
This reverts commit 1c9b0908e6, reversing
changes made to 3eb82c1836.
2020-06-08 16:48:38 -07:00
Adrian Prantl
f7cf5bde46 Adapt test to upstream readobj output change 2020-03-23 18:06:38 -07:00
Alex Langford
da79d60ff1 [DebugInfo] Make modulecache test windows-compatible
`file` is not available on windows except through GnuWin32, and that
`file` was identifying the ClangModule as an ACB Archive file instead of
a COFF file.

Instead of using `file`, it is easier and more portable to use
llvm-readobj. I also converted the egrep usage into FileCheck while
adding COFF support.
2019-02-05 14:44:45 -08:00
Adrian Prantl
1b486eda4e Make test more robust. file(1) may not always recognize CPCH as data. 2017-08-21 14:30:15 -07:00
Dmitri Gribenko
486cab447d tests: replace 'rm -rf %t && mkdir -p %t' with '%empty-directory(%t)'
These changes were made using a script.
2017-06-04 11:08:39 -07:00
Adrian Prantl
19017a287f Even more testcase tweaking: Make this a C module so it can be imported on
Linux.

Swift SVN r28632
2015-05-15 18:03:12 +00:00
Adrian Prantl
cf564c24a2 More testcase tweaking.
1. Require objc_interop (the Linux bot currently fails to import
   Objective-C modules.
2. Generalize the testcase to also accept ELF containers so it works when
   (1) is resolved.

Swift SVN r28630
2015-05-15 17:51:50 +00:00
Adrian Prantl
da2ad487d7 Cleanup: Remove the dependency on SwiftShims from this testcase and
relax the prerequisites.

Thanks Dmitri for noticing!

Swift SVN r28628
2015-05-15 17:19:36 +00:00
Adrian Prantl
70279d192f Disable module debug info generation when -detailed-preprocessing-record
is enabled.

rdar://problem/20898265

This reapplies r28503 with a testcase and a corrected condition.

Swift SVN r28624
2015-05-15 16:15:01 +00:00