summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2018-12-13 17:15:46 -0800
committerGitHub <noreply@github.com>2018-12-13 17:15:46 -0800
commitdca1dfaf1cfb80ec30a7a16b899efa1040e3451d (patch)
treef611ad5775bd84d389f3e29bbc1a196d93836d11
parent5c87a8a19e089ac761d8fb253dc34d8b71199247 (diff)
parent47ec718a817ff21055ff57a86ea1530e49a30d14 (diff)
Merge pull request #112 from sifive/no-regression
Delete the old regression script
-rwxr-xr-xregression.bash71
1 files changed, 0 insertions, 71 deletions
diff --git a/regression.bash b/regression.bash
deleted file mode 100755
index da8bf10..0000000
--- a/regression.bash
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/bash
-
-unset board
-unset manual
-while [[ "$1" != "" ]]
-do
- case "$1" in
- "--board")
- board="$2"
- shift
- shift
- ;;
- "--manual")
- manual="true"
- shift
- ;;
- esac
-done
-
-if [[ "$board" == "" ]]
-then
- echo "Specify a --board to test" >&2
- exit 1
-fi
-
-if [[ "$manual" == "true" ]]
-then
- echo "You're running in manual test mode. Please connect a $board to continue..."
- read -p "Press ENTER to continue"
-fi
-
-set -e
-
-find software -mindepth 1 -maxdepth 2 -type d | cut -d/ -f2 | while read program
-do
- # Allow examples to specify the boards on which they won't run.
- if test -f software/$program/.unsupported-boards
- then
- if grep -q $board software/$program/.unsupported-boards
- then
- continue
- fi
- fi
-
- # Build the example.
- make BOARD=$board PROGRAM=$program software
-
- # We require user interaction in order to verify the tests succeed. If the
- # user hasn't specified the manual flag then don't bother running the tests.
- if [[ "$manual" == "true" ]]
- then
- echo "We're about to run $program on $board, waiting 10 seconds"
- sleep 1s
-
- echo "flashing $program"
- make BOARD=$board PROGRAM=$program upload
-
- echo "$program has been flashed to your $board, please test it. GDB will open in 2 seconds"
- urxvt -hold -e make BOARD=$board PROGRAM=$program run_openocd &
- sleep 2s
- urxvt -hold -e make BOARD=$board PROGRAM=$program run_gdb
-
- echo "Close the running OpenOCD"
- wait
- fi
-done
-
-if [[ "$manual" != "true" ]]
-then
- echo "You haven't actually verified the tests run, please don't release!" >&2
-fi