Skip to content

Commit

Permalink
fixed crashed test script
Browse files Browse the repository at this point in the history
cupsfilters/test-filter-cases.txt required further checks for the last
two test cases

Potential output: ERROR: cfFilterUniversal: Unsupported combination of input and output formats: application/pdf -> image/jpeg

Signed-off-by: TTFISH <jiongchiyu@gmail.com>
  • Loading branch information
fish98 committed Jul 11, 2024
1 parent 398cf48 commit 10eb40e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cupsfilters/test-filter-cases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
cupsfilters/test_files/test_file_1pg.pdf application/pdf cupsfilters/test_files/output_files/test_file_op.pdf application/pdf Generic PDF Color 2 1 1 text/plain,application/pdf 13 new-user custom-print 10 sides=two-sided-long-edge media-size=A4 printer-resolution=300dpi
cupsfilters/test_files/test_file_4pg.pdf application/pdf cupsfilters/test_files/output_files/test_file_op.pwg image/pwg-raster Generic PDF Color 2 1 1 image/pwg-raster,application/pdf 13 new-user custom-print 5 sides=two-sided-short-edge media-size=A4 printer-resolution=300dpi
cupsfilters/test_files/bashrc.urf image/urf cupsfilters/test_files/output_files/test_file_op.jpg image/jpeg Canon GX7000 series 2 1 0 image/urf,image/jpeg 13 new-user custom-print 1 sides=two-sided-short-edge media-size=A4 printer-resolution=600dpi
test_files/test_file_2pg.pdf application/pdf test_files/output_files/test_file_op.jpg image/jpeg Brother MFC-L6900DW 2 1 0 application/pdf,application/vnd.cups-pdf 13 new-user custom-print 1 sides=two-sided-short-edge media-size=A4 printer-resolution=300dpi
cupsfilters/test_files/test_file_2pg.pdf application/pdf cupsfilters/test_files/output_files/test_file_op.jpg image/jpeg Brother MFC-L6900DW 2 1 0 application/pdf,application/vnd.cups-pdf 13 new-user custom-print 1 sides=two-sided-short-edge media-size=A4 printer-resolution=300dpi
4 changes: 3 additions & 1 deletion cupsfilters/testfilters.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#!/bin/bash

echo "Test-Suite for Libcupsfilters"
#Now run the executable file with test case
echo "Running Tests..."
echo "Input number of Tests..."
#read TC

mkdir -p cupsfilters/test_files/output_files
./testfilters cupsfilters/test-filter-cases.txt 3 2&> Test_summary_final.txt
./testfilters cupsfilters/test-filter-cases.txt 2 2 2>&1 | tee Test_summary_final.txt
exit_code=$?

#Delete the output_files folder all together...
Expand Down

0 comments on commit 10eb40e

Please sign in to comment.