-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix unit test configuration fix test failing for bmp280 add default config (fix #13)
- Loading branch information
Showing
21 changed files
with
1,090 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
build/ | ||
sdkconfig | ||
sdkconfig.* | ||
sdkconfig.old | ||
sdkconfig.bak | ||
.DS_Store | ||
main/*.bak | ||
core.dat | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<?eclipse-pydev version="1.0"?><pydev_project> | ||
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property> | ||
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python interpreter</pydev_property> | ||
</pydev_project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
pipeline { | ||
agent any | ||
stages { | ||
stage('build') { | ||
steps { | ||
checkout scm | ||
sh 'make clean' | ||
sh 'make all -j5' | ||
} | ||
} | ||
stage('test') { | ||
steps { | ||
sh 'bin/make_tests.sh' | ||
sh 'sleep 3' | ||
sh 'bin/run_tests.py' | ||
} | ||
} | ||
stage('archive') { | ||
steps { | ||
sh 'cat build/sensor-esp32.bin | openssl dgst -sha256 > build/sensor-esp32.bin.sha256' | ||
} | ||
post { | ||
success { | ||
archiveArtifacts artifacts: 'build/sensor-esp32.*', fingerprint: true | ||
archiveArtifacts artifacts: 'build/partitions_singleapp.bin', fingerprint: true | ||
archiveArtifacts artifacts: 'build/bootloader/bootloader.bin', fingerprint: true | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
|
||
$IDF_PATH/components/espcoredump/espcoredump.py info_corefile -t b64 -c core.dat build/sensor-esp32.elf | ||
$IDF_PATH/components/espcoredump/espcoredump.py info_corefile -t b64 -c logs/core.dat build/sensor-esp32.elf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
|
||
$IDF_PATH/components/espcoredump/espcoredump.py dbg_corefile -t b64 -c core.dat build/sensor-esp32.elf | ||
$IDF_PATH/components/espcoredump/espcoredump.py dbg_corefile -t b64 -c logs/core.dat build/sensor-esp32.elf |
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
#!/bin/sh | ||
|
||
#https://www.esp32.com/viewtopic.php?t=2867 | ||
|
||
project=`pwd` | ||
make -C unit-test-app EXTRA_COMPONENT_DIRS=$project/components TEST_COMPONENTS='oap_common ota awsiot bmx280 pmsx003' flash monitor -j5 | ||
export BATCH_BUILD=1 | ||
make -C unit-test-app EXTRA_COMPONENT_DIRS=$project/components TEST_COMPONENTS='oap_common ota awsiot bmx280 pmsx003' defconfig all flash $1 -j5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/usr/bin/python | ||
import serial | ||
import sys | ||
import time | ||
|
||
ser = serial.Serial('/dev/tty.SLAB_USBtoUART',115200,timeout=1) | ||
|
||
def readall(exp, timeout = 5): | ||
line = ser.readline() | ||
lastline = '' | ||
start = time.time() | ||
while line != exp: | ||
lastline = line | ||
|
||
if line == 'Rebooting...': | ||
lastline = 'UNEXPECTED REBOOT' | ||
break | ||
|
||
if ":FAIL" in line or ":PASS" in line: | ||
start = time.time() | ||
|
||
if time.time() - start > timeout: | ||
lastline = 'TIMEOUT after '+str(timeout)+' seconds' | ||
break | ||
|
||
line = ser.readline() | ||
sys.stdout.write(line) | ||
sys.stdout.flush() | ||
line = line.strip() | ||
return lastline | ||
|
||
def wait_for_test_result(): | ||
return readall('Enter next test, or \'enter\' to see menu',10) | ||
|
||
ser.write('\n'); | ||
readall('Here\'s the test menu, pick your combo:') | ||
ser.write('*' if len(sys.argv) == 1 else sys.argv[1]) | ||
ser.write('\n') | ||
result = wait_for_test_result().strip() | ||
sys.stdout.write('TEST RESULT: '+result) | ||
ser.close() | ||
sys.exit(0 if result == 'OK' else 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.