OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Mar 29, 2024 5:11 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Acess2 Network Test Suite
PostPosted: Sun Mar 16, 2014 4:00 am 
Offline
Member
Member
User avatar

Joined: Tue Dec 25, 2007 6:03 am
Posts: 734
Location: Perth, Western Australia
I felt I should share the networking test suite I've spent the last weekend writing. Currently, coverage is a little sparse, but I plan on adding enough tests to cover almost every part of the TCP/IP RFCs.

Link: https://github.com/thepowersgang/acess2 ... st_Runner/
How it works:
  • Communicates with the tcp stack through a unix datagram socket that simulates an ethernet cable/segment.
  • Starts a child process with redirected stdout/stderr, giving it the path of the above socket (the process started is semi-abstracted so could be replaced with qemu instead of my userland IPStack wrapper)
  • Sends commands to the child on stdin to tell it to open servers, clients, and make requests.

This code is (currently) pretty rough, and does some evil tricks in places, but shouldn't be too hard to modify for other OSes.

Feel free to copy the code and bastardise it to do you bidding, but I would appreciate it if people sent me any extra tests they write (preferably commented/annotated with what section of the RFC they cover).

_________________
Kernel Development, It's the brain surgery of programming.
Acess2 OS (c) | Tifflin OS (rust) | mrustc - Rust compiler
Currently Working on: mrustc


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: 8infy and 35 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group