Skip to content

Commit

Permalink
Merge pull request #84 from steffenfritz/add_tests
Browse files Browse the repository at this point in the history
added change test to Taskfile for ftrove
  • Loading branch information
steffenfritz authored May 30, 2024
2 parents ff3f02c + c235488 commit 8cb1539
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ tasks:
vars:
GIT_COMMIT:
sh: git log -n 1 --format=%h

test:
cmds:
- go test -v

fuzz:
cmds:
# workaround with ld_cla needed on MacOS due to a bug in Apples new linker: https://github.com/golang/go/issues/65169
# update 2024-05-15: With the latest MacOS update 14.5 the legacy linker is not available anymore
#- go test -fuzz=Fuzz -test.fuzztime 10s -ldflags=-extldflags=-Wl,-ld_cla
- go test -fuzz=Fuzz -test.fuzztime 10s
- go test -fuzz=Fuzz -test.fuzztime 10s
10 changes: 10 additions & 0 deletions cmd/ftrove/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ tasks:
GIT_COMMIT:
sh: git log -n 1 --format=%h

changetest:
cmds:
- go test -v ../../
- task: build
- ./ftrove --install .
- ./ftrove -i ../../testdata -d ../../testdata/dublincore_ex.json -e -p "testing a change. full test." -z "Europe/Berlin"
- ./ftrove -l
- sqlite3 db/filetrove.db "select * from files;" ".exit"
- sqlite3 db/filetrove.db "select * from directories;" ".exit"
- task: clean

build_linux_amd:
cmds:
Expand Down

0 comments on commit 8cb1539

Please sign in to comment.