Skip to content
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

Test suite fails (with older Config::Model?) #6

Open
eserte opened this issue Dec 16, 2019 · 0 comments
Open

Test suite fails (with older Config::Model?) #6

eserte opened this issue Dec 16, 2019 · 0 comments

Comments

@eserte
Copy link

@eserte eserte commented Dec 16, 2019

t/model_tests.t fails on some of my smoker systems:

#   Failed test 'compare original systemd-user custom data with 2nd instance custom data'
#   at /home/cpansand/.cpan/build/2019121607/Config-Model-Tester-4.005-0/blib/lib/Config/Model/Tester.pm line 658.
# --- Got
# +++ Expected
# @@ -1,4 +1 @@
# -[
# +[]
# -  'service:gmail -',
# -  'socket:gmail - -'
# -]

#   Failed test 'compare original systemd-user custom data with 2nd instance custom data'
#   at /home/cpansand/.cpan/build/2019121607/Config-Model-Tester-4.005-0/blib/lib/Config/Model/Tester.pm line 658.
# --- Got
# +++ Expected
# @@ -1,4 +1 @@
# -[
# +[]
# -  'service:gmail -',
# -  'socket:gmail - -'
# -]

#   Failed test 'first check 'service:obex Unit Description' value'
#   at /home/cpansand/.cpan/build/2019121607/Config-Model-Tester-4.005-0/blib/lib/Config/Model/Tester.pm line 313.
#          got: undef
#     expected: 'Le service Obex a la dent bleue'

#   Failed test 'first check 'service:obex Unit Description' value (mode user)'
#   at /home/cpansand/.cpan/build/2019121607/Config-Model-Tester-4.005-0/blib/lib/Config/Model/Tester.pm line 313.
#          got: 'Bluetooth OBEX service'
#     expected: 'Le service Obex a la dent bleue'

#   Failed test 'compare original systemd-user custom data with 2nd instance custom data'
#   at /home/cpansand/.cpan/build/2019121607/Config-Model-Tester-4.005-0/blib/lib/Config/Model/Tester.pm line 658.
# --- Got
# +++ Expected
# @@ -1,4 +1,3 @@
#  [
# -  'service:obex -',
# -  'socket:obex - -'
# +  'service:obex - -'
#  ]

#   Failed test 'check added or removed files'
#   at /home/cpansand/.cpan/build/2019121607/Config-Model-Tester-4.005-0/blib/lib/Config/Model/Tester.pm line 450.
# --- Got
# +++ Expected
# @@ -1,4 +1,3 @@
#  [
# -  '/home/joe/.config/systemd/user/obex.service',
#    '/usr/lib/systemd/user/obex.service'
#  ]

#   Failed test 'check that home/joe/.config/systemd/user/test.service matches regexp (?^:from scratch)'
#   at /home/cpansand/.cpan/build/2019121607/Config-Model-Tester-4.005-0/blib/lib/Config/Model/Tester.pm line 422.
#     Could not open file wr_root/model_tests/test-from-scratch/home/joe/.config/systemd/user/test.service: Datei oder Verzeichnis nicht gefunden
Unhandled type: REGEXP at /usr/perl5.18.4p/lib/site_perl/5.18.4/Devel/Cycle.pm line 107.
# Looks like you failed 7 tests of 170.
t/model_tests.t ... 
Dubious, test returned 7 (wstat 1792, 0x700)
Failed 7/170 subtests 

Statistical analysis suggests that this happens if Config::Model is too old:

****************************************************************
Regression 'mod:Config::Model'
****************************************************************
Name           	       Theta	      StdErr	 T-stat
[0='const']    	      0.0000	      0.0000	   2.86
[1='eq_2.135'] 	     -0.0000	      0.0000	  -2.72
[2='eq_2.136'] 	      1.0000	      0.0000	22271822115397260.00
[3='eq_2.137'] 	      1.0000	      0.0000	25312263061061308.00

R^2= 1.000, N= 45, K= 4
****************************************************************
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.