|
|
|
@ -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")) |
|
|
|
|
} |