Skip to content

Commit 989536c

Browse files
committed
resolved merge conflicts
2 parents 14b6083 + 9e02513 commit 989536c

40 files changed

Lines changed: 1228 additions & 20 deletions

docs/.vitepress/config.mjs

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ export default defineConfig({
2222
},
2323

2424
nav: [
25-
// { text: 'Home', link: '/' },
2625
{ text: 'Roadmap', link: '/roadmap/' },
2726
{ text: 'Guides', link: '/guides/' },
27+
{ text: 'Tests', link: '/tester/' },
2828
{ text: 'About', link: '/about' },
2929
],
3030

@@ -230,6 +230,39 @@ export default defineConfig({
230230
],
231231
},
232232
],
233+
234+
'/tester/': [
235+
{
236+
text: 'Installation',
237+
collapsed: true,
238+
items: [
239+
{ text: 'Installation', link: '/tester/installation/' },
240+
{ text: 'Frontend', link: '/tester/installation/frontend' },
241+
{ text: 'Backend', link: '/tester/installation/backend' }
242+
]
243+
},
244+
{
245+
text: 'Tests',
246+
collapsed: false,
247+
items: [
248+
{ text: 'Stage 1: TCP Server', link: '/tester/tests/stage1' },
249+
{ text: 'Stage 3: UDP Multithreading', link: '/tester/tests/stage3' },
250+
{ text: 'Stage 4: Linux Epoll', link: '/tester/tests/stage4' },
251+
{ text: 'Stage 5: TCP Proxy', link: '/tester/tests/stage5' },
252+
{ text: 'Stage 6: Listener & Connection Module', link: '/tester/tests/stage6' },
253+
{ text: 'Stage 7: Core & Loop Module', link: '/tester/tests/stage7' },
254+
{ text: 'Stage 8: Non-Blocking Sockets', link: '/tester/tests/stage8' },
255+
{ text: 'Stage 9: Epoll Edge Triggering', link: '/tester/tests/stage9' },
256+
{ text: 'Stage 10: Pipe Module', link: '/tester/tests/stage10' },
257+
{ text: 'Stage 11: Upstream Module', link: '/tester/tests/stage11' },
258+
{ text: 'Stage 12: File Module', link: '/tester/tests/stage12' },
259+
{ text: 'Stage 13: Session Module', link: '/tester/tests/stage13' },
260+
{ text: 'Stage 14: HTTP Request Module', link: '/tester/tests/stage14' },
261+
{ text: 'Stage 15: HTTP Response Module', link: '/tester/tests/stage15' },
262+
{ text: 'Stage 16: HTTP Config Module', link: '/tester/tests/stage16' },
263+
],
264+
},
265+
],
233266
},
234267

235268
socialLinks: [{ icon: 'github', link: 'https://github.com/eXpServer' }],

docs/assets/tester/console.png

95.2 KB
Loading

docs/assets/tester/execute.png

89.7 KB
Loading

docs/assets/tester/failed.png

302 KB
Loading

docs/assets/tester/intro_1.png

336 KB
Loading

docs/assets/tester/testtab.png

6.65 KB
Loading

docs/roadmap/phase-0/stage-1.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,10 @@ int main() {
384384

385385
### Milestone #2
386386

387+
::: tip AUTOMATED TESTS
388+
You can verify your implementation using the [Stage 1 Automated Tests](/tester/tests/stage1).
389+
:::
390+
387391
It is time to test the server! As before, open 2 terminals, one for the TCP server that we just wrote and another for the netcat client. Start the server followed by the client.
388392

389393
Upon the successful connection of the client to the server, the server terminal should display:

docs/roadmap/phase-0/stage-3.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,9 @@ int main() {
314314
return 0;
315315
}
316316
```
317+
::: tip AUTOMATED TESTS
318+
You can verify your implementation using the [Stage 3 Automated Tests](/tester/tests/stage3).
319+
:::
317320

318321
## Conclusion
319322

docs/roadmap/phase-0/stage-4.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,10 @@ Here is the expected output:
297297

298298
![milestone-2.png](/assets/stage-3/milestone-2.png)
299299

300+
::: tip AUTOMATED TESTS
301+
You can verify your implementation using the [Stage 4 Automated Tests](/tester/tests/stage4).
302+
:::
303+
300304
## Conclusion
301305

302306
The server is now capable of handling multiple clients simultaneously using the _epoll_ I/O event notification mechanism in Linux. Recall that this is one of the methods that can be done to provide concurrency.

docs/roadmap/phase-0/stage-5.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,10 @@ The proxy should go back to the `epoll_wait` state and wait for more events.
384384

385385
Keep testing the code by navigating across the file server, and opening files. Make sure the proxy does not exit out of the program.
386386

387+
::: tip AUTOMATED TESTS
388+
You can verify your implementation using the [Stage 5 Automated Tests](/tester/tests/stage5).
389+
:::
390+
387391
## Experiments
388392

389393
### Experiments #1

0 commit comments

Comments
 (0)