Browse Source

Add Full Build Test

layerset
Till Wegmüller 6 years ago
parent
commit
213bf02097
  1. 11
      image/build_test.go
  2. 5
      samples/profile.json

11
image/build_test.go

@ -3,8 +3,8 @@
package image
import (
"testing"
"os"
"testing"
)
var fileList = []string{
@ -40,3 +40,12 @@ func TestBuildChroot(t *testing.T) {
checkErr(t, BuildChroot(&profile, "testing-chroot"))
}
}
func TestBUildProfile(t *testing.T){
profile, err := LoadProfile("./samples/profile.json")
checkErr(t, err)
config, err := LoadConfiguration("./samples/imagedefs.json")
checkErr(t, err)
profile.ResolveFiles(&config)
checkErr(t, BuildACI(profile, "testing-full"))
}

5
samples/profile.json

@ -1,14 +1,13 @@
{
"type": "chroot",
"type": "aci",
"file_sets": [
"kernel",
"installd",
"basicshell"
],
"manifest": {
"acKind": "ImageManifest",
"acVersion": "0.8.10+git",
"name": "installd"
"name": "testing"
},
"files": [],
"users": [

Loading…
Cancel
Save