Comments (11)
Emma, don't waste your time evaluating test frameworks. We "democratically" decided to go with Sharness -- see #18. 🔨
from netsniff-ng.
I am still convinced Ctest covers some ground Shareness does not and vice-versa.
When such "democracy" occurs, people say: ¡No Pasarán! ✊
from netsniff-ng.
Yeah, Ctest is better suited for C unit testing. Sharness prevails when it comes to testing command-line interfaces or shell code itself. So we really have two distinct use cases and it's not black and white.
from netsniff-ng.
In the end, looks more like an unanimity.
(Quote from yesterday's IM on the topic)
Daniel: mathias agreed to include his shareness improvements with some basic test bases into netsniiff-ng
Me: yes I saw the ticket and its answer. we will see, but I can already tell you that it is not a silver bullet (e.g. specific function test)
Daniel: okay
Me: but I think ctest and shareness would make a very good combo
Daniel: yes, i think so too
Me: as ctest misses on higher level tests
Daniel: yes, exactly, that's where shareness comes in
Me: in a nutsheel ctest for low-level test and shareness for high-level ones
Daniel: yes, fully ack
from netsniff-ng.
No matter what framework we're using, it looks like netsniff-ng
always needs root privileges, which is obviously bad for automated testing.
from netsniff-ng.
Maybe there are some hacks for rules.d about which I am not yet aware of. It should definitly be possible to run curvetun, for instance, without root privileges.
from netsniff-ng.
FYI: I just closed issue 12 (http://coccinelle.lip6.fr/) and would like to move the discussion to this ticket, so that we have all 3 frameworks here.
Semantic patches should go into: src/s/
Sharness + Ctest should go into: src/t/
from netsniff-ng.
So you even need to be root to let netsniff-ng
process a .pcap?
Keep in mind that using Sharness (or any scripts) as root could backfire very easily.
from netsniff-ng.
How exactly do you define "backfire"? Most likely, you need to run those tools (except ifpps, curvetun [with rules.d adaption]) as root. For instance, in netsniff-ng you have RX/TX_RINGs. Only root can allocate them.
from netsniff-ng.
It was late and I worried about running all tests via root. But I guess it'd be okay to say sudo netsniff-ng
to limit privileges to particular commands. (Need to test how Sharness copes with that.)
And btw: http://www.dict.cc/?s=backfire :)
from netsniff-ng.
Included in PROJECTS file.
from netsniff-ng.
Related Issues (20)
- http://pub.netsniff-ng.org/netsniff-ng/ is not https! HOT 3
- astraceroute not work,but traceroute can
- astraceroute: ICMP and TCP checksum calculation is not carried out HOT 1
- astraceroute: never stops
- netsniff-ng: Support bind to UDP port option
- A strange core-dump issue HOT 19
- Using netsniff-ng in vxlan environment HOT 1
- Support new MaxMind GeoIP database format (v2 / .mmdb)
- Compilation fails with gcc-10 HOT 2
- CMake support // XCompile for OpenWrt
- blhc complains about Missing CPPFLAGS/CFLAGS
- Reversed endianness after using VLAN builder with mausezahn
- [email protected] email bounces HOT 1
- Release? HOT 3
- Use netsniff-ng -F to capture packets per-sec failed.
- trafgen with specified rate not using all cpus HOT 1
- Cannot set system socket memory Error
- Add support to run trafgen in Kubernetes pods with pinned CPU
- Does mausezahn not allow fragmentation of (e.g.) UDP frames (mausezahn 0.6.5+)? HOT 2
- 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netsniff-ng.