diff options
author | Jérôme Glisse <jglisse@redhat.com> | 2018-09-14 16:10:42 -0400 |
---|---|---|
committer | Jérôme Glisse <jglisse@redhat.com> | 2018-09-16 18:35:58 -0400 |
commit | c33c390fbf6e6cd95e843e57aba68d7851b628bc (patch) | |
tree | d63239c8cb8a775476956e3bd8dacc2429670d75 /tools/kernel-install.sh | |
parent | ffdfa7d13f0e9f1266b12d29c005241f31b6fd7a (diff) |
Starting point all the basic scripts to install a VM, set it up and
automaticaly run tests in it.
Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
Diffstat (limited to 'tools/kernel-install.sh')
-rwxr-xr-x | tools/kernel-install.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/kernel-install.sh b/tools/kernel-install.sh new file mode 100755 index 0000000..3c1aee6 --- /dev/null +++ b/tools/kernel-install.sh @@ -0,0 +1,15 @@ +#!/bin/sh +UTEST_PATH=`dirname $0 | xargs realpath | xargs dirname` +UTEST_CMD=`basename $0` + +# Sanity checks -------------------------------------------------------------- +if [ $# -ne 0 ] ; then + echo "$UTEST_CMD: usage $UTEST_CMD" + exit 1 +fi + +# Install kernel ------------------------------------------------------------- +# Just to avoid make install, make modules_install to take too much time ... +make -j$((`nproc` * 2)) +INSTALL_PATH=$UTEST_PATH/kernel make install +make INSTALL_MOD_PATH=$UTEST_PATH/kernel modules_install |