Skip to content

Commit 23f8483

Browse files
author
Roberto Sora
committedNov 27, 2018
updated testcase for findBaseDir with winavrdude zip content
1 parent 82be52f commit 23f8483

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed
 

‎tools/download_test.go

+9-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,15 @@ func Test_findBaseDir(t *testing.T) {
1818
{[]string{"bin/bossac"}, "bin/"},
1919
{[]string{"bin/", "bin/bossac"}, "bin/"},
2020
{[]string{"bin/", "bin/bossac", "example"}, ""},
21-
{[]string{"avrdude/bin/avrdude", "avrdude/etc/avrdude.conf"}, "avrdude/"},
21+
{[]string{"avrdude/bin/",
22+
"avrdude/bin/avrdude.exe",
23+
"avrdude/bin/remove_giveio.bat",
24+
"avrdude/bin/status_giveio.bat",
25+
"avrdude/bin/giveio.sys",
26+
"avrdude/bin/loaddrv.exe",
27+
"avrdude/bin/libusb0.dll",
28+
"avrdude/bin/install_giveio.bat",
29+
"avrdude/etc/avrdude.conf"}, "avrdude/"},
2230
{[]string{"pax_global_header", "bin/", "bin/bossac"}, "bin/"},
2331
}
2432
for _, tt := range cases {

0 commit comments

Comments
 (0)
Please sign in to comment.