File: cond.txt

package info (click to toggle)
golang-github-rogpeppe-go-internal 1.14.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,220 kB
  • sloc: makefile: 6
file content (23 lines) | stat: -rw-r--r-- 504 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# test that exactly one of gc and gccgo is set
[gc] mkdir gc_true
[gccgo] mkdir gccgo_true

[gc] ! exists gccgo_true
[!gc] exists gccgo_true
[gccgo] ! exists gc_true
[!gccgo] exists gc_true

# test that go version build tags are set
[go1.1] mkdir go1.x
[go2.1] mkdir go2.x

exists go1.x
! exists go2.x

# unix should be true on Linux and MacOS, but not on Windows.
# Both platforms are tested on CI.
[unix] mkdir unix_true

[linux] exists unix_true
[darwin] exists unix_true
[windows] ! exists unix_true