]> git.ipfire.org Git - thirdparty/cups.git/blame - test/5.7-lprm.sh
Update test suite for new location of test files.
[thirdparty/cups.git] / test / 5.7-lprm.sh
CommitLineData
ef416fc2 1#!/bin/sh
2#
503b54c9 3# Test the lprm command.
ef416fc2 4#
feb13eea 5# Copyright © 2007-2019 by Apple Inc.
53f8d64f 6# Copyright © 1997-2005 by Easy Software Products, all rights reserved.
ef416fc2 7#
53f8d64f
MS
8# Licensed under Apache License v2.0. See the file "LICENSE" for more
9# information.
ef416fc2 10#
11
12echo "LPRM Current Test"
13echo ""
839a51c8 14echo " lpr -o job-hold-until=indefinite testfile.jpg"
feb13eea 15$runcups $VALGRIND ../berkeley/lpr -o job-hold-until=indefinite ../examples/testfile.jpg 2>&1
ef416fc2 16echo " lprm"
b37177a7 17$runcups $VALGRIND ../berkeley/lprm 2>&1
ef416fc2 18if test $? != 0; then
19 echo " FAILED"
20 exit 1
21else
22 echo " PASSED"
23fi
24echo ""
25
26echo "LPRM Destination Test"
27echo ""
839a51c8 28echo " lpr -P Test1 -o job-hold-until=indefinite testfile.jpg"
feb13eea 29$runcups $VALGRIND ../berkeley/lpr -P Test1 -o job-hold-until=indefinite ../examples/testfile.jpg 2>&1
ef416fc2 30echo " lprm Test1"
b37177a7 31$runcups $VALGRIND ../berkeley/lprm Test1 2>&1
ef416fc2 32if test $? != 0; then
33 echo " FAILED"
34 exit 1
35else
36 echo " PASSED"
37fi
38echo ""