eef6be673b
Recently, dub was upgraded from v1.18.0 to v1.22.0 (the remote LATEST file was fixed), which caused half of the test-suite (all non select-based configs) to fail, because the 'args' test would somehow run the `0-tcp.d` file. This works around the problem by using `--single` explicitly.
11 lines
485 B
Bash
Executable file
11 lines
485 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
die() { echo "$@" 1>&2 ; exit 1; }
|
|
|
|
( dub --single args.d | grep -q '^argtest=$' ) || die "Fail (no argument): '`dub --single args.d`'"
|
|
( dub --single args.d -- --argtest=aoeu | grep -q '^argtest=aoeu$' ) || die "Fail (with argument): '`dub --single args.d -- --argtest=aoeu`'"
|
|
( ( ! dub --single args.d -- --inexisting 2>&1 ) | grep -qF 'Unrecognized command line option' ) || die "Fail (unknown argument): '`dub --single args.d -- --inexisting 2>&1`'"
|
|
|
|
echo 'OK'
|