1#!/bin/sh 2# 3# Test the cancel command. 4# 5# Copyright © 2020-2024 by OpenPrinting. 6# Copyright © 2007-2019 by Apple Inc. 7# Copyright © 1997-2006 by Easy Software Products, all rights reserved. 8# 9# Licensed under Apache License v2.0. See the file "LICENSE" for more 10# information. 11# 12 13echo "Cancel Destination Test" 14echo "" 15echo " lp -d Test1 -o job-hold-until=indefinite testfile.jpg" 16$runcups $VALGRIND ../systemv/lp -d Test1 -o job-hold-until=indefinite ../examples/testfile.jpg 2>&1 17echo " cancel Test1" 18$runcups $VALGRIND ../systemv/cancel Test1 2>&1 19if test $? != 0; then 20 echo " FAILED" 21 exit 1 22else 23 echo " PASSED" 24fi 25echo "" 26 27echo "Cancel All Test" 28echo "" 29echo " cancel -a" 30$runcups $VALGRIND ../systemv/cancel -a 2>&1 31if test $? != 0; then 32 echo " FAILED" 33 exit 1 34else 35 echo " PASSED" 36fi 37echo "" 38 39echo "Purge All Test" 40echo "" 41echo " cancel -a -x" 42$runcups $VALGRIND ../systemv/cancel -a -x 2>&1 43if test $? != 0; then 44 echo " FAILED" 45 exit 1 46else 47 echo " PASSED" 48fi 49echo "" 50