Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed some minor inclusion errors and got all unit tests running.
- Loading branch information
Showing
21 changed files
with
174 additions
and
74 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
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
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
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 @@ | ||
#include "librednine/numbers/numbers.h" | ||
#include "libpropeller/numbers/numbers.h" | ||
|
||
char Numbers::internalBuffer[33]; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
#!/usr/bin/python | ||
#from subprocess import call | ||
import subprocess | ||
import os | ||
|
||
tests_run = [] | ||
previous_line = "" | ||
failed_tests = False | ||
|
||
ignore_folders = ["board", "max8819", "elum", "c++allocate", "fullduplexserial", "quadrature_encoder", "unity_tools", "vnh2sp30"] | ||
|
||
folders = [d for d in os.listdir(os.getcwd()) if os.path.isdir(d)] | ||
|
||
tests = list(set(folders).difference(set(ignore_folders))) | ||
|
||
"**************************************" | ||
print "Testing folders:" | ||
for test in tests: | ||
print "--- " + test | ||
|
||
|
||
for test in tests: | ||
print "**************************************" | ||
print "Testing folder " + test | ||
print "" | ||
os.chdir(test) | ||
# call(["./run_all", "-t115200"]) | ||
p = subprocess.Popen(["./run_unit", "-m"], stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.PIPE) | ||
|
||
for line in iter(p.stdout.readline, ''): | ||
print line.rstrip() | ||
# if not all(c.isspace() for c in line): | ||
|
||
if line.strip() == "OK": | ||
tests_run.append((test + ": ").ljust(20) + previous_line) | ||
p.stdin.write("\x1B[A") #Send up key | ||
break | ||
if line.strip() == "FAIL": | ||
tests_run.append((test + ": ").ljust(20) + previous_line) | ||
p.stdin.write("\x1B[A") #Send up key | ||
failed_tests = True | ||
break | ||
if line.strip() == "error: load failed": | ||
tests_run.append((test + ": ").ljust(20) + "error: load failed"); | ||
break | ||
|
||
|
||
previous_line = line | ||
print "" | ||
for line in iter(p.stderr.readline, ''): | ||
print line.rstrip() | ||
|
||
|
||
os.chdir("..") | ||
|
||
print "" | ||
|
||
print "**************************************" | ||
print "Folders ignored:" | ||
for i_f in ignore_folders: | ||
print "--- " + i_f | ||
for test in tests_run: | ||
print test.rstrip() | ||
|
||
print "**************************************" | ||
|
||
if failed_tests == False: | ||
print "OK" | ||
else: | ||
print "FAIL" | ||
|
||
print "" | ||
print "" | ||
print "To add all .elf files to git, run the following command: " | ||
print "git ls-files | grep '\.elf$' | xargs git add" |
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.