summaryrefslogtreecommitdiffstats
path: root/source/filesystem_unix_test.go
diff options
context:
space:
mode:
authorNoah Campbell <noahcampbell@gmail.com>2013-09-20 20:05:20 -0700
committerNoah Campbell <noahcampbell@gmail.com>2013-09-20 20:08:52 -0700
commit8df88496e24c80298ff8d8d1d36a67974e56a7e2 (patch)
tree621d522e87f70a5937f6011dbb6db2e450154d58 /source/filesystem_unix_test.go
parentbffe4baf4297b0fd3b46cbaac2cb4e99577fadf1 (diff)
Fix breaking test cases on unix platform
Rename platform parameter file to agnostic name. Both darwin and linux can share the same paramters.
Diffstat (limited to 'source/filesystem_unix_test.go')
-rw-r--r--source/filesystem_unix_test.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/filesystem_unix_test.go b/source/filesystem_unix_test.go
new file mode 100644
index 000000000..fffc0c3b3
--- /dev/null
+++ b/source/filesystem_unix_test.go
@@ -0,0 +1,14 @@
+// +build linux,darwin
+package source
+
+//
+// NOTE, any changes here need to be reflected in filesystem_windows_test.go
+//
+var platformBase = "/base/"
+var platformPaths = []TestPath{
+ {"foobar", "foobar", "aaa", "", ""},
+ {"b/1file", "1file", "aaa", "b", "b/"},
+ {"c/d/2file", "2file", "aaa", "d", "c/d/"},
+ {"/base/e/f/3file", "3file", "aaa", "f", "e/f/"},
+ {"section/foo.rss", "foo.rss", "aaa", "section", "section/"},
+}