Skip to content

Commit

Permalink
Rewrite fucking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel-Dorta committed Dec 3, 2019
1 parent 3a93772 commit 5776cea
Show file tree
Hide file tree
Showing 12 changed files with 333 additions and 338 deletions.
1 change: 1 addition & 0 deletions cmd/APPIP01WV4_sort/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func main() {

// copy it to its destination
destinyPath := filepath.Join(to, parts.camName, parts.y, parts.m, parts.d, fi.Name())
log.Infof("copying file from %s to %s", fiPath, destinyPath)
if err := utils.Move(fiPath, destinyPath); err != nil {
log.Errorf("error copying file from %s to %s: %s", fiPath, destinyPath, err)
errFound = true
Expand Down
1 change: 0 additions & 1 deletion cmd/generic_listLargeDirs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ func init() {
}
}

//TODO rewrite tests
func main() {
errFound := false
if err := utils.IterateDir(path, func(f os.FileInfo) {
Expand Down
108 changes: 0 additions & 108 deletions cmd/generic_listLargeDirs/main_test.go

This file was deleted.

189 changes: 0 additions & 189 deletions cmd/generic_rmOldCameraData/main_test.go

This file was deleted.

6 changes: 6 additions & 0 deletions test/all_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

TESTS_PATH="${GOPATH}/src/github.com/Miguel-Dorta/surveillance-cameras/test"

"${TESTS_PATH}/generic_listLargeDirs/test.sh"
"${TESTS_PATH}/generic_rmOldCameraData/test.sh"
Loading

0 comments on commit 5776cea

Please sign in to comment.