]> git.saurik.com Git - apt.git/blobdiff - test/integration/framework
move APT::Never-MarkAuto-Sections handling to MarkDelete
[apt.git] / test / integration / framework
index 2f08c5fdcb08e7f6f8c9c5280f200af1f6b748a6..2efe7439e423e132b0e7503792cbe60f49dac6fa 100644 (file)
@@ -1324,6 +1324,17 @@ testmarkedauto() {
        fi
        aptmark showauto 2>&1 | checkdiff $COMPAREFILE - && msgpass || msgfail
 }
+testmarkedmanual() {
+       local COMPAREFILE="${TMPWORKINGDIRECTORY}/rootdir/tmp/testmarkedmanual.comparefile"
+       if [ -n "$1" ]; then
+               msgtest 'Test for correctly marked as manually installed' "$*"
+               while [ -n "$1" ]; do echo "$1"; shift; done | sort > $COMPAREFILE
+       else
+               msgtest 'Test for correctly marked as manually installed' 'no package'
+               echo -n > $COMPAREFILE
+       fi
+       aptmark showmanual 2>&1 | checkdiff $COMPAREFILE - && msgpass || msgfail
+}
 
 msgfailoutput() {
        local MSG="$1"