Skip to content

Commit b6ee2fa

Browse files
committed
Change t/filetype-detection to YAML
1 parent c88c5aa commit b6ee2fa

File tree

4 files changed

+48
-88
lines changed

4 files changed

+48
-88
lines changed

MANIFEST

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ t/exit-code.t
9292
t/ext-filter.t
9393
t/file-iterator.t
9494
t/file-permission.t
95-
t/filetype-detection.t
95+
t/filetype-detection.yaml
9696
t/filetypes.t
9797
t/filter.t
9898
t/firstlinematch-filter.t

t/filetype-detection.t

-86
This file was deleted.

t/filetype-detection.yaml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
name: Lua shebang
3+
args:
4+
- t/swamp -f -t lua
5+
- t/swamp -f --lua
6+
stdout: |
7+
t/swamp/lua-shebang-test
8+
9+
---
10+
name: R extensions
11+
args:
12+
- -f -t rr
13+
- -f --rr
14+
stdout: |
15+
t/swamp/example.R
16+
17+
---
18+
name: ASP.NET
19+
args:
20+
- -f -t aspx
21+
- -f --aspx
22+
stdout: |
23+
t/swamp/MasterPage.master
24+
t/swamp/Sample.ascx
25+
t/swamp/Sample.asmx
26+
t/swamp/sample.aspx
27+
t/swamp/service.svc
28+
29+
---
30+
name: Python
31+
args:
32+
- t/swamp -f -t python
33+
- t/swamp -f --python
34+
stdout: |
35+
t/swamp/test.py
36+
t/swamp/foo_test.py
37+
t/swamp/test_foo.py
38+
39+
---
40+
name: Pytest
41+
args:
42+
- t/swamp -f -t pytest
43+
- t/swamp -f --pytest
44+
stdout: |
45+
t/swamp/foo_test.py
46+
t/swamp/test_foo.py

t/yaml.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use warnings;
44
use strict;
55

6-
use Test::More tests => 10;
6+
use Test::More tests => 11;
77

88
use lib 't';
99
use Util;

0 commit comments

Comments
 (0)