Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
google
GitHub Repository: google/crosvm
Path: blob/main/e2e_tests/guest_under_test/rootfs_benches/gimp/make.sh
5394 views
1
#!/bin/bash
2
# Copyright 2023 The ChromiumOS Authors
3
# Use of this source code is governed by a BSD-style license that can be
4
# found in the LICENSE file.
5
6
# Generate compressed rootfs image for gimp e2e benchmark
7
# Result will be stored as /tmp/crosvm_e2e_test_guest_gimp.img.zst
8
9
cd "$(dirname "$0")"
10
podman build -t crosvm_e2e_test_guest_gimp ../../../../ -f e2e_tests/guest_under_test/rootfs_benches/gimp/ContainerFile
11
CONTAINER=$(podman create crosvm_e2e_test_guest_gimp)
12
podman export $CONTAINER > /tmp/crosvm_e2e_test_guest_gimp.tar
13
podman rm $CONTAINER
14
virt-make-fs --format=raw --size=+100M --type=ext4 /tmp/crosvm_e2e_test_guest_gimp.tar /tmp/crosvm_e2e_test_guest_gimp.img
15
rm /tmp/crosvm_e2e_test_guest_gimp.tar
16
zstd --rm /tmp/crosvm_e2e_test_guest_gimp.img
17
18