File: Test.mk

package info (click to toggle)
zmk 0.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,132 kB
  • sloc: makefile: 1,749; sh: 313; ansic: 42; awk: 12; cpp: 12
file content (56 lines) | stat: -rw-r--r-- 2,483 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/usr/bin/make -f
include zmk/internalTest.mk

t:: integration 

# Test logs will contain debugging messages
%.log: ZMK.makeOverrides += DEBUG=toolchain

integration: integration.log
ifeq ($(ZMK.test.OSRelease.ID),freebsd)
	GREP -qFx 'DEBUG: Toolchain.CC.ImageFormat=ELF' <$<
	GREP -qFx 'DEBUG: Toolchain.CC.IsAvailable=yes' <$<
	GREP -qFx 'DEBUG: Toolchain.CC.IsClang=yes' <$<
	GREP -qFx 'DEBUG: Toolchain.CC.IsCross=' <$<
	GREP -qFx 'DEBUG: Toolchain.CC.IsGcc=' <$<
	GREP -qFx 'DEBUG: Toolchain.CC.IsTcc=' <$<
	GREP -qFx 'DEBUG: Toolchain.CC.IsWatcom=' <$<
	GREP -qFx 'DEBUG: Toolchain.CXX.ImageFormat=ELF' <$<
	GREP -qFx 'DEBUG: Toolchain.CXX.IsAvailable=yes' <$<
	GREP -qFx 'DEBUG: Toolchain.CXX.IsClang=yes' <$<
	GREP -qFx 'DEBUG: Toolchain.CXX.IsCross=' <$<
	GREP -qFx 'DEBUG: Toolchain.CXX.IsGcc=' <$<
	GREP -qFx 'DEBUG: Toolchain.CXX.IsWatcom=' <$<
	GREP -qFx 'DEBUG: Toolchain.DependencyTracking=yes' <$<
	GREP -qFx 'DEBUG: Toolchain.ImageFormat=ELF' <$<
	GREP -qFx 'DEBUG: Toolchain.IsClang=yes' <$<
	GREP -qFx 'DEBUG: Toolchain.IsCross=' <$<
	GREP -qFx 'DEBUG: Toolchain.IsGcc=' <$<
	GREP -qFx 'DEBUG: Toolchain.IsWatcom=' <$<
	GREP -qFx 'DEBUG: Toolchain.cc=/usr/bin/cc' <$<
	GREP -qFx 'DEBUG: Toolchain.cxx=/usr/bin/c++' <$<
else ifeq ($(ZMK.test.OSRelease.ID),macos)
	GREP -qFx 'DEBUG: Toolchain.CC.ImageFormat=Mach-O' <$<
	GREP -qFx 'DEBUG: Toolchain.CC.IsAvailable=yes' <$<
	GREP -qFx 'DEBUG: Toolchain.CC.IsClang=yes' <$<
	GREP -qFx 'DEBUG: Toolchain.CC.IsCross=' <$<
	GREP -qFx 'DEBUG: Toolchain.CC.IsGcc=' <$<
	GREP -qFx 'DEBUG: Toolchain.CC.IsTcc=' <$<
	GREP -qFx 'DEBUG: Toolchain.CC.IsWatcom=' <$<
	GREP -qFx 'DEBUG: Toolchain.CXX.ImageFormat=Mach-O' <$<
	GREP -qFx 'DEBUG: Toolchain.CXX.IsAvailable=yes' <$<
	GREP -qFx 'DEBUG: Toolchain.CXX.IsClang=yes' <$<
	GREP -qFx 'DEBUG: Toolchain.CXX.IsCross=' <$<
	GREP -qFx 'DEBUG: Toolchain.CXX.IsGcc=' <$<
	GREP -qFx 'DEBUG: Toolchain.CXX.IsWatcom=' <$<
	GREP -qFx 'DEBUG: Toolchain.DependencyTracking=yes' <$<
	GREP -qFx 'DEBUG: Toolchain.ImageFormat=Mach-O' <$<
	GREP -qFx 'DEBUG: Toolchain.IsClang=yes' <$<
	GREP -qFx 'DEBUG: Toolchain.IsCross=' <$<
	GREP -qFx 'DEBUG: Toolchain.IsGcc=' <$<
	GREP -qFx 'DEBUG: Toolchain.IsWatcom=' <$<
	# Note, do not test Toolchain.cc and Toolchain.cxx - those may vary. It
	# seems that vanilla Xcode.app provides /usr/bin/cc{,++} respectively but,
	# for example, GitHub actions MacOS runner has an environment with a
	# specific Xcode_12.2.app and /usr/bin/clang{,++}.
endif