Skip to content

Commit

Permalink
Rename package
Browse files Browse the repository at this point in the history
  • Loading branch information
aibor committed Oct 27, 2023
1 parent c1335ae commit 2002966
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PIDONETEST := $(GOBIN)/pidonetest
export GOBIN

$(PIDONETEST):
go install github.com/aibor/go-pidonetest/cmd/pidonetest@main
go install github.com/aibor/pidonetest/cmd/pidonetest@main

.PHONY: test-installed-wrapped
test-installed-wrapped: $(PIDONETEST)
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# go-pidonetest
# pidonetest

[![PkgGoDev](https://pkg.go.dev/badge/github.com/aibor/go-pideonetest)](https://pkg.go.dev/github.com/aibor/go-pidonetest)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/aibor/go-pideonetest)](https://pkg.go.dev/github.com/aibor/pidonetest)

go-pidonetest is a library and binary QEMU wrapper for running go tests in an
pidonetest is a library and binary QEMU wrapper for running go tests in an
isolated system as PID 1.

See [Go package reference](https://pkg.go.dev/github.com/aibor/go-pidonetest)
See [Go package reference](https://pkg.go.dev/github.com/aibor/pidonetest)
for full package documentation.

The package uses itself for testing, so see
Expand Down
2 changes: 1 addition & 1 deletion cmd/pidonetest/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"strings"

"github.com/aibor/go-pidonetest/internal"
"github.com/aibor/pidonetest/internal"
)

func parseArgs(args []string, testBinaryPath *string, qemuCmd *internal.QEMUCommand, wrap *bool) error {
Expand Down
4 changes: 2 additions & 2 deletions cmd/pidonetest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"path/filepath"
"syscall"

"github.com/aibor/go-pidonetest"
"github.com/aibor/go-pidonetest/internal"
"github.com/aibor/pidonetest"
"github.com/aibor/pidonetest/internal"
)

func run() (int, error) {
Expand Down
6 changes: 3 additions & 3 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
//
// Or build and run on the fly with "go run":
//
// $ go test -exec 'go run github.com/aibor/go-pidonetest/cmd/pidonetest -wrap' .
// $ go test -exec 'go run github.com/aibor/pidonetest/cmd/pidonetest -wrap' .
//
// There is also support for coverage profiles. Just specify it as usual:
//
Expand Down Expand Up @@ -42,7 +42,7 @@
// import (
// "testing"
//
// "github.com/aibor/go-pidonetest"
// "github.com/aibor/pidonetest"
// )
//
// func TestMain(m *testing.M) {
Expand All @@ -65,7 +65,7 @@
//
// Or build and run on the fly with "go run":
//
// $ go test -tags pidonetest -exec 'go run github.com/aibor/go-pidonetest/cmd/pidonetest' .
// $ go test -tags pidonetest -exec 'go run github.com/aibor/pidonetest/cmd/pidonetest' .
//
// There is also support for coverage profiles. Just specify it as usual:
//
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/aibor/go-pidonetest
module github.com/aibor/pidonetest

go 1.21.3

Expand Down
2 changes: 1 addition & 1 deletion internal/qemu_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

"github.com/aibor/go-pidonetest/internal"
"github.com/aibor/pidonetest/internal"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package pidonetest_test
import (
"testing"

"github.com/aibor/go-pidonetest"
"github.com/aibor/pidonetest"
)

func TestMain(m *testing.M) {
Expand Down
2 changes: 1 addition & 1 deletion pidonetest.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"syscall"
"testing"

"github.com/aibor/go-pidonetest/internal"
"github.com/aibor/pidonetest/internal"
)

// NotPidOneError is returned if the process does not have PID 1.
Expand Down

0 comments on commit 2002966

Please sign in to comment.