Skip to content

Commit 0745150

Browse files
authored
Add AVR test suite (ridiculousfish#71)
* Add AVR test suite Shares code with main (win/linux) test suite * Include a PlatformIO build step * Flash memory strings * Run avr tester in build
1 parent 5691c3a commit 0745150

17 files changed

+879
-274
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ install_manifest.txt
1616
CTestTestfile.cmake
1717
.DS_Store
1818
.vscode
19-
19+
.pio

appveyor.yml

+9
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,19 @@ for:
9393
environment:
9494
CFLAGS: "/W3 /WX /DLIBDIVIDE_ASSERTIONS_ON"
9595
CXXFLAGS: "/W3 /WX /DLIBDIVIDE_ASSERTIONS_ON"
96+
install:
97+
- cmd: SET PATH=C:\Python39;C:\Python39\Scripts;%PATH%
98+
- cmd: pip install -U platformio
99+
- cmd: pio platform install atmelavr --with-package=tool-simavr
96100
build_script:
97101
- cmake . -G "Visual Studio 16 2019"
98102
- cmake --build . --config Release
103+
- cd test/avr
104+
- ps: Get-Content -Path .\platformio.ini | Where-Object { $_.StartsWith("[env:") } | ForEach-Object { & pio run -e $_.SubString(5, $_.Length-6) }
105+
- cd ../..
99106
test_script:
100107
- cd Release
101108
- tester.exe
102109
- benchmark_branchfree.exe
110+
- cd ../test/avr
111+
- pio run -t Simulate -e megaatmega2560_TestFast

avr_test.code-workspace

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"folders": [
3+
{
4+
"name": "avr",
5+
"path": "test/avr"
6+
}
7+
],
8+
"settings": {
9+
"files.associations": {
10+
"cstdlib": "cpp",
11+
"vector": "cpp",
12+
"array": "cpp",
13+
"chrono": "cpp",
14+
"compare": "cpp",
15+
"memory": "cpp",
16+
"ratio": "cpp",
17+
"tuple": "cpp",
18+
"type_traits": "cpp",
19+
"utility": "cpp",
20+
"xmemory": "cpp",
21+
"xstring": "cpp",
22+
"xtr1common": "cpp",
23+
"xutility": "cpp",
24+
"bit": "cpp",
25+
"charconv": "cpp",
26+
"format": "cpp",
27+
"limits": "cpp",
28+
"random": "cpp",
29+
"xlocmon": "cpp",
30+
"xlocnum": "cpp",
31+
"xloctime": "cpp",
32+
"string": "cpp",
33+
"algorithm": "cpp",
34+
"atomic": "cpp",
35+
"cctype": "cpp",
36+
"clocale": "cpp",
37+
"cmath": "cpp",
38+
"concepts": "cpp",
39+
"cstddef": "cpp",
40+
"cstdint": "cpp",
41+
"cstdio": "cpp",
42+
"cstring": "cpp",
43+
"ctime": "cpp",
44+
"cwchar": "cpp",
45+
"exception": "cpp",
46+
"forward_list": "cpp",
47+
"initializer_list": "cpp",
48+
"iomanip": "cpp",
49+
"ios": "cpp",
50+
"iosfwd": "cpp",
51+
"iostream": "cpp",
52+
"istream": "cpp",
53+
"iterator": "cpp",
54+
"locale": "cpp",
55+
"map": "cpp",
56+
"new": "cpp",
57+
"optional": "cpp",
58+
"ostream": "cpp",
59+
"sstream": "cpp",
60+
"stdexcept": "cpp",
61+
"stop_token": "cpp",
62+
"streambuf": "cpp",
63+
"system_error": "cpp",
64+
"thread": "cpp",
65+
"typeinfo": "cpp",
66+
"xfacet": "cpp",
67+
"xiosbase": "cpp",
68+
"xlocale": "cpp",
69+
"xlocbuf": "cpp",
70+
"xlocinfo": "cpp",
71+
"xlocmes": "cpp",
72+
"xstddef": "cpp",
73+
"xtree": "cpp"
74+
}
75+
}
76+
}

0 commit comments

Comments
 (0)