Logo
Explore Help
Register Sign In
leandrof/u-boot
1
0
Fork 1
You've already forked u-boot
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
e15ba6802912a30da0de92c20dbe574f25a96d21
u-boot/test/common.sh

21 lines
275 B
Bash
Raw Normal View History

test: Add a test for command repeat This performs a command, then repeats it, and checks that the repeat happens. Signed-off-by: Simon Glass <sjg@chromium.org>
2014-09-14 12:40:17 -06:00
#!/bin/sh
OUTPUT_DIR=sandbox
fail() {
echo "Test failed: $1"
if [ -n ${tmp} ]; then
rm ${tmp}
fi
exit 1
}
build_uboot() {
echo "Build sandbox"
OPTS="O=${OUTPUT_DIR} $1"
Consistently use nproc for counting the CPUs Coreutils command nproc can be used on Linux and BSD to count the number of available CPU cores. Use this instead of relying on the parsing of the Linux specific proc file system. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2020-01-27 07:59:46 +01:00
NUM_CPUS=$(nproc)
test: Add a test for command repeat This performs a command, then repeats it, and checks that the repeat happens. Signed-off-by: Simon Glass <sjg@chromium.org>
2014-09-14 12:40:17 -06:00
echo ${OPTS}
make ${OPTS} sandbox_config
make ${OPTS} -s -j${NUM_CPUS}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.1 Page: 294ms Template: 7ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API