File: testsuite_support_tmpdir.patch

package info (click to toggle)
libxc 7.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 298,548 kB
  • sloc: ansic: 34,103; f90: 2,127; python: 2,048; makefile: 425; sh: 318
file content (21 lines) | stat: -rw-r--r-- 518 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Author: Michael Banck <mbanck@debian.org>
Description: Run the testsuite in where TMPDIR is set or /tmp.
Forwarded: no

Index: libxc/testsuite/xc-run_testsuite
===================================================================
--- libxc.orig/testsuite/xc-run_testsuite
+++ libxc/testsuite/xc-run_testsuite
@@ -13,8 +13,10 @@ if [ -z "$srcdir" ]; then
   srcdir="./"
 fi
 
-if [ -z "$tmpdir" ]; then
-  tmpdir="/tmp"
+if [ -n "$TMPDIR" ]; then
+  tmpdir=$TMPDIR
+else
+  tmpdir=/tmp
 fi
 
 if [ -z "$builddir" ]; then