• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2#
3# Test the lprm command.
4#
5# Copyright © 2020-2024 by OpenPrinting.
6# Copyright © 2007-2019 by Apple Inc.
7# Copyright © 1997-2005 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 "LPRM Current Test"
14echo ""
15echo "    lpr -o job-hold-until=indefinite testfile.jpg"
16$runcups $VALGRIND ../berkeley/lpr -o job-hold-until=indefinite ../examples/testfile.jpg 2>&1
17echo "    lprm"
18$runcups $VALGRIND ../berkeley/lprm 2>&1
19if test $? != 0; then
20	echo "    FAILED"
21	exit 1
22else
23	echo "    PASSED"
24fi
25echo ""
26
27echo "LPRM Destination Test"
28echo ""
29echo "    lpr -P Test1 -o job-hold-until=indefinite testfile.jpg"
30$runcups $VALGRIND ../berkeley/lpr -P Test1 -o job-hold-until=indefinite ../examples/testfile.jpg 2>&1
31echo "    lprm Test1"
32$runcups $VALGRIND ../berkeley/lprm Test1 2>&1
33if test $? != 0; then
34	echo "    FAILED"
35	exit 1
36else
37	echo "    PASSED"
38fi
39echo ""
40