stdlib/fedora: Use rpmdev-bumpspec -r flag for < Rawhide builds.
[goals.git] / tests / 00-basic-deps.gl
1 # Goals test.
2 # Copyright (C) 2020 Richard W.M. Jones
3 # Copyright (C) 2020 Red Hat Inc.
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License along
16 # with this program; if not, write to the Free Software Foundation, Inc.,
17 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
19 # Test dependencies are ordered correctly.  Although the exact
20 # order in which these goals will be built is non-deterministic,
21 # dependencies with longer names are built before prefixes of
22 # those names (eg. g311 -> g31 -> g3).  The associated shell
23 # script checks this property of the output.
24
25 goal all = : g1, g2, g3
26
27 goal g1 = : g11, g12, g13 { echo g1 }
28
29 goal g2 = : g21, g22, g23 { echo g2 }
30
31 goal g3 = : g31, g32, g33 { echo g3 }
32
33 goal g11 = { echo g11 }
34 goal g12 = { echo g12 }
35 goal g13 = { echo g13 }
36
37 goal g21 = { echo g21 }
38 goal g22 = { echo g22 }
39 goal g23 = { echo g23 }
40
41 goal g31 = : g311, g312, g313 { echo g31 }
42 goal g32 = { echo g32 }
43 goal g33 = { echo g33 }
44
45 goal g311 = : g3111, g3112, g3113 { echo g311 }
46 goal g312 = { echo g312 }
47 goal g313 = { echo g313 }
48
49 goal g3111 = : g31111 { echo g3111 }
50 goal g3112 = { echo g3112 }
51 goal g3113 = { echo g3113 }
52
53 goal g31111 = { echo g31111 }