Rombobjörn

summaryrefslogtreecommitdiff
path: root/testsuite/inputs/configure_and_clean
blob: 750d1dd009f0cbdaf7e0b180fd01cb486eeb57eb (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
# part of Comfignat's testsuite
# Copyright 2014 B. Persson, Bjorn@Rombobeorn.se
#
# This material is provided as is, with absolutely no warranty expressed
# or implied. Any use is at your own risk.
#
# Permission is hereby granted to use or copy this testsuite
# for any purpose, provided the above notices are retained on all copies.
# Permission to modify the code and to distribute modified code is granted,
# provided the above notices are retained, and a notice that the code was
# modified is included with the above copyright notice.


expect_configuration always
common_setup
make configure bindir='${prefix}/special'
make clean
expected='bindir = ${prefix}/special'
conf=$(make show_configuration --no-print-directory)
if [ "${conf}" != "${expected}" ] ; then
   echo "Expected configuration:" >&2
   echo "${expected}" >&2
   echo "Configuration found:" >&2
   echo "${conf}" >&2
   exit 1
fi