# file : tests/test/script/runner/output.testscript # copyright : Copyright (c) 2014-2019 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file # Some of the tests below (*/script-wd, before/*) are probably more appropriate # for tests/test/script/script-integration/testscript. Nevertheless let's not # spread the feature tests among several places. # .include ../common.testscript : after : { : keep : { : cleanup : $c <'touch a' && $b config.test.output=keep; test -f test/1/a : teardown : $c <>/EOE != 0 error: working directory test/ exists at the beginning of the test EOE : warn : mkdir test &!test/; $c <'true' && $b config.test.output=warn@clean 2>>/EOE warning: working directory test/ exists at the beginning of the test EOE : clean : mkdir test &!test/; $c <'true' && $b config.test.output=clean@clean }