]> git.ipfire.org Git - thirdparty/cups.git/blame - test/5.9-lpinfo.sh
Update test suite for new location of test files.
[thirdparty/cups.git] / test / 5.9-lpinfo.sh
CommitLineData
ef416fc2 1#!/bin/sh
2#
503b54c9 3# Test the lpinfo 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 "LPINFO Devices Test"
13echo ""
14echo " lpinfo -v"
b37177a7 15$runcups $VALGRIND ../systemv/lpinfo -v 2>&1
ef416fc2 16if test $? != 0; then
17 echo " FAILED"
18 exit 1
19else
20 echo " PASSED"
21fi
22echo ""
23
24echo "LPINFO Drivers Test"
25echo ""
26echo " lpinfo -m"
b37177a7 27$runcups $VALGRIND ../systemv/lpinfo -m 2>&1
ef416fc2 28if test $? != 0; then
29 echo " FAILED"
30 exit 1
31else
32 echo " PASSED"
33fi
34echo ""
35
4509bb49
MS
36echo "LPINFO Drivers Test"
37echo ""
38echo " lpinfo -m | grep -q sample.drv"
b37177a7 39$runcups $VALGRIND ../systemv/lpinfo -m | grep -q sample.drv 2>&1
4509bb49
MS
40if test $? != 0; then
41 echo " FAILED"
42 exit 1
43else
44 echo " PASSED"
45fi
46echo ""