mirror of
https://github.com/boostorg/build.git
synced 2026-02-19 02:12:17 +00:00
18 lines
708 B
Plaintext
18 lines
708 B
Plaintext
#~ Copyright 2006 Rene Rivera.
|
|
#~ Distributed under the Boost Software License, Version 1.0.
|
|
#~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
ECHO --- Testing SHELL builtin... ;
|
|
|
|
local c = "date" ;
|
|
if $(NT) { c = "PATH" ; }
|
|
|
|
assert "" : (!=) : [ SHELL $(c) ] ;
|
|
assert "" : (==) : [ SHELL $(c) : no-output ] ;
|
|
assert "" 0 : (!=) : [ SHELL $(c) : exit-status ] ;
|
|
assert "" 0 : (==) : [ SHELL $(c) : no-output : exit-status ] ;
|
|
assert "" : (!=) : [ COMMAND $(c) ] ;
|
|
assert "" : (==) : [ COMMAND $(c) : no-output ] ;
|
|
assert "" 0 : (!=) : [ COMMAND $(c) : exit-status ] ;
|
|
assert "" 0 : (==) : [ COMMAND $(c) : no-output : exit-status ] ;
|