Files
dvdisaster/regtest
Stéphane Lesimple 38defdf7aa Apply (most) debian patches
Apply debian patch 02-encryption
Apply debian patch 03-dvdrom
Apply a modified version of patch 05-help-dialog
Apply debian patch 08-fix-gnu-make-detection
Apply debian patch 10-use-non-size-specific-icon-and-add-keywords-to-desktop-file
Apply debian patch 12-fix-spelling-of-up-to
Apply debian patch 13-fix-missing-language-field-in-po-files
Apply a modified version of debian patch 14-make-builds-reproducible
Apply debian patch 17-fix-all-but-deprecated-api-warnings
Apply a modified version of debian patch 18-update-copyright-in-about-dialog
Apply debian patch 19-show-text-files-with-abs-path
Apply debian patch 22-fix-hurd-i386-ftbfs
Apply debian patch 23-add-bdrom-support
Apply debian patch 25-fix-man-pages
Apply debian patch 27-allow-opening-in-browser-again
Apply debian patch 28-pdftex-reproducibility
Apply debian patch 29-fix-more-typos
Apply debian patch 30-hurd-kfreebsd-ftbfs
Apply debian patch 31-improve-hurd-and-kfreebsd-support
Apply debian patch 33-honour-LDFLAGS
Apply debian patch 34-gcc8-format-security.patch
Apply debian patch 35-archived-homepage
Apply debian patch 36-fix-parallelism
2020-08-20 14:17:35 +02:00
..
2017-12-21 05:31:58 +11:00
2017-12-21 05:31:58 +11:00
2017-12-21 05:31:58 +11:00
2017-02-02 22:24:37 +09:00
2020-08-20 14:17:35 +02:00
2017-12-21 05:31:58 +11:00
2017-12-21 05:31:58 +11:00
2017-12-21 05:31:58 +11:00

General structure of the database log file
------------------------------------------

Creating a new database file:
Run the test, then copy and modify /dev/shm/newlog.txt

- The first 2 lines of the log file contain special content
  and are excluded from the diff against the actual log.

Line 1: md5sum of image file or "ignore"
Line 2: md5sum of ecc file or "ignore"

- Remove directory path prefix of all occurrences of .iso and .ecc files!


Anatomy of a test case
----------------------

Example:

01 # Scan an image with a simulated hardware failure and 
02 # --ignore-fatal-sense not set.
03
04 if try "scanning image, ignoring simulated hardware failure" scan_with_ignored_hardware_failure; then
05
06   cp $MASTERISO $SIMISO
07   $NEWVER --debug -i$SIMISO --erase "5000:hardware failure" >>$LOGFILE 2>&1
08
09   replace_config ignore-fatal-sense 1
10   extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
11   run_regtest scan_with_ignored_hardware_failure "--spinup-delay=0 -s --ignore-fatal-sense" $ISODIR/no.iso  $ISODIR/no.ecc
12 fi

line 01-02: Describe what the test case does and what results are expected.
line 04   : try description symbol
            provides a descriptive text for the test case and defines the symbol/label
            which is part of the database file and the config.txt list.
line 06-07: prepare test files
line 09   : in GUI mode, some settings can only made in the .dvdisaster file,
     	    not with the respective command line switches
line 10   : arguments which work both in GUI mode and command line mode
line 11   : run_regtest symbol args iso_image ecc_file
     	    Runs the regtest.
	    In GUI mode, args is ignored and only the iso_image and ecc_file parameters
	    are passed via the configuration file. extra_args are provided on the
	    command line.
	    In CLI mode, args is prepended with extra_args and appended with switches
	    for the iso_image and the ecc_file and then passed with the program
	    call in the command line.