whiteknight/imcc_interfaces branch ready for testing

Andy Dougherty doughera at lafayette.edu
Wed Jan 26 14:59:45 UTC 2011


On Tue, 25 Jan 2011, Andy Dougherty wrote:

> On Mon, 24 Jan 2011, Andrew Whitworth wrote:
> 
> > The whiteknight/imcc_interfaces branch is ready for general testing.
> 
> > I've tested this branch on my machines with building Parrot and NQP. I
> > will run Rakudo tests tonight. Any other testing would be much
> > appreciated.
> 
> On Solaris/SPARC, the build failed due to an unterminated C comment 
> starting on line 504 of compilers/imcc/main.c.  I'll fix that (or update) 
> and fire off a new test tonight.

It now builds, but fails the following tests (beyond what fails in master
anyway):

Failed Test                 Stat Wstat Total Fail  List of Failed
-------------------------------------------------------------------------------
t/dynoplibs/debug.t            1   256    12    1  5
t/dynoplibs/io.t                          64    1  7
t/perl/Parrot_Test.t                     112    1  66
t/pmc/filehandle.t             1   256    30    1  24
t/pmc/io_stdin.t               3   768     3    3  1-3
t/pmc/sys.t                    1   256     2    1  1
t/tools/mk_language_shell.t  255 65280     7    4  6-7
18 tests and 776 subtests skipped.
Failed 9/376 test scripts. 12/13643 subtests failed.
Files=376, Tests=13643, 4357 wallclock secs (1478.95 cusr + 315.01 csys = 1793.96 CPU)
Failed 9/376 test programs. 12/13643 subtests failed.

Here are the detailed results from running prove -v on each of the failed 
tests.  No obvious pattern leaps out at me.

$ prove -v t/dynoplibs/debug.t

#   Failed test 'debug_break'
#   at lib/Parrot/Test.pm line 621.
#                   '
# (pdb) '
#     doesn't match '(?-xism:[(]pdb[)] (print I0\n)?1)'
# Looks like you failed 1 test of 12.
t/dynoplibs/debug.t .. 
1..12
ok 1 - getline, getfile
ok 2 - debug_print
ok 3 - debug_print without debugger
ok 4 - debug_backtrace
not ok 5 - debug_break
ok 6 - debug backtrace - Null PMC access
ok 7 - debug backtrace - method not found
ok 8 - debug backtrace - division by 0
ok 9 - debug backtrace - recursion 1
ok 10 - debug backtrace - recursion 2
ok 11 - setfile and setline
ok 12 - setfile and setline
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/12 subtests 

Test Summary Report
-------------------
t/dynoplibs/debug.t (Wstat: 256 Tests: 12 Failed: 1)
  Failed test:  5
  Non-zero exit status: 1
Files=1, Tests=12,  7 wallclock secs ( 0.36 usr  0.05 sys +  2.70 cusr  1.20 csys =  4.31 CPU)
Result: FAIL

$ prove -v t/dynoplibs/io.t
Read error: Bad file number
current instr.: 'main' pc 4 (/net/hubble/export/sans3/doughera/src/parrot/parrot-cc/examples/pasm/cat.pasm:27)
t/dynoplibs/io.t .. 
1..64
ok 1 - read on null PMC throws exception
ok 2 - open opcode delegates to the open method on the FileHandle PMC
ok 3 - bad open_p_s_s
ok 4 - bad open_p_sc_s
ok 5 - bad open_p_s_sc
ok 6 - bad open_p_s
not ok 7 - open pipe for reading
# Have: This is Parrot
# Want: 
ok 8 - fdopen - no close
ok 9 - fdopen_p_i_sc
ok 10 - bad fdopen_p_i_sc
ok 11 - fdopen_p_ic_s
ok 12 - bad fdopen_p_ic_s
ok 13 - fdopen_p_ic_sc
ok 14 - bad fdopen_p_ic_sc
ok 15 - fdopen_p_i_s
ok 16 - bad fdopen_p_i_sc
ok 17 - open_p_s_s
ok 18 - tell_i_p
ok 19 - seek_p_i_i
ok 20 - bad seek_p_i_i
ok 21 - seek_p_ic_i
ok 22 - bad seek_p_ic_i
ok 23 - seek_p_i_ic
ok 24 - bad seek_p_i_ic
ok 25 - seek_p_ic_ic
ok 26 - bad seek_p_ic_ic
ok 27 - seek_p_ic_i_i
ok 28 - bad seek_p_ic_i_i
ok 29 - seek_p_i_i_i
ok 30 - bad seek_p_i_i_i
ok 31 - seek_p_i_ic_i
ok 32 - bad seek_p_i_ic_i
ok 33 - seek_p_ic_ic_i
ok 34 - bad seek_p_ic_ic_i
ok 35 - seek_p_i_i_ic
ok 36 - bad seek_p_i_i_ic
ok 37 - seek_p_ic_i_ic
ok 38 - bad seek_p_ic_i_ic
ok 39 - seek_p_i_ic_ic
ok 40 - bad seek_p_i_ic_ic
ok 41 - seek_p_i_ic_ic
ok 42 - bad seek_p_i_ic_ic
ok 43 - can peek_s closed file
ok 44 - can peek_s_p closed file
ok 45 - can setstdin
ok 46 - read_s_i
ok 47 - read_s_ic
ok 48 - read_s_p_i
ok 49 - read_s_p_i
ok 50 - printerr opcode
ok 51 - can stat_i_sc_ic
ok 52 - can stat_i_s_i
ok 53 - can stat_i_sc_i
ok 54 - can stat_i_i_i
ok 55 - can stat_i_i_ic
ok 56 - can stat_i_i_ic
ok 57 - can stat_i_i_i
ok 58 - bad stat_i_sc_ic
ok 59 - bad stat_i_s_i
ok 60 - setstdout
ok 61 - open pipe for writing
ok 62 - _readline_handler
ok 63 - _read_handler
ok 64 - _print_handler
Failed 1/64 subtests 

Test Summary Report
-------------------
t/dynoplibs/io.t (Wstat: 0 Tests: 64 Failed: 1)
  Failed test:  7
Files=1, Tests=64,  1 wallclock secs ( 0.50 usr  0.03 sys +  0.41 cusr  0.25 csys =  1.19 CPU)
Result: FAIL

$ prove -v t/perl/Parrot_Test.t

#   Failed test 'pir_error_output_like: todo'
#   at t/perl/Parrot_Test.t line 329.
# STDERR is:
# #   Failed (TODO) test 'pir_error_output_like: todo'
# #   at t/perl/Parrot_Test.t line 318.
# # Expected error but exited cleanly
# # Received:
# # foo
# # 
# # Expected:
# # /bar/
# # 
# 
# not:
# #   Failed (TODO) test 'pir_error_output_like: todo'
# #   at t/perl/Parrot_Test.t line 318.
# # Expected error but exited cleanly
# # Received:
# # foo
# #
# # Expected:
# # /bar/
# #
# 
# as expected
# no extension recognized for t/perl/testlib/hello
# no extension recognized for t/perl/testlib/hello
# no extension recognized for t/perl/testlib/hello
t/perl/Parrot_Test.t .. 
1..112
ok 1 - use Parrot::Test;
ok 2 - PARROT_TEST env set
ok 3 - Parrot::Test->can('c_output_is')
ok 4 - Parrot::Test->can('c_output_isnt')
ok 5 - Parrot::Test->can('c_output_like')
ok 6 - Parrot::Test->can('c_output_unlike')
ok 7 - Parrot::Test->can('example_output_is')
ok 8 - Parrot::Test->can('example_output_isnt')
ok 9 - Parrot::Test->can('example_output_like')
ok 10 - Parrot::Test->can('example_error_output_is')
ok 11 - Parrot::Test->can('example_error_output_isnt')
ok 12 - Parrot::Test->can('example_error_output_like')
ok 13 - Parrot::Test->can('language_error_output_is')
ok 14 - Parrot::Test->can('language_error_output_isnt')
ok 15 - Parrot::Test->can('language_error_output_like')
ok 16 - Parrot::Test->can('language_output_is')
ok 17 - Parrot::Test->can('language_output_isnt')
ok 18 - Parrot::Test->can('language_output_like')
ok 19 - Parrot::Test->can('pasm_error_output_is')
ok 20 - Parrot::Test->can('pasm_error_output_isnt')
ok 21 - Parrot::Test->can('pasm_error_output_like')
ok 22 - Parrot::Test->can('pasm_error_output_unlike')
ok 23 - Parrot::Test->can('pasm_output_is')
ok 24 - Parrot::Test->can('pasm_output_isnt')
ok 25 - Parrot::Test->can('pasm_output_like')
ok 26 - Parrot::Test->can('pasm_output_unlike')
ok 27 - Parrot::Test->can('pbc_error_output_is')
ok 28 - Parrot::Test->can('pbc_error_output_isnt')
ok 29 - Parrot::Test->can('pbc_error_output_like')
ok 30 - Parrot::Test->can('pbc_error_output_unlike')
ok 31 - Parrot::Test->can('pbc_output_is')
ok 32 - Parrot::Test->can('pbc_output_isnt')
ok 33 - Parrot::Test->can('pbc_output_like')
ok 34 - Parrot::Test->can('pbc_output_unlike')
ok 35 - Parrot::Test->can('pir_error_output_is')
ok 36 - Parrot::Test->can('pir_error_output_isnt')
ok 37 - Parrot::Test->can('pir_error_output_like')
ok 38 - Parrot::Test->can('pir_error_output_unlike')
ok 39 - Parrot::Test->can('pir_output_is')
ok 40 - Parrot::Test->can('pir_output_isnt')
ok 41 - Parrot::Test->can('pir_output_like')
ok 42 - Parrot::Test->can('pir_output_unlike')
ok 43 - Parrot::Test->can('generate_languages_functions')
ok 44 - Parrot::Test->can('per_test')
ok 45 - Parrot::Test->can('plan')
ok 46 - Parrot::Test->can('skip')
ok 47 - Parrot::Test->can('slurp_file')
ok 48 - Parrot::Test->can('run_command')
ok 49 - Parrot::Test->can('write_code_to_file')
ok 50 - per_test() no args
ok 51 - per_test() invalid first arg
ok 52 - per_test() invalid second arg
ok 53 - per_test() two invalid args
ok 54 - pasm_output_is: success
ok 55 - pasm_output_is: failure
ok 56 - pasm_output_isnt: success
ok 57 - pasm_output_isnt: failure
ok 58 - pasm_output_like: success
ok 59 - pasm_output_like: failure
ok 60 - pir_output_is: success
ok 61 - pir_output_is: failure
ok 62 - pir_output_isnt: success
ok 63 - pir_output_isnt: failure
ok 64 - pir_output_like: success
ok 65 - pir_output_like: failure
not ok 66 - pir_error_output_like: todo
ok 67 - t/perl/testlib/hello.pasm
ok 68 - t/perl/testlib/hello.pasm
ok 69 - t/perl/testlib/hello.pasm
ok 70 - t/perl/testlib/answer.pir
ok 71 - t/perl/testlib/answer.pir
ok 72 - t/perl/testlib/answer.pir
ok 73 - C:  is hello world
ok 74 - C:  isnt hello world
ok 75 - C:  like hello world
ok 76 - C:  unlike hello world
ok 77 - Got expected value for STDOUT
ok 78 - Got expected value for STDERR
ok 79 - Got expected value for working directory
ok 80 - Got expected value for STDOUT
ok 81 - Got expected value for STDERR
ok 82 - Got expected value for working directory
ok 83 - Got expected value for STDOUT
ok 84 - Got expected value for STDERR
ok 85 - Got expected value for working directory
ok 86 - Got expected error message for bad option
ok 87 - Got expected value for STDOUT
ok 88 - Got expected value for STDERR using null device
ok 89 - Got expected value for working directory
ok 90 - Got expected value for STDOUT
ok 91 - Got expected value for STDERR when same as STDOUT
ok 92 - Got expected value for working directory
ok 93 - $ENV{PATH} reset as expected for cygwin
ok 94 - $ENV{PATH} reset as expected for MSWin32
ok 95 - $ENV{LD_RUN_PATH} reset as expected for not_cygwin_not_MSWin32
ok 96 - Scalar command transformed into array ref as expected
ok 97 - Array ref holding multiple commands unchanged as expected
ok 98 - Got expected value in Valgrind environment
ok 99 - Got expected exit message
ok 100 - Got expected exit message
ok 101 - Got expected exit message
ok 102 - Got expected exit message
ok 103 - Got expected exit message
ok 104 - Got expected exit message
ok 105 - Captured STDOUT
ok 106 - Got 0 as exit message
ok 107 # skip feature not DWIMming even though test passes
ok 108 - pir_output_is: success
ok 109 - file created during test preserved due to $ENV{POSTMORTEM}
ok 110 - file created during test has been deleted
ok 111 - pir_output_is: success
ok 112 - file created during test was not retained
Failed 1/112 subtests 
	(less 1 skipped subtest: 110 okay)

Test Summary Report
-------------------
t/perl/Parrot_Test.t (Wstat: 0 Tests: 112 Failed: 1)
  Failed test:  66
Files=1, Tests=112, 15 wallclock secs ( 0.63 usr  0.05 sys +  4.81 cusr  3.05 csys =  8.54 CPU)
Result: FAIL

$ prove -v t/pmc/filehandle.t

#   Failed test 'exit status'
#   at t/pmc/filehandle.t line 779.
#          got: 'expect 0 exit status: 1
# expect 1 exit status: 1
# '
#     expected: 'expect 0 exit status: 0
# expect 1 exit status: 1
# '
# Looks like you failed 1 test of 30.
t/pmc/filehandle.t .. 
1..30
ok 1 - new
ok 2 - open and close - synchronous
ok 3 - wrong open
ok 4 - isatty
ok 5 # skip no asynch calls yet
ok 6 - read - synchronous
ok 7 - read_bytes - synchronous
ok 8 - print - synchronous
ok 9 - readline - synchronous
ok 10 - readline 10,000 lines
ok 11 - record_separator
not ok 12 - record_separator, multiple chars # TODO not yet implemented
#   Failed (TODO) test 'record_separator, multiple chars'
#   at t/pmc/filehandle.t line 430.
# Exited with error code: 1
# Received:
# Record separator must be a single character
# current instr.: 'test' pc 13 (/net/hubble/export/sans3/doughera/src/parrot/parrot-cc/t/pmc/filehandle_12.pir:5)
# 
# Expected:
# ok 1 - $P0.record_separator($S1)
# ok 2 - $P0.record_separator() # .readline works as expected
# 
ok 13 - buffer_type
ok 14 - buffer_size
ok 15 - encoding
ok 16 - encoding - read/write
ok 17 - mode
ok 18 - clone preserves all attributes of filehandle
ok 19 - readall - closed filehandle
ok 20 - readall() - opened filehandle
ok 21 - readall - failure conditions
ok 22 - readall() - utf8 on closed filehandle
ok 23 - readall() - utf8 on opened filehandle
not ok 24 - exit status
ok 25 # skip Timely destruction is deprecated. TT#1800
ok 26 - get_bool
ok 27 - get_fd method
ok 28 - write after buffered read
ok 29 - small reads and seeks
ok 30 - partial multibyte char in buffer
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/30 subtests 
	(less 2 skipped subtests: 27 okay)

Test Summary Report
-------------------
t/pmc/filehandle.t (Wstat: 256 Tests: 30 Failed: 1)
  Failed test:  24
  Non-zero exit status: 1
Files=1, Tests=30, 15 wallclock secs ( 0.50 usr  0.02 sys +  5.65 cusr  2.94 csys =  9.11 CPU)
Result: FAIL

$ prove -v t/pmc/io_stdin.t

#   Failed test 'simple stdin use'
#   at lib/Parrot/Test.pm line 605.
#          got: 'Read error: Bad file number
# current instr.: 'read_str' pc 60 (/tmp/hmgJ0QA69x:14)
# called from Sub 'test' pc 11 (/tmp/hmgJ0QA69x:4)
# '
#     expected: 'got len 1:  "f"
# got len 2:  "oo"
# got len 1:  "
# "
# got len 0:  ""
# '

#   Failed test 'readline from stdin'
#   at lib/Parrot/Test.pm line 605.
#          got: 'Read error: Bad file number
# current instr.: 'read_str' pc 54 (/tmp/1UGhYy9KT5:13)
# called from Sub 'test' pc 10 (/tmp/1UGhYy9KT5:4)
# '
#     expected: 'got len 4:  "one
# "
# got len 4:  "two
# "
# got len 6:  "three
# "
# got len 0:  ""
# '

#   Failed test 'readall from stdin'
#   at lib/Parrot/Test.pm line 605.
#          got: 'Read error: Bad file number
# current instr.: 'read_str' pc 34 (/tmp/FOBU8q7_kJ:11)
# called from Sub 'test' pc 10 (/tmp/FOBU8q7_kJ:4)
# '
#     expected: 'got len 14:  "one
# two
# three
# "
# got len 0:  ""
# '
# Looks like you failed 3 tests of 3.
t/pmc/io_stdin.t .. 
1..3
not ok 1 - simple stdin use
not ok 2 - readline from stdin
not ok 3 - readall from stdin
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/3 subtests 

Test Summary Report
-------------------
t/pmc/io_stdin.t (Wstat: 768 Tests: 3 Failed: 3)
  Failed tests:  1-3
  Non-zero exit status: 3
Files=1, Tests=3,  4 wallclock secs ( 0.37 usr  0.02 sys +  1.46 cusr  0.44 csys =  2.29 CPU)
Result: FAIL

$ prove -v t/pmc/sys.t

#   Failed test 'spawnw, _config'
#   at t/pmc/sys.t line 29.
#          got: 'Read error: Bad file number
# 256
# '
#     expected: 'Hello, World!
# 0
# '
# Looks like you failed 1 test of 2.
t/pmc/sys.t .. 
1..2
not ok 1 - spawnw, _config
ok 2 - conf_hash is read-only
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests 

Test Summary Report
-------------------
t/pmc/sys.t (Wstat: 256 Tests: 2 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
Files=1, Tests=2,  3 wallclock secs ( 0.38 usr  0.01 sys +  1.35 cusr  0.57 csys =  2.31 CPU)
Result: FAIL

$ prove -v t/tools/mk_language_shell.t
Unable to execute setup.pir at t/tools/mk_language_shell.t line 68
# Looks like you planned 7 tests but ran 5.
# Looks like your test exited with 2 just after 5.
t/tools/mk_language_shell.t .. 
1..7
ok 1 - mk_language_shell basic sanity
ok 2 - test_parrot_language_19761 dir exists
ok 3 - test_parrot_language_19761/t dir exists
ok 4 - test_parrot_language_19761/src dir exists
ok 5 - test_parrot_language_19761/setup.pir exists and has nonzero size
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/7 subtests 

Test Summary Report
-------------------
t/tools/mk_language_shell.t (Wstat: 512 Tests: 5 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 7 tests but ran 5.
Files=1, Tests=5, 23 wallclock secs ( 0.36 usr  0.03 sys + 15.59 cusr  1.65 csys = 17.63 CPU)
Result: FAIL


-- 
    Andy Dougherty		doughera at lafayette.edu


More information about the parrot-dev mailing list