diff options
author | Mihail Konev <k.mvc@ya.ru> | 2016-12-10 03:35:54 +0500 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2016-12-11 00:15:23 +0000 |
commit | 0bf86f3dacddefff6104be3f52495ab281ca8ab9 (patch) | |
tree | 0979250e055451ec1fc77af4d59ff7606eacd757 /src/tests/man-4 | |
parent | 31552334cecee82809059ec598a37d9ea82683f0 (diff) |
src/tests: Use /tmp for temporary directories
Reduces disk reads/writes made by 'make check -C src'.
Fall back to ./tmp-* if 'mktemp -d' fails.
Diffstat (limited to 'src/tests/man-4')
-rwxr-xr-x | src/tests/man-4 | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tests/man-4 b/src/tests/man-4 index c8c68325..a7293110 100755 --- a/src/tests/man-4 +++ b/src/tests/man-4 @@ -37,7 +37,7 @@ expect_pass 'wildcards: -M option: without wildcards: check missing man page' \ run $MAN -C "$tmpdir/manpath.config" \ -aw -M "${Mpath}" manx > "$tmpdir/1.out" cat > "$tmpdir/1.exp" <<EOF -$(pwd -P)/$tmpdir/usr/share/man/man1/manx.1.gz +$abstmpdir/usr/share/man/man1/manx.1.gz EOF expect_pass 'wildcards: -M option: without wildcards: check existing man page' \ 'diff -u "$tmpdir/1.exp" "$tmpdir/1.out"' @@ -54,7 +54,7 @@ expect_pass 'wildcards: -M option: with wildcards: check missing man page' \ run $MAN -C "$tmpdir/manpath.config" \ -aw -M "${Mpath}" manpathx > "$tmpdir/1.out" cat > "$tmpdir/1.exp" <<EOF -$(pwd -P)/$tmpdir/usr/share/prog/a/man/man1/manpathx.1.gz +$abstmpdir/usr/share/prog/a/man/man1/manpathx.1.gz EOF expect_pass 'wildcards: -M option: with wildcards: check existing man page' \ 'diff -u "$tmpdir/1.exp" "$tmpdir/1.out"' @@ -64,7 +64,7 @@ Mpath="$tmpdir/usr/share/prog/[ab]/man" run $MAN -C "$tmpdir/manpath.config" \ -aw -M "${Mpath}" whatisx > "$tmpdir/1.out" cat > "$tmpdir/1.exp" <<EOF -$(pwd -P)/$tmpdir/usr/share/prog/b/man/man1/whatisx.1.gz +$abstmpdir/usr/share/prog/b/man/man1/whatisx.1.gz EOF expect_pass 'wildcards: -M option: with wildcards: check existing man page II' \ 'diff -u "$tmpdir/1.exp" "$tmpdir/1.out"' @@ -86,7 +86,7 @@ expect_pass 'wildcards: MANPATH: without wildcards: check missing man page' \ run $MAN -C "$tmpdir/manpath.config" \ -aw manx > "$tmpdir/1.out" cat > "$tmpdir/1.exp" <<EOF -$(pwd -P)/$tmpdir/usr/share/man/man1/manx.1.gz +$abstmpdir/usr/share/man/man1/manx.1.gz EOF expect_pass 'wildcards: MANPATH: without wildcards: check existing man page' \ 'diff -u "$tmpdir/1.exp" "$tmpdir/1.out"' @@ -104,7 +104,7 @@ expect_pass 'wildcards: MANPATH: with wildcards: check missing man page' \ run $MAN -C "$tmpdir/manpath.config" \ -aw manpathx > "$tmpdir/1.out" cat > "$tmpdir/1.exp" <<EOF -$(pwd -P)/$tmpdir/usr/share/prog/a/man/man1/manpathx.1.gz +$abstmpdir/usr/share/prog/a/man/man1/manpathx.1.gz EOF expect_pass 'wildcards: MANPATH: with wildcards: check existing man page' \ 'diff -u "$tmpdir/1.exp" "$tmpdir/1.out"' @@ -115,7 +115,7 @@ export MANPATH run $MAN -C "$tmpdir/manpath.config" \ -aw whatisx > "$tmpdir/1.out" cat > "$tmpdir/1.exp" <<EOF -$(pwd -P)/$tmpdir/usr/share/prog/b/man/man1/whatisx.1.gz +$abstmpdir/usr/share/prog/b/man/man1/whatisx.1.gz EOF expect_pass 'wildcards: MANPATH: with wildcards: check existing man page II' \ 'diff -u "$tmpdir/1.exp" "$tmpdir/1.out"' @@ -138,7 +138,7 @@ expect_pass 'wildcards: MANDATORY_MANPATH: without wildcards: check missing man run $MAN -C "$tmpdir/manpath.config" \ -aw manx > "$tmpdir/1.out" cat > "$tmpdir/1.exp" <<EOF -$(pwd -P)/$tmpdir/usr/share/man/man1/manx.1.gz +$abstmpdir/usr/share/man/man1/manx.1.gz EOF expect_pass 'wildcards: MANDATORY_MANPATH: without wildcards: check existing man page' \ 'diff -u "$tmpdir/1.exp" "$tmpdir/1.out"' @@ -155,7 +155,7 @@ expect_pass 'wildcards: MANDATORY_MANPATH: with wildcards: check missing man pag run $MAN -C "$tmpdir/manpath.config" \ -aw manpathx > "$tmpdir/1.out" cat > "$tmpdir/1.exp" <<EOF -$(pwd -P)/$tmpdir/usr/share/prog/a/man/man1/manpathx.1.gz +$abstmpdir/usr/share/prog/a/man/man1/manpathx.1.gz EOF expect_pass 'wildcards: MANDATORY_MANPATH: with wildcards: check existing man page' \ 'diff -u "$tmpdir/1.exp" "$tmpdir/1.out"' @@ -165,7 +165,7 @@ fake_config "/usr/share/prog/[ab]/man" run $MAN -C "$tmpdir/manpath.config" \ -aw whatisx > "$tmpdir/1.out" cat > "$tmpdir/1.exp" <<EOF -$(pwd -P)/$tmpdir/usr/share/prog/b/man/man1/whatisx.1.gz +$abstmpdir/usr/share/prog/b/man/man1/whatisx.1.gz EOF expect_pass 'wildcards: MANDATORY_MANPATH: with wildcards: check existing man page II' \ 'diff -u "$tmpdir/1.exp" "$tmpdir/1.out"' |