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