-
Notifications
You must be signed in to change notification settings - Fork 50
Add python nosetests #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add python nosetests #105
Conversation
cchampet
commented
Oct 7, 2014
- 16 tests.
- Travis: launch tests after build.
- Update python module and avtranscoder python library.
- fix Add nosetests #76
* Contains 2 nose-tests: * testAddMetadataDate: add metadata 'date' to the outputFile. * testAddMetadataPlo: check if metadata 'plop' is not added to the outputFile.
* Add 6 nose-tests about dummy. * Add 2 nose-tests about rewrap. * Add 6 nose-tests about transcode.
…into dev_pyTest
* Modules are in lower cases (python...). * Install python module in site-packages/pyAvTranscoder directory. * Update import of avtranscoder module for pyTests.
For Python binding, need to compile the wrapper into a lib called _<module_name>.so
ProgressListener to NoDisplayProgress.
* Create a tuple which can be use after in the assert. * Rename testAddMetadataPlop to testAddImpossibleMetadata (update comment).
ProgressListener to NoDisplayProgress.
ProgressListener to NoDisplayProgress.
ProgressListener to NoDisplayProgress.
Two variables are used in tests: * AVTRANSCODER_TEST_AUDIO_FILE * AVTRANSCODER_TEST_VIDEO_FILE
* Temporary solution, to launch tests with Travis.
Comment this test because of a crash (due to pixel format YUV420).
Remove spaces and semicolons.
cde969d
to
034a085
Compare
Problem: Travis doesn't found nosetests command. |
|
3a0896d
to
d1e852a
Compare
d7d06c5
to
d3b3c56
Compare
* Travis failed if tests failed. * Launch tests on Linux (with ffmpeg 2.2.9) and MacOS (with ffmpeg 2.2.3).
I did not succeed to add and install the FFmpeg version I wanted with the daily updated package. Ubuntu took a too old FFmpeg version... |
What do you think @MarcAntoine-Arnaud ? ;) |
FFmpeg's homebrew formula is 2.4.2! No need to looking for a bottle of FFmpeg elsewhere.
* After audio rewrap, check: * format * the audio stream * After video rewrap, check: * format * the video stream
avcodec_close( _codecContext ); | ||
av_free( _codecContext ); | ||
_codecContext = NULL; | ||
if( ! _codecContext ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would not it be if( _codecContext ) instead of if( ! _codecContext ) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed with @valnoel
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh my mistake, so currently i free nothing !
* Close and free avcodec in destructor only if AVCodecContext and AVCodec are not NULL. * Generator Video / Audio: get a pointer to an ICodec, because we set its codec from the outside (method setVideoCodec / setAudioCodec). And this codec outside will be free elsewhere.
* Cast only one time (for video or audio cases). * Use reference when cast (it was not the case for video).
Add python nosetests