File: check-external

package info (click to toggle)
vmdb2 0.41-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 572 kB
  • sloc: python: 2,591; sh: 151; makefile: 17
file content (21 lines) | stat: -rwxr-xr-x 516 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
#
# Check external image specifications. Assume current working directory is
# where the vmdb2 version to be tested is.

set -eu

cache="$(cd "$1" && pwd)"
shift

export PATH="$(pwd):$PATH"

echo "Create temporary directory for images"
tmp="$(mktemp -d)"

# This will delete the temporary directory automatically at exit.
trap "rm -rf $tmp" EXIT

echo "Test Debian's Raspberry Pi images"
git clone -q https://salsa.debian.org/raspi-team/image-specs.git "$tmp/debian"
(cd "$tmp/debian" && echo make images)