summaryrefslogtreecommitdiff
path: root/test/simple-build-check.sh
blob: b653185b267cfbdeced75397e2bfb3edb526ccf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#/bin/sh

EXTRAS="extras/chassis_id extras/scsi_id extras/volume_id extras/run_directory"

[ -z "$KERNEL_DIR" ] && KERNEL_DIR=/lib/modules/`uname -r`/build
echo KERNEL_DIR: "$KERNEL_DIR"

make spotless EXTRAS="$EXTRAS" >/dev/null
make all $MAKEOPTS EXTRAS="$EXTRAS" || exit
echo -e "\n\n"

make spotless EXTRAS="$EXTRAS" >/dev/null
make all -j4 $MAKEOPTS DEBUG=true EXTRAS="$EXTRAS"  || exit
echo -e "\n\n"

make spotless EXTRAS="$EXTRAS" >/dev/null
make all $MAKEOPTS USE_LOG=false EXTRAS="$EXTRAS"  || exit
echo -e "\n\n"

make spotless EXTRAS="$EXTRAS" >/dev/null
make all -j4 $MAKEOPTS USE_KLIBC=true DEBUG=true EXTRAS="$EXTRAS" KERNEL_DIR="$KERNEL_DIR" || exit
echo -e "\n\n"

make spotless EXTRAS="$EXTRAS" >/dev/null
make all $MAKEOPTS USE_KLIBC=true USE_LOG=false EXTRAS="$EXTRAS" KERNEL_DIR="$KERNEL_DIR" || exit
echo -e "\n\n"

make spotless EXTRAS="$EXTRAS" >/dev/null
echo "build test completed successfully"