File: work.txt

package info (click to toggle)
golang-github-rogpeppe-go-internal 1.14.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,188 kB
  • sloc: makefile: 6
file content (23 lines) | stat: -rw-r--r-- 655 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Test that passing -work leaves behind the working directory
# that contains the temporary directories within which the
# script arguments are expanded.
#
# This test also covers the use of multiple scripts which share
# the same basename, ensuring that the naming of the directories
# within the working directory.

unquote file.txt dir/file.txt

testscript -v -work file.txt dir/file.txt
stdout '^temporary work directory: \Q'$WORK'\E[/\\]\.tmp[/\\]'
expandone $WORK/.tmp/go-test-script*/script-file/foo
expandone $WORK/.tmp/go-test-script*/script-file#1/bar

-- file.txt --
>exec true
>-- foo --
>hello
-- dir/file.txt --
>exec true
>-- bar --
>hello