summaryrefslogtreecommitdiff
path: root/odb-tests/common/changelog/buildfile
blob: 751b7a7fd17c280bcab9711918860779f6584e27 (plain)
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
# file      : common/changelog/buildfile
# license   : GNU GPL v2; see accompanying LICENSE file

import libodb = libodb%lib{odb}

./: file{odb.options} xml{*} testscript

# Introduce the metadata library target to make sure the libodb library is
# resolved for the below ad hoc recipe.
#
libue{test-meta}: $libodb

file{odb.options}: libue{test-meta}
{{
  pops = $cxx.lib_poptions($<[0])
  depdb hash $pops

  diag poptions ($<[0]) -> $>

  f = $path($>[0])
  rm -f $f

  touch $f

  for o: $pops
    echo $o >+$f
  end
}}

# Testscript's run-time prerequisites.
#
testscript@./: test = $odb

./: $odb: clean = false