File: Parameterize-executable-path-in-upstream-tests.patch

package info (click to toggle)
netmask 2.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,328 kB
  • sloc: sh: 5,181; ansic: 876; makefile: 22
file content (20 lines) | stat: -rw-r--r-- 496 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Guilhem Moulin <guilhem@debian.org>
Date: Fri, 1 Mar 2024 19:31:37 +0100
Subject: Upstream tests: Parameterize executable path.

This allows running the upstream test suite as a DEP-8 test.
---
 testscript | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testscript b/testscript
index 8dc2e6c..8209e37 100755
--- a/testscript
+++ b/testscript
@@ -1,5 +1,5 @@
 #!/bin/sh
-netmask="./netmask"
+netmask="${NETMASK_PATH:-./netmask}"
 
 if [ "$srcdir" ]
 then base="$srcdir/"