summaryrefslogtreecommitdiff
path: root/test/handler/test_bitbake_oelint_adv_handler.vader
blob: a52e88107e149749eb106e3d5865ddaed08506ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Before:
  runtime ale_linters/bitbake/oelint_adv.vim

After:
  Restore

  call ale#linter#Reset()

Execute(The oelint_adv handler should handle warnings):
  AssertEqual
  \ [
  \   {
  \     'lnum': 1234,
  \     'type': 'I',
  \     'code': 'oelint.var.suggestedvar.BUGTRACKER',
  \     'text': 'Variable ''BUGTRACKER'' should be set',
  \   },
  \   {
  \     'lnum': 17,
  \     'type': 'E',
  \     'code': 'oelint.var.mandatoryvar.DESCRIPTION',
  \     'text': 'Variable ''DESCRIPTION'' should be set',
  \   },
  \ ],
  \ ale_linters#bitbake#oelint_adv#Handle(1, [
  \   '/meta-x/recipes-y/example/example_1.0.bb:1234:info:oelint.var.suggestedvar.BUGTRACKER:Variable ''BUGTRACKER'' should be set',
  \   'example2_1.1.bb:17:error:oelint.var.mandatoryvar.DESCRIPTION:Variable ''DESCRIPTION'' should be set',
  \ ])