8266e14adc
We do not have any testing inside DIB for testing disk-image-create logic. Lets do some smoke testing for all our supported image formats. Also adding a run_functests.sh so we can extend this later without editing the jenkins job. Change-Id: Ie491e27f00bde54f73af6b47c9696ec04d973b14
17 lines
417 B
Bash
Executable File
17 lines
417 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eux
|
|
set -o pipefail
|
|
|
|
sudo touch $TARGET_ROOT/fake-os
|
|
|
|
sudo mkdir -p $TARGET_ROOT/etc
|
|
sudo mkdir -p $TARGET_ROOT/mnt
|
|
sudo mkdir -p $TARGET_ROOT/proc
|
|
sudo mkdir -p $TARGET_ROOT/dev
|
|
sudo mkdir -p $TARGET_ROOT/sys
|
|
|
|
# We need some size so the mkfs does not fail when making an fs of size 0
|
|
# We also need to account for the journal size on the FS
|
|
dd if=/dev/zero of=$TARGET_ROOT/fake-data bs=1M count=42
|