Changes between Version 4 and Version 5 of FATE/AddingATest


Ignore:
Timestamp:
Apr 12, 2014, 11:57:36 PM (6 years ago)
Author:
Timothy_Gu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FATE/AddingATest

    v4 v5  
    2828}}}
    2929
    30 This is one of the simplest tests for FFmpeg. Look at the first quoted line. It adds `fate-dts` to a weird variable containing a call to `DEMDEC`. The `DEMDEC` function returns "yes" if the required `DEM`uxer and `DEC`oder, in this case the `mpegts` demuxer and `dca` decoder, are enabled. Then, if you look at the end of the file:
     30This is one of the simplest tests for FFmpeg. Look at the first quoted line. It adds `fate-dts` to a weird variable containing a call to `DEMDEC`. The `DEMDEC` function returns "yes" if the required `DEM`uxer and `DEC`oder, in this case the `mpegts` demuxer and `dca` decoder, are enabled. So `fate-dts`, the target name of the test, gets added into `FATE_SAMPLES_AUDIO-yes` variable.
     31
     32Then, if you look at the end of the file:
    3133
    3234{{{
     
    3840The enabled tests are added into `FATE_SAMPLES_AUDIO` and subsequently `FATE_SAMPLES_FFMPEG` variable, which then of course gets called when doing `make fate`.
    3941
     42Using this kind of system guarantees that if a person builds FFmpeg with certain parts disabled, the FATE test will skip the disabled parts.
     43
    4044Keep in mind that different tests may have different variable prefixes. Not all tests can be categorized into `FATE_SAMPLES_FFMPEG` variable.
    4145
    42 If only one component for the test you want to add is required, you can replace `$(call DEMDEC, MPEGTS, DCA)` to `$(CONFIG_*)`.
     46If only one component for the test you want to add is required, you can replace `$(call DEMDEC, MPEGTS, DCA)` with `$(CONFIG_*)`.
    4347
    4448== Filter Tests ==