File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
55and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
66
77## [ Unreleased]
8+ ### Added
9+ - a simple regression test script test/make-test.sh to compile all examples
10+
811### Changed
912- using busybox as command shell for windows to run the wrapper scripts
1013
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33CURDIR=$( pwd)
4- SRCREV=$( git describe --tags --match=" v*" )
4+ SRCREV=$( git describe --tags --match=" v*" --dirty )
55LOGFILE=${CURDIR} /logs/test-${SRCREV} .log
66BASEDIR=../sduino/hardware/sduino/stm8/libraries/
77
@@ -10,6 +10,7 @@ THREADS=$(grep processor /proc/cpuinfo |wc -l)
1010
1111# make sure $COLUMNS is set
1212shopt -s checkwinsize
13+ USE_COLOR=1
1314
1415print_status () {
1516 local status
@@ -30,6 +31,35 @@ print_status() {
3031 echo " source revision: $SRCREV "
3132) | tee " $LOGFILE "
3233
34+
35+ if [ $USE_COLOR -gt 0 ]; then
36+ # ANSI color codes to beautify the output:
37+ BLACK=' \033[0;30m'
38+ RED=' \033[0;31m'
39+ GREEN=' \033[0;32m'
40+ ORANGE=' \033[0;33m'
41+ BLUE=' \033[0;34m'
42+ PURPLE=' \033[0;35m'
43+ CYAN=' \033[0;36m'
44+ LGRAY=' \033[0;37m'
45+ DGRAY=' \033[1;30m'
46+ LRED=' \033[1;31m'
47+ LGREEN=' \033[1;32m'
48+ YELLOW=' \033[1;33m'
49+ LBLUE=' \033[1;34m'
50+ LPURPLE=' \033[1;35m'
51+ LCYAN=' \033[1;36m'
52+ WHITE=' \033[1;37m'
53+ OFF=' \033[0m'
54+ fi
55+
56+ # check for a clean repository state
57+ if [[ " $SRCREV " = * -dirty ]]; then
58+ echo -e " ${ORANGE} Warning:${OFF} " \
59+ " Uncommitted changes in the working tree. No clean repository state."
60+ fi
61+
62+
3363# removing *all* old build directories for a clear start
3464find " $BASEDIR " -name " build-*" -type d| xargs rm -r
3565
You can’t perform that action at this time.
0 commit comments