summaryrefslogtreecommitdiffstats
path: root/tests/new-install
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:08:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:08:26 +0000
commit59845ba9b3df5df775cf8c5a65d30375b984e3c7 (patch)
tree6c5c6d57676acf601505f35e53194e5e7a86f0c3 /tests/new-install
parentInitial commit. (diff)
downloadtasksel-59845ba9b3df5df775cf8c5a65d30375b984e3c7.tar.xz
tasksel-59845ba9b3df5df775cf8c5a65d30375b984e3c7.zip
Adding upstream version 3.68+deb11u1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/new-install')
-rwxr-xr-xtests/new-install34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/new-install b/tests/new-install
new file mode 100755
index 0000000..88a7d87
--- /dev/null
+++ b/tests/new-install
@@ -0,0 +1,34 @@
+#!/bin/sh
+#
+# Controls behavior for a task on new install or not.
+#
+# To enable this test insert your tasks stanza a keyword like:
+#
+# Test-new-install: mark skip
+#
+# This will cause the task to be marked for install on new install, and
+# hidden otherwise.
+
+if [ "$NEW_INSTALL" ]; then
+ var=$2
+else
+ var=$3
+fi
+
+case "$var" in
+ install)
+ exit 0 # do not display, but do install task
+ ;;
+ skip)
+ exit 1 # do not display task
+ ;;
+ mark)
+ exit 2 # display task, marked for installation
+ ;;
+ show)
+ exit 3 # display task, not marked for installation
+ ;;
+ *)
+ exit 1 # unknown value, skip the task
+ ;;
+esac