summaryrefslogtreecommitdiff
path: root/check/check-whitespace
blob: 6186c22744eeb142c3b53c126db54553da708853 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/sh

set -e

. ${srcdir}/common

# variables come out unquoted. In 0.28 and earlier, this would also
# contain the ""s quoting the variable.
RESULT='/usr/white space/include'
run_test --variable=includedir whitespace

# expect cflags from whitespace
RESULT='-Dlala=misc -I/usr/white\ space/include -I$(top_builddir) -Iinclude\ dir -Iother\ include\ dir'
run_test --cflags whitespace

# expect libs from whitespace
RESULT="-L/usr/white\\ space/lib -lfoo\\ bar -lbar\\ baz -r:foo"
run_test --libs whitespace