aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-07-28 13:05:54 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-07-28 14:10:31 -0300
commit200f389ed0f56ba42160fe135e3701757a8df94c (patch)
tree644ebe2eccff1991e11ff1f6391df0f60e9978f1 /test
parentbuild: fix shellcheck issues in mkrpm.sh/compile.sh (diff)
downloadfirejail-200f389ed0f56ba42160fe135e3701757a8df94c.tar.gz
firejail-200f389ed0f56ba42160fe135e3701757a8df94c.tar.zst
firejail-200f389ed0f56ba42160fe135e3701757a8df94c.zip
build: use config.sh in more scripts
This removes the need to manually pass variables such as `$(TARNAME)` and `$(VERSION)` to shell scripts in the root Makefile. Relates to #5140.
Diffstat (limited to 'test')
-rwxr-xr-xtest/compile/compile.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/compile/compile.sh b/test/compile/compile.sh
index 06b4646a8..0e3425f8d 100755
--- a/test/compile/compile.sh
+++ b/test/compile/compile.sh
@@ -11,7 +11,8 @@
11# install contrib scripts 11# install contrib scripts
12# --enable-analyzer enable GCC 10 static analyzer 12# --enable-analyzer enable GCC 10 static analyzer
13 13
14 14# shellcheck source=config.sh
15. "$(dirname "$0")/../../config.sh" || exit 1
15 16
16arr[1]="TEST 1: standard compilation" 17arr[1]="TEST 1: standard compilation"
17arr[2]="TEST 2: compile dbus proxy disabled" 18arr[2]="TEST 2: compile dbus proxy disabled"
@@ -51,7 +52,7 @@ print_title() {
51 echo "**************************************************" 52 echo "**************************************************"
52} 53}
53 54
54DIST="$1" 55DIST="$(TARNAME)-$(VERSION)"
55while [[ $# -gt 0 ]]; do # Until you run out of parameters . . . 56while [[ $# -gt 0 ]]; do # Until you run out of parameters . . .
56 case "$1" in 57 case "$1" in
57 --clean) 58 --clean)