mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-30 00:05:53 +00:00
25 lines
479 B
Bash
25 lines
479 B
Bash
#!/bin/sh
|
|
# SUMMARY: Check that there are no open ports
|
|
# LABELS:
|
|
|
|
set -e
|
|
|
|
# Source libraries. Uncomment if needed/defined
|
|
#. "${RT_LIB}"
|
|
. "${RT_PROJECT_ROOT}/_lib/lib.sh"
|
|
|
|
NAME=lsof
|
|
|
|
clean_up() {
|
|
# remove any files, containers, images etc
|
|
rm -rf ${NAME}* || true
|
|
}
|
|
|
|
trap clean_up EXIT
|
|
|
|
linuxkit build -format kernel+initrd -name "${NAME}" test.yml
|
|
linuxkit run qemu -kernel "${NAME}"
|
|
#RESULT=$(linuxkit run qemu -kernel "${NAME}")
|
|
#echo "${RESULT}" | grep -q "PASSED"
|
|
exit 0
|