feat: wip: rpm: dedup testdata

This commit is contained in:
Carlos Alexandro Becker
2018-02-04 23:36:02 -02:00
parent dd00fadb3f
commit 19a3378b24
8 changed files with 4 additions and 10 deletions
+2 -2
View File
@@ -24,8 +24,8 @@ func TestDeb(t *testing.T) {
Homepage: "http://carlosbecker.com",
Vendor: "nope",
Files: map[string]string{
"./testdata/fake": "/usr/local/bin/fake",
"./testdata/whatever.conf": "/etc/fake/fake.conf",
"../testdata/fake": "/usr/local/bin/fake",
"../testdata/whatever.conf": "/etc/fake/fake.conf",
},
},
ioutil.Discard,
+2 -2
View File
@@ -28,10 +28,10 @@ func TestRPM(t *testing.T) {
Vendor: "nope",
License: "MIT",
Files: map[string]string{
"./testdata/fake": "/usr/local/bin/fake",
"../testdata/fake": "/usr/local/bin/fake",
},
ConfigFiles: map[string]string{
"./testdata/whatever.conf": "/etc/fake/fake.conf",
"../testdata/whatever.conf": "/etc/fake/fake.conf",
},
},
f,
BIN
View File
Binary file not shown.
-5
View File
@@ -1,5 +0,0 @@
package main
func main() {
println("fake linux binary")
}
-1
View File
@@ -1 +0,0 @@
foo=bar
View File
View File