Skip to content

Commit

Permalink
v0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS committed Jun 24, 2024
1 parent ba14259 commit c6df733
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: |
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
TAG="v0.0.1-$(date +'%Y%m%d%H%M%S')"
TAG="v0.0.2-$(date +'%Y%m%d%H%M%S')"
git tag $TAG
git push origin $TAG
env:
Expand Down
10 changes: 5 additions & 5 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"runtime"
"strings"

"github.com/oneclickvirt/disktest/disktest"
"github.com/oneclickvirt/disktest/disk"
)

func main() {
Expand All @@ -25,7 +25,7 @@ func main() {
testPathPtr := flag.String("p", "", "Specific Test Disk Path (default is /root or C:)")
flag.Parse()
if showVersion {
fmt.Println(disktest.DiskTestVersion)
fmt.Println(disk.DiskTestVersion)
return
}
var language, res, testMethod, testPath string
Expand All @@ -51,12 +51,12 @@ func main() {
testPath = strings.TrimSpace(strings.ToLower(*testPathPtr))
}
if runtime.GOOS == "windows" {
res = disktest.WinsatTest(language, isMultiCheck, testPath)
res = disk.WinsatTest(language, isMultiCheck, testPath)
} else {
if testMethod == "fio" {
res = disktest.FioTest(language, isMultiCheck, testPath)
res = disk.FioTest(language, isMultiCheck, testPath)
} else if testMethod == "dd" {
res = disktest.DDTest(language, isMultiCheck, testPath)
res = disk.DDTest(language, isMultiCheck, testPath)
}
}
fmt.Printf(res)
Expand Down
2 changes: 1 addition & 1 deletion disktest/disktest.go → disk/disktest.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package disktest
package disk

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion disktest/utils.go → disk/utils.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package disktest
package disk

import (
"fmt"
Expand Down
3 changes: 3 additions & 0 deletions disk/version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package disk

const DiskTestVersion = "v0.0.2"
3 changes: 0 additions & 3 deletions disktest/version.go

This file was deleted.

0 comments on commit c6df733

Please sign in to comment.