Add tests from vibe-d:core.
This commit is contained in:
parent
99bc332a81
commit
5a8d5a2fea
7 changed files with 354 additions and 0 deletions
10
tests/args.sh
Executable file
10
tests/args.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
die() { echo "$@" 1>&2 ; exit 1; }
|
||||
|
||||
( dub args.d | grep -q '^argtest=$' ) || die "Fail (no argument)"
|
||||
( dub args.d --argtest=aoeu | grep -q '^argtest=aoeu$' ) || die "Fail (with argument)"
|
||||
( ( ! dub args.d --inexisting 2>&1 ) | grep -qF 'Unrecognized command line option' ) || die "Fail (unknown argument)"
|
||||
|
||||
echo 'OK'
|
Loading…
Add table
Add a link
Reference in a new issue