source: rtos_arduino/trunk/arduino_lib/libraries/ArduinoJson/scripts/run-tests.sh@ 209

Last change on this file since 209 was 209, checked in by ertl-honda, 8 years ago

BlueMix用のフィアルを追加

File size: 452 bytes
Line 
1#!/bin/bash
2
3FILE=../bin/ArduinoJsonTests.exe
4MD5=""
5
6file_changed() {
7 [[ ! -f "$FILE" ]] && return 1
8 NEW_MD5=$(md5sum $FILE)
9 [[ "$MD5" == "$NEW_MD5" ]] && return 1
10 MD5=$NEW_MD5
11 return 0
12}
13
14test_succeed() {
15 echo -en "\007"{,}
16}
17
18test_failed() {
19 echo -en "\007"{,,,,,,,,,,,}
20}
21
22run_tests() {
23 $FILE
24 case $? in
25 0)
26 test_succeed
27 ;;
28 1)
29 test_failed
30 ;;
31 esac
32}
33
34while true
35do
36 if file_changed
37 then
38 run_tests
39 else
40 sleep 2
41 fi
42done
43
44
Note: See TracBrowser for help on using the repository browser.