Created
March 12, 2018 14:56
-
-
Save alex-pat/4c2fd9bc02b741e74fd7943fcc09cccd to your computer and use it in GitHub Desktop.
update tests in image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IMG=qemu-image.img | |
SRC=~/linux-cc | |
MNTPOINT=mnt | |
sudo mount "$IMG" -o loop "$MNTPOINT" || exit 1 | |
sudo mkdir -p "$MNTPOINT/root/tests" || exit 1 | |
for i in \ | |
pidmap/pidmap \ | |
fdmap/fdmap_test \ | |
pidfdinfo/pidfdinfo \ | |
; do | |
echo -n $(basename "$i")... | |
sudo cp "$SRC/tools/testing/selftests/$i" "$MNTPOINT/root/tests/$(basename "$i")" || exit 1 | |
echo OK | |
done | |
sudo umount "$MNTPOINT" || exit 1 | |
echo Done. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment