Skip to content

Commit 83652a6

Browse files
authored
Tidy up (#76)
* Tidy things up
1 parent e9d99c6 commit 83652a6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+6144
-3501
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: "Install valgrind"
2+
runs:
3+
using: "composite"
4+
steps:
5+
- name: Install valgrind
6+
shell: bash
7+
run: sudo apt install valgrind
8+
- name: Install cargo valgrind
9+
shell: bash
10+
run: cargo install cargo-valgrind

.github/workflows/main.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@ jobs:
1818
with:
1919
command: check
2020

21+
valgrind_examples:
22+
name: Test examples with valgrind
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: ./.github/actions/install_llvm
27+
- uses: ./.github/actions/install_valgrind
28+
- name: Run examples
29+
shell: bash
30+
run: for file in examples/*; do cargo valgrind run $file || exit 1; done
31+
2132
test:
2233
name: Test Suite
2334
runs-on: ubuntu-latest

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/target
2-
/.idea
2+
/.idea
3+
playground.rck

.vscode/launch.json

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "lldb",
9+
"request": "launch",
10+
"name": "Debug unit tests in library 'stdlib'",
11+
"cargo": {
12+
"args": ["test", "--no-run", "--lib", "--package=stdlib"],
13+
"filter": {
14+
"name": "stdlib",
15+
"kind": "lib"
16+
}
17+
},
18+
"args": [],
19+
"cwd": "${workspaceFolder}"
20+
},
21+
{
22+
"type": "lldb",
23+
"request": "launch",
24+
"name": "Debug unit tests in library 'rocklang'",
25+
"cargo": {
26+
"args": ["test", "--no-run", "--lib", "--package=rocklang"],
27+
"filter": {
28+
"name": "rocklang",
29+
"kind": "lib"
30+
}
31+
},
32+
"args": [],
33+
"cwd": "${workspaceFolder}"
34+
},
35+
{
36+
"type": "lldb",
37+
"request": "launch",
38+
"name": "Debug executable 'rocklang'",
39+
"cargo": {
40+
"args": ["build", "--bin=rocklang", "--package=rocklang"],
41+
"filter": {
42+
"name": "rocklang",
43+
"kind": "bin"
44+
}
45+
},
46+
"args": [],
47+
"cwd": "${workspaceFolder}"
48+
},
49+
{
50+
"type": "lldb",
51+
"request": "launch",
52+
"name": "Debug unit tests in executable 'rocklang'",
53+
"cargo": {
54+
"args": ["test", "--no-run", "--bin=rocklang", "--package=rocklang"],
55+
"filter": {
56+
"name": "rocklang",
57+
"kind": "bin"
58+
}
59+
},
60+
"args": [],
61+
"cwd": "${workspaceFolder}"
62+
},
63+
{
64+
"type": "lldb",
65+
"request": "launch",
66+
"name": "Debug integration test 'tokenizer_tests'",
67+
"cargo": {
68+
"args": [
69+
"test",
70+
"--no-run",
71+
"--test=tokenizer_tests",
72+
"--package=rocklang"
73+
],
74+
"filter": {
75+
"name": "tokenizer_tests",
76+
"kind": "test"
77+
}
78+
},
79+
"args": [],
80+
"cwd": "${workspaceFolder}"
81+
},
82+
{
83+
"type": "lldb",
84+
"request": "launch",
85+
"name": "Debug integration test 'compiler_tests'",
86+
"cargo": {
87+
"args": [
88+
"test",
89+
"--no-run",
90+
"--test=compiler_tests",
91+
"--package=rocklang"
92+
],
93+
"filter": {
94+
"name": "compiler_tests",
95+
"kind": "test"
96+
}
97+
},
98+
"args": [],
99+
"cwd": "${workspaceFolder}"
100+
},
101+
{
102+
"type": "lldb",
103+
"request": "launch",
104+
"name": "Debug integration test 'integration_tests'",
105+
"cargo": {
106+
"args": [
107+
"test",
108+
"--no-run",
109+
"--test=integration_tests",
110+
"--package=rocklang"
111+
],
112+
"filter": {
113+
"name": "integration_tests",
114+
"kind": "test"
115+
}
116+
},
117+
"args": [],
118+
"cwd": "${workspaceFolder}"
119+
},
120+
{
121+
"type": "lldb",
122+
"request": "launch",
123+
"name": "Debug integration test 'parser_tests'",
124+
"cargo": {
125+
"args": [
126+
"test",
127+
"--no-run",
128+
"--test=parser_tests",
129+
"--package=rocklang"
130+
],
131+
"filter": {
132+
"name": "parser_tests",
133+
"kind": "test"
134+
}
135+
},
136+
"args": [],
137+
"cwd": "${workspaceFolder}"
138+
},
139+
{
140+
"type": "lldb",
141+
"request": "launch",
142+
"name": "Debug integration test 'token_test'",
143+
"cargo": {
144+
"args": ["test", "--no-run", "--test=token_test", "--package=rocklang"],
145+
"filter": {
146+
"name": "token_test",
147+
"kind": "test"
148+
}
149+
},
150+
"args": [],
151+
"cwd": "${workspaceFolder}"
152+
}
153+
]
154+
}

0 commit comments

Comments
 (0)