Use caps for log-levels in tests

why;
  Using nimble installed chronicles (as documented in the readme) fails
  to compile unless the log-level "info" is spelled "INFO".
This commit is contained in:
Jordan Hrycaj 2021-07-28 11:25:08 +01:00 committed by Jordan Hrycaj
parent 2af07c5736
commit 00440b6eff

View File

@ -28,17 +28,17 @@ task test, "run tests":
# dont't need to run it, only want to test if it is compileable # dont't need to run it, only want to test if it is compileable
exec "nim c -c --verbosity:0 --hints:off -d:chronicles_log_level=TRACE -d:chronicles_sinks:json ./tests/testcommon" exec "nim c -c --verbosity:0 --hints:off -d:chronicles_log_level=TRACE -d:chronicles_sinks:json ./tests/testcommon"
exec "nim --hints:off c -r --opt:speed -d:debug --verbosity:0 --hints:off -d:chronicles_log_level=info ./tests/testcommon.nim" exec "nim --hints:off c -r --opt:speed -d:debug --verbosity:0 --hints:off -d:chronicles_log_level=INFO ./tests/testcommon.nim"
rmFile "./tests/testcommon" rmFile "./tests/testcommon"
exec "nim --hints:off c -r --opt:speed -d:debug --verbosity:0 --hints:off -d:chronicles_log_level=info ./tests/testwebsockets.nim" exec "nim --hints:off c -r --opt:speed -d:debug --verbosity:0 --hints:off -d:chronicles_log_level=INFO ./tests/testwebsockets.nim"
rmFile "./tests/testwebsockets" rmFile "./tests/testwebsockets"
exec "nim --hints:off -d:secure c -r --opt:speed -d:debug --verbosity:0 --hints:off -d:chronicles_log_level=info ./tests/testwebsockets.nim" exec "nim --hints:off -d:secure c -r --opt:speed -d:debug --verbosity:0 --hints:off -d:chronicles_log_level=INFO ./tests/testwebsockets.nim"
rmFile "./tests/testwebsockets" rmFile "./tests/testwebsockets"
exec "nim --hints:off -d:accepts c -r --opt:speed -d:debug --verbosity:0 --hints:off -d:chronicles_log_level=info ./tests/testwebsockets.nim" exec "nim --hints:off -d:accepts c -r --opt:speed -d:debug --verbosity:0 --hints:off -d:chronicles_log_level=INFO ./tests/testwebsockets.nim"
rmFile "./tests/testwebsockets" rmFile "./tests/testwebsockets"
exec "nim --hints:off -d:secure -d:accepts c -r --opt:speed -d:debug --verbosity:0 --hints:off -d:chronicles_log_level=info ./tests/testwebsockets.nim" exec "nim --hints:off -d:secure -d:accepts c -r --opt:speed -d:debug --verbosity:0 --hints:off -d:chronicles_log_level=INFO ./tests/testwebsockets.nim"
rmFile "./tests/testwebsockets" rmFile "./tests/testwebsockets"