summaryrefslogtreecommitdiff
path: root/regress/path/spec
blob: 5e3b0cb8023b065d398c45e2988775513817d51d (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
#! /bin/sh
# $NetBSD: spec,v 1.2 2020/02/09 22:39:21 rillig Exp $
#
# Ensures that the PATH variable can contain spaces, and that commands in
# such directories can be found and executed.
#
# For its own directories (PREFIX, WRKDIR), pkgsrc does not support paths
# with spaces, though.

do_test() {
	env \
		PATH="/Path with spaces:$PATH:/Path with spaces" \
		PKGNAME="package-1.0" \
		$TEST_MAKE \
			-f "../../mk/bsd.pkg.mk" \
			show-var VARNAME=PATH > "$TEST_OUTFILE"
}

check_result() {
	exit_status 0

	output_require ":/Path with spaces:"
	output_require "/Path with spaces$"
}