mirror of
https://github.com/mudler/luet.git
synced 2025-09-08 10:39:19 +00:00
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
80bc5429bc | ||
|
9274f87a80 | ||
|
1d651a5878 | ||
|
f7357a60a6 |
4
Makefile
4
Makefile
@@ -19,7 +19,7 @@ fmt:
|
|||||||
test:
|
test:
|
||||||
GO111MODULE=off go get github.com/onsi/ginkgo/ginkgo
|
GO111MODULE=off go get github.com/onsi/ginkgo/ginkgo
|
||||||
GO111MODULE=off go get github.com/onsi/gomega/...
|
GO111MODULE=off go get github.com/onsi/gomega/...
|
||||||
ginkgo -race -r -flakeAttempts 3 ./...
|
ginkgo -r -flakeAttempts 3 ./...
|
||||||
|
|
||||||
.PHONY: test-integration
|
.PHONY: test-integration
|
||||||
test-integration:
|
test-integration:
|
||||||
@@ -27,7 +27,7 @@ test-integration:
|
|||||||
|
|
||||||
.PHONY: coverage
|
.PHONY: coverage
|
||||||
coverage:
|
coverage:
|
||||||
go test ./... -race -coverprofile=coverage.txt -covermode=atomic
|
go test ./... -coverprofile=coverage.txt -covermode=atomic
|
||||||
|
|
||||||
.PHONY: test-coverage
|
.PHONY: test-coverage
|
||||||
test-coverage:
|
test-coverage:
|
||||||
|
@@ -30,7 +30,7 @@ var cfgFile string
|
|||||||
var Verbose bool
|
var Verbose bool
|
||||||
|
|
||||||
const (
|
const (
|
||||||
LuetCLIVersion = "0.22.3"
|
LuetCLIVersion = "0.22.4"
|
||||||
LuetEnvPrefix = "LUET"
|
LuetEnvPrefix = "LUET"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -78,9 +78,11 @@ var _ = Describe("Delta", func() {
|
|||||||
)
|
)
|
||||||
Expect(err).ToNot(HaveOccurred())
|
Expect(err).ToNot(HaveOccurred())
|
||||||
defer os.RemoveAll(tmpdir) // clean up
|
defer os.RemoveAll(tmpdir) // clean up
|
||||||
Expect(file.Exists(filepath.Join(tmpdir, "home"))).To(BeFalse())
|
// Cache from go
|
||||||
Expect(file.Exists(filepath.Join(tmpdir, "root", ".cache"))).To(BeTrue())
|
Expect(file.Exists(filepath.Join(tmpdir, "root", ".cache"))).To(BeTrue())
|
||||||
|
// sh is present from alpine, hence not in the result
|
||||||
Expect(file.Exists(filepath.Join(tmpdir, "bin", "sh"))).To(BeFalse())
|
Expect(file.Exists(filepath.Join(tmpdir, "bin", "sh"))).To(BeFalse())
|
||||||
|
// /usr/local/go is part of golang:alpine
|
||||||
Expect(file.Exists(filepath.Join(tmpdir, "usr", "local", "go"))).To(BeTrue())
|
Expect(file.Exists(filepath.Join(tmpdir, "usr", "local", "go"))).To(BeTrue())
|
||||||
Expect(file.Exists(filepath.Join(tmpdir, "usr", "local", "go", "bin"))).To(BeTrue())
|
Expect(file.Exists(filepath.Join(tmpdir, "usr", "local", "go", "bin"))).To(BeTrue())
|
||||||
})
|
})
|
||||||
|
@@ -24,11 +24,11 @@ import (
|
|||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestMutator(t *testing.T) {
|
func TestImageApi(t *testing.T) {
|
||||||
RegisterFailHandler(Fail)
|
RegisterFailHandler(Fail)
|
||||||
b := backend.NewSimpleDockerBackend(context.NewContext())
|
b := backend.NewSimpleDockerBackend(context.NewContext())
|
||||||
b.DownloadImage(backend.Options{ImageName: "alpine"})
|
b.DownloadImage(backend.Options{ImageName: "alpine"})
|
||||||
b.DownloadImage(backend.Options{ImageName: "golang:alpine"})
|
b.DownloadImage(backend.Options{ImageName: "golang:alpine"})
|
||||||
|
|
||||||
RunSpecs(t, "Mutator API Suite")
|
RunSpecs(t, "Image API Suite")
|
||||||
}
|
}
|
||||||
|
@@ -23,7 +23,7 @@ coveragetxt="coverage.txt"
|
|||||||
|
|
||||||
|
|
||||||
generate_cover_data() {
|
generate_cover_data() {
|
||||||
ginkgo -flakeAttempts=3 -failFast -race -cover -r .
|
ginkgo -flakeAttempts=3 -failFast -cover -r .
|
||||||
echo "" > ${coveragetxt}
|
echo "" > ${coveragetxt}
|
||||||
find . -type f -name "*.coverprofile" | while read -r file; do cat "$file" >> ${coveragetxt} && mv "$file" "${coverdir}"; done
|
find . -type f -name "*.coverprofile" | while read -r file; do cat "$file" >> ${coveragetxt} && mv "$file" "${coverdir}"; done
|
||||||
echo "mode: $covermode" >"$profile"
|
echo "mode: $covermode" >"$profile"
|
||||||
|
Reference in New Issue
Block a user