Lines Matching full:echo
20 echo Please run this as a normal user. Not supported when run as root.
47 # Figure out the proper echo options...
50 if (echo "testing\c"; echo 1,2,3) | $GREP c >/dev/null; then
62 echo "Welcome to the CUPS Automated Test Script."
63 echo ""
64 echo "Before we begin, it is important that you understand that the larger"
65 echo "tests require significant amounts of RAM and disk space. If you"
66 echo "attempt to run one of the big tests on a system that lacks sufficient"
67 echo "disk and virtual memory, the UNIX kernel might decide to kill one or"
68 echo "more system processes that you've grown attached to, like the X"
69 echo "server. The question you may want to ask yourself before running a"
70 echo "large test is: Do you feel lucky?"
71 echo ""
72 echo "OK, now that we have the Dirty Harry quote out of the way, please"
73 echo "choose the type of test you wish to perform:"
74 echo ""
75 echo "0 - No testing, keep the scheduler running for me (all systems)"
76 echo "1 - Basic conformance test, no load testing (all systems)"
77 echo "2 - Basic conformance test, some load testing (minimum 256MB VM, 50MB disk)"
78 echo "3 - Basic conformance test, extreme load testing (minimum 1GB VM, 500MB disk)"
79 echo "4 - Basic conformance test, torture load testing (minimum 2GB VM, 1GB disk)"
80 echo ""
81 echo $ac_n "Enter the number of the test you wish to perform: [1] $ac_c"
89 echo ""
93 echo "Running in test mode (0)"
100 echo "Running the medium tests (2)"
107 echo "Running the extreme tests (3)"
114 echo "Running the torture tests (4)"
121 echo "Running the timid tests (1)"
134 echo ""
135 echo "Now you can choose whether to create a SSL/TLS encryption key and"
136 echo "certificate for testing:"
137 echo ""
138 echo "0 - Do not do SSL/TLS encryption tests"
139 echo "1 - Test but do not require encryption"
140 echo "2 - Test and require encryption"
141 echo ""
142 echo $ac_n "Enter the number of the SSL/TLS tests to perform: [0] $ac_c"
150 echo ""
154 echo "Will test but not require encryption (1)"
157 echo "Will test and require encryption (2)"
160 echo "Not using SSL/TLS (0)"
210 echo ""
211 echo "This test script can use the Valgrind software from:"
212 echo ""
213 echo " http://developer.kde.org/~sewardj/"
214 echo ""
215 echo $ac_n "Enter Y to use Valgrind or N to not use Valgrind: [N] $ac_c"
223 echo ""
232 echo "Using Valgrind; log files can be found in $BASE/log..."
245 echo ""
246 echo "If CUPS was built with the --enable-debug-printfs configure option, you"
247 echo "can enable debug logging of the libraries."
248 echo ""
249 echo $ac_n "Enter Y or a number from 0 to 9 to enable debug logging or N to not: [N] $ac_c"
257 echo ""
261 echo "Enabling debug printfs (level 5); log files can be found in $BASE/log..."
268 echo "Enabling debug printfs (level $usedebugprintfs); log files can be found in $BASE/log..."
282 echo "Creating directories for test..."
475 echo "Creating cupsd.conf for test..."
512 echo WebInterface yes >>$BASE/cupsd.conf
543 echo "ServerKeychain $HOME/Library/Keychains/login.keychain" >> $BASE/cups-files.conf
550 echo "Creating printers.conf for test..."
581 echo "Setting up environment variables for test..."
628 echo "Creating wrapper script..."
632 echo "#!/bin/sh" >$runcups
633 echo "# Helper script for running CUPS test instance." >>$runcups
634 echo "" >>$runcups
635 echo "# Set required environment variables..." >>$runcups
636 echo "CUPS_DATADIR=\"$CUPS_DATADIR\"; export CUPS_DATADIR" >>$runcups
637 echo "CUPS_SERVER=\"$CUPS_SERVER\"; export CUPS_SERVER" >>$runcups
638 echo "CUPS_SERVERROOT=\"$CUPS_SERVERROOT\"; export CUPS_SERVERROOT" >>$runcups
639 echo "CUPS_STATEDIR=\"$CUPS_STATEDIR\"; export CUPS_STATEDIR" >>$runcups
640 echo "DYLD_INSERT_LIBRARIES=\"$DYLD_INSERT_LIBRARIES\"; export DYLD_INSERT_LIBRARIES" >>$runcups
641 echo "DYLD_LIBRARY_PATH=\"$DYLD_LIBRARY_PATH\"; export DYLD_LIBRARY_PATH" >>$runcups
643 echo "LD_LIBRARY_PATH=\"$LD_LIBRARY_PATH\"; export LD_LIBRARY_PATH" >>$runcups
644 echo "LD_PRELOAD=\"$LD_PRELOAD\"; export LD_PRELOAD" >>$runcups
645 echo "LOCALEDIR=\"$LOCALEDIR\"; export LOCALEDIR" >>$runcups
647 echo "CUPS_DEBUG_FILTER='$CUPS_DEBUG_FILTER'; export CUPS_DEBUG_FILTER" >>$runcups
648 echo "CUPS_DEBUG_LEVEL=$CUPS_DEBUG_LEVEL; export CUPS_DEBUG_LEVEL" >>$runcups
649 echo "CUPS_DEBUG_LOG='$CUPS_DEBUG_LOG'; export CUPS_DEBUG_LOG" >>$runcups
651 echo "" >>$runcups
652 echo "# Run command..." >>$runcups
653 echo "exec \"\$@\"" >>$runcups
678 echo "Starting scheduler:"
679 echo " $runcups $VALGRIND ../scheduler/cupsd -c $BASE/cupsd.conf -f >$BASE/log/debug_log 2>&1 &"
680 echo ""
688 echo "Scheduler is PID $cupsd and is listening on port $port."
689 echo ""
691 echo "The $runcups helper script can be used to test programs"
692 echo "with the server."
697 echo "Scheduler is PID $cupsd; run debugger now if you need to."
698 echo ""
699 echo $ac_n "Press ENTER to continue... $ac_c"
702 echo "Scheduler is PID $cupsd."
712 echo "Waiting for scheduler to become ready..."
731 echo ""
732 echo "Running IPP compliance tests..."
734 echo " <h1><a name='IPP'>1 - IPP Compliance Tests</a></h1>" >>$strfile
735 echo " <p>This section provides the results to the IPP compliance tests" >>$strfile
736 echo " outlined in the CUPS Software Test Plan. These tests were run on" >>$strfile
737 echo " $date by $user on `hostname`." >>$strfile
738 echo " <pre>" >>$strfile
742 echo $ac_n "Performing `basename $file`: $ac_c"
743 echo "" >>$strfile
744 echo $ac_n "`date '+[%d/%b/%Y:%H:%M:%S %z]'` $ac_c" >>$strfile
757 echo FAIL
760 echo PASS
764 echo " </pre>" >>$strfile
770 echo ""
771 echo "Running command tests..."
773 echo " <h1><a name='COMMAND'>2 - Command Tests</a></h1>" >>$strfile
774 echo " <p>This section provides the results to the command tests" >>$strfile
775 echo " outlined in the CUPS Software Test Plan. These tests were run on" >>$strfile
776 echo " $date by $user on `hostname`." >>$strfile
777 echo " <pre>" >>$strfile
780 echo $ac_n "Performing $file: $ac_c"
781 echo "" >>$strfile
782 echo "`date '+[%d/%b/%Y:%H:%M:%S %z]'` \"$file\":" >>$strfile
788 echo FAIL
791 echo PASS
799 echo $ac_n "Performing restart test: $ac_c"
800 echo "" >>$strfile
801 echo "`date '+[%d/%b/%Y:%H:%M:%S %z]'` \"5.10-restart\":" >>$strfile
816 echo "Failed, printer-info for Test1 is '$description', expected 'Test Printer 1'." >>$strfile
817 echo "FAIL (got '$description', expected 'Test Printer 1')"
820 echo "Passed." >>$strfile
821 echo PASS
829 echo $ac_n "Starting history test: $ac_c"
830 echo "" >>$strfile
831 echo "`date '+[%d/%b/%Y:%H:%M:%S %z]'` \"5.11-history\":" >>$strfile
833 echo " lp -d Test1 testfile.jpg" >>$strfile
837 echo "FAIL (unable to queue test job)"
838 echo " FAILED" >>$strfile
841 echo "PASS"
842 echo " PASSED" >>$strfile
846 echo $ac_n "Verifying that history still exists: $ac_c"
848 echo " ls -l $BASE/spool" >>$strfile
851 echo "FAIL"
852 echo " FAILED (job control files not present)" >>$strfile
856 echo "PASS"
857 echo " PASSED" >>$strfile
859 echo $ac_n "Waiting for job history to expire: $ac_c"
860 echo "" >>$strfile
861 echo " sleep 35" >>$strfile
864 echo " lpstat" >>$strfile
867 echo " ls -l $BASE/spool" >>$strfile
870 echo "FAIL"
871 echo " FAILED (job control files still present)" >>$strfile
875 echo "PASS"
876 echo " PASSED" >>$strfile
886 echo " </pre>" >>$strfile
896 echo "Test Summary"
897 echo ""
898 echo " <h1><a name='SUMMARY'>3 - Test Summary</a></h1>" >>$strfile
901 echo "FAIL: cupsd failed with exit status $cupsdstatus."
902 echo " <p>FAIL: cupsd failed with exit status $cupsdstatus.</p>" >>$strfile
905 echo "PASS: cupsd exited with no errors."
906 echo " <p>PASS: cupsd exited with no errors.</p>" >>$strfile
913 echo "FAIL: $count job control files were not purged."
914 echo " <p>FAIL: $count job control files were not purged.</p>" >>$strfile
917 echo "PASS: All job control files purged."
918 echo " <p>PASS: All job control files purged.</p>" >>$strfile
926 echo "FAIL: Printer 'Test1' produced $count page(s), expected $expected."
927 echo " <p>FAIL: Printer 'Test1' produced $count page(s), expected $expected.</p>" >>$strfile
930 echo "PASS: Printer 'Test1' correctly produced $count page(s)."
931 echo " <p>PASS: Printer 'Test1' correctly produced $count page(s).</p>" >>$strfile
938 echo "FAIL: Printer 'Test2' produced $count page(s), expected $expected."
939 echo " <p>FAIL: Printer 'Test2' produced $count page(s), expected $expected.</p>" >>$strfile
942 echo "PASS: Printer 'Test2' correctly produced $count page(s)."
943 echo " <p>PASS: Printer 'Test2' correctly produced $count page(s).</p>" >>$strfile
950 echo "FAIL: Printer 'Test3' produced $count page(s), expected $expected."
951 echo " <p>FAIL: Printer 'Test3' produced $count page(s), expected $expected.</p>" >>$strfile
954 echo "PASS: Printer 'Test3' correctly produced $count page(s)."
955 echo " <p>PASS: Printer 'Test3' correctly produced $count page(s).</p>" >>$strfile
962 echo "FAIL: $count requests logged, expected $expected."
963 echo " <p>FAIL: $count requests logged, expected $expected.</p>" >>$strfile
966 echo "PASS: $count requests logged."
967 echo " <p>PASS: $count requests logged.</p>" >>$strfile
972 echo "FAIL: CUPS-Get-Default logged with 'AccessLogLevel actions'"
973 echo " <p>FAIL: CUPS-Get-Default logged with 'AccessLogLevel actions'</p>" >>$strfile
974 echo " <pre>" >>$strfile
976 echo " </pre>" >>$strfile
979 echo "PASS: CUPS-Get-Default not logged."
980 echo " <p>PASS: CUPS-Get-Default not logged.</p>" >>$strfile
986 echo "FAIL: $count emergency messages, expected 0."
988 echo " <p>FAIL: $count emergency messages, expected 0.</p>" >>$strfile
989 echo " <pre>" >>$strfile
991 echo " </pre>" >>$strfile
994 echo "PASS: $count emergency messages."
995 echo " <p>PASS: $count emergency messages.</p>" >>$strfile
1001 echo "FAIL: $count alert messages, expected 0."
1003 echo " <p>FAIL: $count alert messages, expected 0.</p>" >>$strfile
1004 echo " <pre>" >>$strfile
1006 echo " </pre>" >>$strfile
1009 echo "PASS: $count alert messages."
1010 echo " <p>PASS: $count alert messages.</p>" >>$strfile
1016 echo "FAIL: $count critical messages, expected 0."
1018 echo " <p>FAIL: $count critical messages, expected 0.</p>" >>$strfile
1019 echo " <pre>" >>$strfile
1021 echo " </pre>" >>$strfile
1024 echo "PASS: $count critical messages."
1025 echo " <p>PASS: $count critical messages.</p>" >>$strfile
1031 echo "FAIL: $count error messages, expected 33."
1033 echo " <p>FAIL: $count error messages, expected 33.</p>" >>$strfile
1034 echo " <pre>" >>$strfile
1036 echo " </pre>" >>$strfile
1039 echo "PASS: $count error messages."
1040 echo " <p>PASS: $count error messages.</p>" >>$strfile
1046 echo "FAIL: $count warning messages, expected 8."
1048 echo " <p>FAIL: $count warning messages, expected 8.</p>" >>$strfile
1049 echo " <pre>" >>$strfile
1051 echo " </pre>" >>$strfile
1054 echo "PASS: $count warning messages."
1055 echo " <p>PASS: $count warning messages.</p>" >>$strfile
1061 echo "FAIL: $count notice messages, expected 0."
1063 echo " <p>FAIL: $count notice messages, expected 0.</p>" >>$strfile
1064 echo " <pre>" >>$strfile
1066 echo " </pre>" >>$strfile
1069 echo "PASS: $count notice messages."
1070 echo " <p>PASS: $count notice messages.</p>" >>$strfile
1076 echo "FAIL: $count info messages, expected more than 0."
1077 echo " <p>FAIL: $count info messages, expected more than 0.</p>" >>$strfile
1080 echo "PASS: $count info messages."
1081 echo " <p>PASS: $count info messages.</p>" >>$strfile
1087 echo "FAIL: $count debug messages, expected more than 0."
1088 echo " <p>FAIL: $count debug messages, expected more than 0.</p>" >>$strfile
1091 echo "PASS: $count debug messages."
1092 echo " <p>PASS: $count debug messages.</p>" >>$strfile
1098 echo "FAIL: $count debug2 messages, expected more than 0."
1099 echo " <p>FAIL: $count debug2 messages, expected more than 0.</p>" >>$strfile
1102 echo "FAIL: $count debug2 messages, expected 0."
1103 echo " <p>FAIL: $count debug2 messages, expected 0.</p>" >>$strfile
1106 echo "PASS: $count debug2 messages."
1107 echo " <p>PASS: $count debug2 messages.</p>" >>$strfile
1114 echo " <h1><a name='LOGS'>4 - Log Files</a></h1>" >>$strfile
1119 echo " <h2><a name=\"$baselog\">$baselog</a></h2>" >>$strfile
1122 …echo " <blockquote>Note: debug2 messages have been filtered out of the HTML report.</blockquote…
1123 echo " <pre>" >>$strfile
1125 echo " </pre>" >>$strfile
1129 echo " <pre>" >>$strfile
1131 echo " </pre>" >>$strfile
1142 echo ""
1146 echo "Copied log file \"$baselog-$date-$user\" to test directory."
1149 echo "Copied report file \"cups-str-$date-$user.html\" to test directory."
1155 echo ""
1158 echo "$fail tests failed."
1161 echo "All tests were successful."