30 lines
975 B
Plaintext
30 lines
975 B
Plaintext
|
|
# Fixture for coverage_test.sh. Engine tier: it declares its own targets,
|
||
|
|
# so the suite runs with no klammer set.
|
||
|
|
@@@target ta | Target A @@@
|
||
|
|
@@@target tb | Target B @@@
|
||
|
|
@@@target tc | Target C @@@
|
||
|
|
|
||
|
|
# Defined per target: coverage is what the definitions say.
|
||
|
|
@@ab.k s : defined for ta and tb @@
|
||
|
|
@@ab.ta :: A*s* @@
|
||
|
|
@@ab.tb :: B*s* @@
|
||
|
|
|
||
|
|
# A comma list is the same statement written once (step 1).
|
||
|
|
@@cd.k s : defined for ta and tc by a list @@
|
||
|
|
@@cd.ta,tc :: C*s* @@
|
||
|
|
|
||
|
|
# General body of plain text: every target.
|
||
|
|
@@plain : just text @@
|
||
|
|
|
||
|
|
# General body calling one klammer: that klammer's coverage.
|
||
|
|
@@calls_ab s : @ab *s* @ @@
|
||
|
|
|
||
|
|
# Intersection of two klammers with different coverage: only ta is in both.
|
||
|
|
@@calls_both s : @ab *s* @ @cd *s* @ @@
|
||
|
|
|
||
|
|
# ".*" is an assertion: every target, including targets not yet defined.
|
||
|
|
# Distinct from a bare definition, which asserts nothing -- that is the
|
||
|
|
# writer's macro form.
|
||
|
|
@@universal.k s : works for any target @@
|
||
|
|
@@universal.* :: U*s* @@
|