Project:Perl/maint-notes/dev-perl/Audio-Mixer

From Gentoo Wiki
Jump to: navigation, search

Tests

This package needs access to /dev/mixer in order to run tests.

This means you need:

  • a Kernel with OSS compat Support
  • snd-pcm-oss loaded
  • Permissions to write to /dev/mixer (eg: chmod a+rw /dev/mixer or ensure portage is in the audio group)
  • FEATURES="-usersandbox"
  • AUDIO_MIXER_HW_TEST=1

However, test suite is still known to fail with all the above considered due to RT123260, and subsequently, after this test is run, your mixer level will be maxed out.

CODE
 * Compile testing Audio::Mixer 0.7 ...                                  [ ok ]
 * Test::Harness Jobs=3
make -j3 --load-average=4 test TEST_VERBOSE=0 
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Mixer.bs blib/arch/auto/Audio/Mixer/Mixer.bs 644
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/basic.t .. 1/7 
#   Failed test 'Set left channel to 50'
#   at t/basic.t line 15.
#          got: '255'
#     expected: '50'

#   Failed test 'Set right channel to 50'
#   at t/basic.t line 16.
#          got: '255'
#     expected: '50'
# Looks like you failed 2 tests of 7.
t/basic.t .. Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/7 subtests 

Test Summary Report
-------------------
t/basic.t (Wstat: 512 Tests: 7 Failed: 2)
  Failed tests:  4-5
  Non-zero exit status: 2
Files=1, Tests=7,  0 wallclock secs ( 0.02 usr  0.01 sys +  0.06 cusr  0.01 csys =  0.10 CPU)
Result: FAIL