src/test/resources/golden-sample/configure2

changeset 47
78ee95836412
parent 46
096f3105b3b1
child 51
5c12e9e29733
--- a/src/test/resources/golden-sample/configure2	Sun Sep 10 14:29:20 2023 +0200
+++ b/src/test/resources/golden-sample/configure2	Tue Sep 12 20:12:22 2023 +0200
@@ -29,7 +29,7 @@
 touch "$TEMP_DIR/features"
 
 # features
-FEATURE_DB=on
+FEATURE_DB=auto
 
 # help text
 printhelp()
@@ -580,6 +580,8 @@
         if [ "$FEATURE_DB" != "auto" ]; then
             DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED sqlite "
             ERROR=1
+		else
+			unset FEATURE_DB
         fi
     fi
 fi
@@ -591,6 +593,8 @@
         if [ "$FEATURE_GUI" != "auto" ]; then
             DEPENDENCIES_FAILED="$DEPENDENCIES_FAILED gtk3 "
             ERROR=1
+		else
+			unset FEATURE_GUI
         fi
     fi
 fi
@@ -710,6 +714,17 @@
 echo "  TOOLCHAIN: $TOOLCHAIN_NAME"
 echo "Options:"
 cat "$TEMP_DIR/options"
+echo "Features:"
+if [ -n "$FEATURE_DB" ]; then
+echo "  db: on"
+else
+echo "  db: off"
+fi
+if [ -n "$FEATURE_GUI" ]; then
+echo "  gui: on"
+else
+echo "  gui: off"
+fi
 echo
 cat "$TEMP_DIR/config.mk" "$TEMP_DIR/make.mk" > config.mk
 rm -Rf "$TEMP_DIR"

mercurial