# file : tests/test/script/builtin/test.testscript # copyright : Copyright (c) 2014-2019 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file .include ../common.testscript : file : { : exists : $c <"test: unknown option '-u'" == 2 EOI : none : $c <"test: either -f|--file or -d|--directory must be specified" == 2 EOI : both-file-dir : $c <"test: both -f|--file and -d|--directory specified" == 2 EOI } : args : { : none : $c <'test -f 2>"test: missing path" == 2' && $b : unexpected : $c <"test: unexpected argument 'b'" == 2 EOI : empty-path : $c <"test: invalid path ''" == 2 EOI }