commit
8c41011e5e
1 changed files with 15 additions and 1 deletions
|
@ -3,10 +3,12 @@
|
||||||
load helpers
|
load helpers
|
||||||
|
|
||||||
@test "build from RPMS" {
|
@test "build from RPMS" {
|
||||||
|
local d
|
||||||
d=$(mktemp -d)
|
d=$(mktemp -d)
|
||||||
|
echo "temporary directory: ${d}"
|
||||||
|
|
||||||
run_ctr -v $(pwd)/.testprep/srpms/:/src:ro -v ${d}:/output/ $CTR_IMAGE -s /src
|
run_ctr -v $(pwd)/.testprep/srpms/:/src:ro -v ${d}:/output/ $CTR_IMAGE -s /src
|
||||||
[ "$status" -eq 0 ]
|
[ "$status" -eq 0 ]
|
||||||
#echo ${lines[@]}
|
|
||||||
[[ ${lines[0]} =~ "[SrcImg][INFO] calling source collection drivers" ]]
|
[[ ${lines[0]} =~ "[SrcImg][INFO] calling source collection drivers" ]]
|
||||||
# get the number of the last line
|
# get the number of the last line
|
||||||
n=$(expr ${#lines[@]} - 1)
|
n=$(expr ${#lines[@]} - 1)
|
||||||
|
@ -24,3 +26,15 @@ load helpers
|
||||||
[ -f "${d}/blobs/sha256/7f4a50f05b7bd38017be8396b6320e1d2e6a05af097672e3ed23ef3df2ddeadb" ]
|
[ -f "${d}/blobs/sha256/7f4a50f05b7bd38017be8396b6320e1d2e6a05af097672e3ed23ef3df2ddeadb" ]
|
||||||
[ -f "${d}/blobs/sha256/8f4e610748f8b58a3297ecf78ecc8ff7b6420c3e559e3e20cad8ac178c6fe4e8" ]
|
[ -f "${d}/blobs/sha256/8f4e610748f8b58a3297ecf78ecc8ff7b6420c3e559e3e20cad8ac178c6fe4e8" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "build from RPMS and push" {
|
||||||
|
local d
|
||||||
|
d=$(mktemp -d)
|
||||||
|
echo "temporary directory: ${d}"
|
||||||
|
|
||||||
|
run_ctr -v $(pwd)/.testprep/srpms/:/src:ro -v ${d}:/output/ $CTR_IMAGE -s /src -p oci:/output/pushed-image:latest-source
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
|
|
||||||
|
run ls ${d}/pushed-image
|
||||||
|
[ "$status" -eq 0 ]
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue