]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/loglevels.ly
Loglevels: Fix version number in regtest
[lilypond.git] / input / regression / loglevels.ly
1 \version "2.15.9"
2
3 #(ly:set-option 'warning-as-error #f)
4
5 \header{
6   texidoc="
7 Test the different loglevels of lilypond. Run this file with --loglevel=NONE,
8 ERROR, WARNING, PROGRESS, DEBUG to see the different loglevels. The errors
9 are commented out. Comment them in to check the output manually.
10 "
11 }
12
13 %%%% message functions of the Input class:
14 #(display "\nMessage functions of the Input class:\n")
15
16 messageTest = #(define-music-function (parser location) ()
17    (ly:input-message location "Test ly:input-message" )
18    (make-music 'Music))
19
20 {
21 %   #(display "-) Testing message\n")
22   \messageTest % message
23 %   #(display "-) Testing warning\n")
24   c4( c( c) % warning
25 %   #(display "-) Testing error\n")
26 %   sr  % error
27 }
28
29 %%%% message functions in the warn.hh file:
30 #(display "Message functions in the warn.hh file:\n")
31
32 % #(display "-) Testing debug\n")
33 #(ly:debug "Test debug\n")
34 % #(display "-) Testing progress\n")
35 #(ly:progress "Test progress\n")
36 % #(display "-) Testing message\n")
37 #(ly:message "Test message\n")
38 % #(display "-) Testing warning\n")
39 #(ly:warning "Test warning\n")
40 % #(display "-) Testing error\n")
41 % #(ly:error "Test error\n")