File tree 2 files changed +20
-0
lines changed
src/test/run-make-fulldeps
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 13
13
BASEDIR =../coverage-reports-base
14
14
SOURCEDIR =../coverage
15
15
16
+ ifeq ($(UNAME ) ,Darwin)
17
+ # FIXME(richkadel): It appears that --debug is not available on MacOS even when not running
18
+ # under CI.
19
+ NO_LLVM_ASSERTIONS =1
20
+ endif
21
+
16
22
# The `llvm-cov show` flag `--debug`, used to generate the `counters` output files, is only enabled
17
23
# if LLVM assertions are enabled. Some CI builds disable debug assertions.
18
24
ifndef NO_LLVM_ASSERTIONS
Original file line number Diff line number Diff line change 9
9
BASEDIR =../coverage-spanview-base
10
10
SOURCEDIR =../coverage
11
11
12
+ ifeq ($(UNAME ) ,Darwin)
13
+ SED_HAS_ISSUES =1
14
+ endif
15
+
12
16
all : $(patsubst $(SOURCEDIR ) /% .rs,% ,$(wildcard $(SOURCEDIR ) /* .rs) )
13
17
14
18
# Ensure there are no `expected` results for tests that may have been removed or renamed
29
33
-Zdump-mir-spanview \
30
34
-Zdump-mir-dir=" $( TMPDIR) " /mir_dump.$@
31
35
36
+ ifdef SED_HAS_ISSUES
37
+ # FIXME(richkadel): MacOS's default sed has some significant limitations. Until I've come up
38
+ # with a better workaround, I'm disabling this test for MacOS.
39
+ #
40
+ # For future reference, see if `gsed` is available as an alternative.
41
+ which gsed || echo "no gsed"
42
+ else
43
+
32
44
for path in "$(TMPDIR)"/mir_dump.$@/*; do \
33
45
echo $$path; \
34
46
file="$$(basename "$$path")"; \
58
70
cp "$(TMPDIR)"/mir_dump.$@/*InstrumentCoverage.0.html "$(TMPDIR)"/actual_mir_dump.$@/
59
71
$(DIFF) -r expected_mir_dump.$@/ "$(TMPDIR)"/actual_mir_dump.$@/
60
72
endif
73
+
74
+ endif
You can’t perform that action at this time.
0 commit comments