]> Nishi Git Mirror - gwion.git/commitdiff
:white_check_mark: Test option needing arg
authorfennecdjay <astor.jeremie@wanadoo.fr>
Tue, 8 Oct 2019 11:56:14 +0000 (13:56 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Tue, 8 Oct 2019 11:56:14 +0000 (13:56 +0200)
tests/sh/opt.sh

index d231dac6a81e0ce92f7030b6ea1924e8377a293f..61d44117d6b583ae7b6658a02a2b3b2be570f0fb 100644 (file)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# [test] #17
+# [test] #18
 
 n=0
 [ "$1" ] && n="$1"
@@ -77,6 +77,10 @@ run "$n" "just check" "-g check" "file"
 n=$((n+1))
 run "$n" "just check" "-g nopass" "file"
 
+# option needs argument
+n=$((n+1))
+run "$n" "just check" "-p" "file"
+
 # test signal
 ./gwion -l1 &
 PID=$!