mirror of
https://github.com/lupyuen/nuttx-riscv64.git
synced 2025-01-13 07:38:28 +08:00
Stagger the Task Times
This commit is contained in:
parent
c5ee93e7ae
commit
6fa9049839
5 changed files with 42 additions and 2 deletions
|
@ -24,6 +24,7 @@ function test_nuttx {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "----- ${BASH_SOURCE}"
|
||||||
echo "----- Download the NuttX Build"
|
echo "----- Download the NuttX Build"
|
||||||
wget -q \
|
wget -q \
|
||||||
https://github.com/lupyuen/nuttx-riscv64/releases/download/$BUILD_PREFIX-$date/nuttx.zip \
|
https://github.com/lupyuen/nuttx-riscv64/releases/download/$BUILD_PREFIX-$date/nuttx.zip \
|
||||||
|
@ -71,6 +72,6 @@ do
|
||||||
|
|
||||||
## Wait a while
|
## Wait a while
|
||||||
date
|
date
|
||||||
sleep 600
|
sleep 4200
|
||||||
done
|
done
|
||||||
echo Done!
|
echo Done!
|
||||||
|
|
|
@ -24,6 +24,7 @@ function test_nuttx {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "----- ${BASH_SOURCE}"
|
||||||
echo "----- Download the NuttX Build"
|
echo "----- Download the NuttX Build"
|
||||||
wget -q \
|
wget -q \
|
||||||
https://github.com/lupyuen/nuttx-riscv64/releases/download/$BUILD_PREFIX-$date/nuttx.zip \
|
https://github.com/lupyuen/nuttx-riscv64/releases/download/$BUILD_PREFIX-$date/nuttx.zip \
|
||||||
|
@ -71,6 +72,6 @@ do
|
||||||
|
|
||||||
## Wait a while
|
## Wait a while
|
||||||
date
|
date
|
||||||
sleep 600
|
sleep 3000
|
||||||
done
|
done
|
||||||
echo Done!
|
echo Done!
|
||||||
|
|
30
task/task.sh
Executable file
30
task/task.sh
Executable file
|
@ -0,0 +1,30 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
## Auto Test Task for SG2000, BL602 and RISC-V
|
||||||
|
|
||||||
|
set -x # Echo commands
|
||||||
|
|
||||||
|
## Kill the Auto Test Tasks
|
||||||
|
pgrep -f task.sh task-nsh64.sh task-knsh64.sh
|
||||||
|
pkill -f task.sh task-nsh64.sh task-knsh64.sh
|
||||||
|
|
||||||
|
## Remove the log
|
||||||
|
rm nohup.out
|
||||||
|
|
||||||
|
## SG2000 Test Task
|
||||||
|
nohup $HOME/sg2000/autotest-nuttx-sg2000/scripts/task.sh &
|
||||||
|
sleep 60
|
||||||
|
|
||||||
|
## BL602 Test Task
|
||||||
|
nohup $HOME/bl602/remote-bl602/scripts/task.sh &
|
||||||
|
sleep 60
|
||||||
|
|
||||||
|
## nsh64 Test Task
|
||||||
|
nohup $HOME/riscv/nuttx-riscv64/task/task-nsh64.sh &
|
||||||
|
sleep 60
|
||||||
|
|
||||||
|
## knsh64 Test Task
|
||||||
|
nohup $HOME/riscv/nuttx-riscv64/task/task-knsh64.sh &
|
||||||
|
|
||||||
|
## Show the tasks and the log
|
||||||
|
pgrep -f task.sh task-nsh64.sh task-knsh64.sh
|
||||||
|
tail -f nohup.out
|
|
@ -19,6 +19,7 @@ mkdir /tmp/$BUILD_PREFIX
|
||||||
cd /tmp/$BUILD_PREFIX
|
cd /tmp/$BUILD_PREFIX
|
||||||
|
|
||||||
set +x ## Disable echo
|
set +x ## Disable echo
|
||||||
|
date
|
||||||
echo "----- Download the latest NuttX build for $BUILD_DATE"
|
echo "----- Download the latest NuttX build for $BUILD_DATE"
|
||||||
set -x ## Enable echo
|
set -x ## Enable echo
|
||||||
wget -q https://github.com/lupyuen/nuttx-riscv64/releases/download/$BUILD_PREFIX-$BUILD_DATE/nuttx.zip
|
wget -q https://github.com/lupyuen/nuttx-riscv64/releases/download/$BUILD_PREFIX-$BUILD_DATE/nuttx.zip
|
||||||
|
@ -29,6 +30,7 @@ unzip -o nuttx.zip -d nuttx
|
||||||
unzip -o apps.zip -d apps/bin
|
unzip -o apps.zip -d apps/bin
|
||||||
cd nuttx
|
cd nuttx
|
||||||
set +x ## Disable echo
|
set +x ## Disable echo
|
||||||
|
date
|
||||||
|
|
||||||
## Print the Commit Hashes
|
## Print the Commit Hashes
|
||||||
if [ -f nuttx.hash ]; then
|
if [ -f nuttx.hash ]; then
|
||||||
|
@ -45,4 +47,6 @@ ls -l
|
||||||
ls -l ../apps/bin
|
ls -l ../apps/bin
|
||||||
cat nuttx.hash
|
cat nuttx.hash
|
||||||
qemu-system-riscv64 --version
|
qemu-system-riscv64 --version
|
||||||
|
date
|
||||||
./$script.exp
|
./$script.exp
|
||||||
|
date
|
||||||
|
|
|
@ -19,11 +19,13 @@ mkdir /tmp/$BUILD_PREFIX
|
||||||
cd /tmp/$BUILD_PREFIX
|
cd /tmp/$BUILD_PREFIX
|
||||||
|
|
||||||
set +x ## Disable echo
|
set +x ## Disable echo
|
||||||
|
date
|
||||||
echo "----- Download the latest NuttX build for $BUILD_DATE"
|
echo "----- Download the latest NuttX build for $BUILD_DATE"
|
||||||
set -x ## Enable echo
|
set -x ## Enable echo
|
||||||
wget -q https://github.com/lupyuen/nuttx-riscv64/releases/download/$BUILD_PREFIX-$BUILD_DATE/nuttx.zip
|
wget -q https://github.com/lupyuen/nuttx-riscv64/releases/download/$BUILD_PREFIX-$BUILD_DATE/nuttx.zip
|
||||||
unzip -o nuttx.zip
|
unzip -o nuttx.zip
|
||||||
set +x ## Disable echo
|
set +x ## Disable echo
|
||||||
|
date
|
||||||
|
|
||||||
## Print the Commit Hashes
|
## Print the Commit Hashes
|
||||||
if [ -f nuttx.hash ]; then
|
if [ -f nuttx.hash ]; then
|
||||||
|
@ -39,4 +41,6 @@ chmod +x $script.exp
|
||||||
ls -l
|
ls -l
|
||||||
cat nuttx.hash
|
cat nuttx.hash
|
||||||
qemu-system-riscv64 --version
|
qemu-system-riscv64 --version
|
||||||
|
date
|
||||||
./$script.exp
|
./$script.exp
|
||||||
|
date
|
||||||
|
|
Loading…
Reference in a new issue