pkg(common): Generate test file per version
This commit is contained in:
parent
70262d8c4b
commit
1a7382bb6f
|
@ -1,2 +1,3 @@
|
||||||
build/
|
build/
|
||||||
*.pkg.tar.gz
|
*.pkg.tar.gz
|
||||||
|
*.tf
|
|
@ -34,11 +34,12 @@ name:
|
||||||
|
|
||||||
|
|
||||||
.NOTPARALLEL: build
|
.NOTPARALLEL: build
|
||||||
build: ${BUILD_DIR} ${PKG_FILE}
|
build: ${BUILD_DIR} ${PKG_FILE} ${PKG_SLUG}.tf
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf ${BUILD_DIR}
|
rm -rf ${BUILD_DIR}
|
||||||
rm -f ${PKG_FILE}
|
rm -f ${PKG_FILE}
|
||||||
|
rm -f ${PKG_SLUG}.tf
|
||||||
|
|
||||||
# mkdir
|
# mkdir
|
||||||
${BUILD_DIR}:
|
${BUILD_DIR}:
|
||||||
|
@ -61,7 +62,8 @@ $(patsubst %.json,%.jq,${INFO_FILE}):
|
||||||
echo '.build_platform="$(or ${PLATFORM}, baremetal-$(shell grep -oP "^ID=\K\w+" /etc/os-release ))"' >> $@
|
echo '.build_platform="$(or ${PLATFORM}, baremetal-$(shell grep -oP "^ID=\K\w+" /etc/os-release ))"' >> $@
|
||||||
$(foreach dep, ${DEPENDENCIES}, echo '.dependencies.$(word 1,$(subst =, ,${dep}))="$(word 2,$(subst =, ,${dep}))"' >> $@)
|
$(foreach dep, ${DEPENDENCIES}, echo '.dependencies.$(word 1,$(subst =, ,${dep}))="$(word 2,$(subst =, ,${dep}))"' >> $@)
|
||||||
|
|
||||||
|
${PKG_SLUG}.tf:
|
||||||
|
cp ${NAME}.test $@
|
||||||
|
|
||||||
# Helpers
|
# Helpers
|
||||||
%/: %.tar.gz
|
%/: %.tar.gz
|
||||||
|
|
Loading…
Reference in New Issue