exercising features of software to check that they are working correctly

learn more… | top users | synonyms

1
vote
2answers
92 views

Fake IP addresses generator

I have an application running on a server that adds a new iptable rule blocking every IP address trying to connect via SSH with a wrong password. Now, I'd like to perform a stress test where many ...
-1
votes
1answer
30 views

Switch from Debian Jessie to LMDE

I don't like what GNOME applications, such as Gedit, came to be and how they look now in Debian Testing. These colorless and borderless windows with unfamiliar layout are totally unusable for me. I ...
1
vote
0answers
22 views

How can I limit or delay the write speed to specify directory?

I want to limit the write speed and limit to specify directory. Make this directory flakey. Make this directory error for can't write data to it. I have user dmsetup to create the device mapper with ...
0
votes
0answers
12 views

I installed all screensavers I could find, but none are listed in settings, in Fedora 21 Beta

I installed these: yum install xscreensaver-base xscreensaver-extras xscreensaver-extras-base xscreensaver-gl-base xscreensaver-gl-extras But there are no screensavers listed in settings: Anyone ...
2
votes
5answers
72 views

Simulate the remote host identification warning

I need to simulate the warning: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING ...
2
votes
1answer
20 views

Forcing write(2) to return 0

I am writing unit tests and would like to test some code's handling of the case where a call to write(2) returns zero. As ever, it would be nice to keep the test as authentic as possible. I can use a ...
13
votes
3answers
221 views

How to force Linux kernel to “freeze” (or nearly freeze) for a few hundred milliseconds

We are running a real-time process on a non real-time kernel (CentOS 6), and this is probably not going to change. We have a streaming video application that requires about 500 MB/s of PCIe traffic ...
1
vote
2answers
156 views

Drop TCP packets and prevent TCP retransmission

I have an application that sends TCP data to a server. My server is made to intentionally drop the packets sent by the application, and as a result the client retransmits the packets. I need to ...
2
votes
1answer
90 views

How to test Disk IO on VMs with iozone?

I want to test the disk IO performance like read, write, random read, random write and so on both in physical machine and VMs (with aufs file system). Also I want to test the throughput performance in ...
1
vote
1answer
44 views

why doesn't iozone generate output file?

I'm using iozone3 for tesing, on Xamin (an Debian-based OS). When I enter iozone command, for example iozone -Rab output.xls, the test runs successfully. But after running the test (after displaying ...
1
vote
0answers
16 views

Test execution output of a command before a pipe [duplicate]

I would like to test the execution of a php script that redirect its stdout and stderr to a file with tee. php /path/to/script --param 2>&1 | tee -a /path/to/log if ( test $? -ne 0 ); then ...
1
vote
1answer
651 views

Using ping on multiple interfaces on a NIC

I have two systems and each have a NIC with two ethernet ports. One system has a verified NIC card, but the other has a NIC which has to be verified. I use ping to verify whether the interfaces on ...
0
votes
0answers
49 views

xdotool random/more natural delay?

For automated testing of some applications, I would like to emulate the users behaviour. I know I can user the xdotool type --delay option, but I would like a more natural delay. The easiest thing ...
2
votes
0answers
16 views

Is it safe to create a regression test that relies on running out of file descriptor limit?

I'm writing a regression test for my modification of Nmap and I'm wondering if it's a good idea to create a test that would basically perform a large-scale connect() scan on 127.0.0.1/8, which would ...
2
votes
1answer
29 views

Does TMUX have unit tests or a test suite?

I am going through my configuration shell scripts and I have found the make commands to run test suites for pretty much every "big" open source project that I use (vim, zsh...) except for tmux. I ...
1
vote
0answers
16 views

Unitary testing: emulating hardware connection or disconnection

I'm writing a program using libudev. And I want to write some tests. But, one of the functionalities of the program has to do with an usb drive being connected or disconnected. I've read plenty of ...
2
votes
1answer
199 views

How to do an automated measurement for the boot time for freshly build images?

I want to generate images for an embedded system and automatically measure the time they took for booting (especially for different systems). I'm using Buildroot to generate my Linux Images. I ...
1
vote
2answers
46 views

Automated test for install script

I'm writing an install script for an appliance that modifies system config files under /etc (amongst other things). How can I test this script non-destructively? Ideally I would like to run the ...
0
votes
1answer
45 views

Do I need a support contract to test my web application on solaris 10

I need to install Solaris 10 and I'm wondering if I need a support contract, on the download page it says that you need a support contract for production use, but I'm not too sure what production use ...
1
vote
1answer
127 views

How to load Linux PC to make it warm?

I have erratic working linux box and I suspect that it have some issues with either thermal monitoring modules, or even hardware. I think about logging for some time temperature other things to see ...
0
votes
3answers
536 views

Shell script testing through terminal simulation

I am developing a generic bash script which could be executed in different distro. I have only a CentOS virtual machine and I would be interested to test my script on a virtual terminal (online or ...
0
votes
0answers
35 views

How can the output of ldd be checked to see of they exist on a different system or not? [duplicate]

Running ldd on an executable gives the output displayed below. How can the output be parsed for the library names in the first column and their existence tested on another computer, giving output ...
2
votes
1answer
274 views

I need find 1 simple rootkit to test chkrootkit in centos?

I want to find 1 simple rootkit to test chkrootkit (a tool used to detect rootkit). Please recommend to me 1 rootkit and show me how to set it up or install it.
74
votes
11answers
30k views

How to fill 90% of the free memory?

I want to do some low-resources testing and for that I need to have 90% of the free memory full. How can I do this on a *nix system?
1
vote
0answers
72 views

Are there any GUI test suites for Linux?

I'm looking to automate some software testing that's currently done manually by a person. Are there any regression test suites for testing GUIs that run on Linux? I'm looking for a way to record and ...
21
votes
1answer
36k views

How to upgrade Debian stable (Wheezy) to testing (Jessie)? [duplicate]

I downloaded and installed Debian 7 Wheezy, the stable version, but I would like more recent apps and libs so I'd like to switch to testing version (aka Jessie). How do I proceed?
3
votes
0answers
339 views

Test automation tools for desktop application

Is there any GUI / functionality test automation tools for testing QT3 based GUI applications? I went through LDTP, dogtail, Squish, and Sikuli but all dependent on specific QT versions. Also, ...
1
vote
1answer
109 views

continuous testing of a C++ project on github with different Linux distros

Is there any framework to automatically try to compile a C++ project on github.com on every commit made, similar to what http://jenkins-ci.org or http://travis-ci.org do for different compilers on an ...
0
votes
1answer
669 views

What does high, low, negative and constant values from pidstat command mean?

I needed information on the following: Can you please tell me the inference for the following in terms of high, low, negative and constant values from pidstat command in Linux. kB_rd/s, kB_wr/s, ...
0
votes
1answer
106 views

Is my approach to performance testing in Linux environment correct?

I want to do performance testing in a Linux environment for a C++ application. I need to measure the CPU & Memory usage of the application. This application is a multi-threaded application. In ...
7
votes
4answers
1k views

Special File that causes I/O error

I want to automatically test if a piece of software reacts as expected if an essential SQLite DB file fails to be read (causing an I/O error). Exactly that happened some days ago at a client. We ...
4
votes
2answers
166 views

How to run script with the privileges expected of the script's general “intended user”?

During the development of a script, some bugs remain "latent" until the script is run by a different user. (For example, the script may access a file that only the person developing the script has ...
5
votes
1answer
292 views

Simulating user activity

I want to simulate user activity on a virtual machine in a completely automated maner. That is, I would like to run a program or a set of scripts that would simulate an user using a computer for an ...
4
votes
2answers
673 views

conceal home folder completely - is ecryptfs the right choice?

On my Debian-Testing-System, I want to completely conceal the home folders. That means, I not only want the data to be encrypted, but I also want to preclude determining any (or most) information from ...
2
votes
0answers
179 views

How do you write test cases for a web server that uses posix sockets? [closed]

I know how to test it experimentally by running the program, but ideally I would like to test each function I write as I write it. Usually I can't test my functions until I write a whole bunch of ...
1
vote
3answers
811 views

Check if the residence's connection has internet access

I'd like to be able to test if I have access to the internet. My computer is connected to the residence internet connection. I thought of using ping like this: ping -q -w 1 -c 1 `ip r | grep default ...
1
vote
0answers
171 views

memtester runs faster after couple of runs

I am using this test tool : http://pyropus.ca/software/memtester/ And I noticed that first 3 iterations take 4 hours but 30 iterations take only 12 hours. I was hoping that 30 iterations will take 40 ...
0
votes
0answers
133 views

Where is the libstdc++ test suite?

I have GCC/g++ 4.7 and it works fine. But I need to run the libstdc++ testsuite but I don't find where the testsuite is on the system and how to run it. How can I do that?
0
votes
1answer
2k views

Where can I find storage integrity (write/read) test tools?

I am in need of tools to verify data integrity of local harddrives, usb-drives, etc. I am looking for a solution like the famous www.heise.de/download/h2testw or something that is at least common ...
0
votes
2answers
119 views

Testing Scripts

If I have a script called teiid.sh set to run daily by a cron job. The scripts purpose is to initialize the startup of teiid. How would I make a call to test to see the if teiid.sh is working ...
1
vote
0answers
329 views

Compiling and running linux test project

I'm trying to install Linux Test Project (LTP) on Debian 6.0.2, kernel 2.6.33.20. Compilation and installation went fine and without errors, but when I try to run basic tests $ ./runltp I get ...
5
votes
2answers
357 views

Testing ext3 filesystem on embedded device [closed]

My set up: An embedded device with flash memory on it. Flash is partitioned into ext3 filesystem partitions. Have busybox on it. My Goal: To uncover errors /bugs/ problems on ext3 filesystems. ...
6
votes
9answers
12k views

How do I write a test for system login?

I've written a Python CGI script that invokes bash commands, and it needs to test for a successful login on the host. How do I write a test for that? For example, could I create a bash script that ...
-2
votes
1answer
651 views

Best method for testing android kernel

I would like to test some of the features of android kernel like inserting a module and collecting certain parameters for research purpose. What would you think the best method for that?
1
vote
1answer
804 views

gnome 3 system sounds not working

On my System (Debian Wheezy x64, Gnome 3) I don't have any system sounds. Other audio is working well. When I go to settings > Audio > Sounds (hope it is called like this in english) as normal user, ...
1
vote
1answer
816 views

Success/fail tests for cURL (don't execute second line if first line fails)

According to Using "&&" is not effective for cURL submit form (don't execute second line if first line fails) In below code; first line is curl submit; second line is for ...
4
votes
0answers
159 views

Repeatably generate a read error for testing? [duplicate]

I'm trying to test the error handling in some software, in particular what happens when an error occurs reading from a file or pipe. Is there a simple way to send a certain amount of data to stdout ...
1
vote
1answer
487 views

Is there a way to kick kswapd and make it swap out pages?

Even though I have set swappiness to 100 and enabled swap, nothing is being swapped out. This is probably because I don't have high memory pressure at the moment. For testing purposes though, I want ...
5
votes
6answers
22k views

Console tool to test internet bandwidth

I'm looking for a tool that will test my internet connection bandwidth and create an simple report like speedtest does. Do you know some program/tool that do this? Something with CentOS packages ...
5
votes
1answer
3k views

Debugging shell scripts: Syntax checking without executing

Is there some option I can give to just check the syntax of a [bash] shell script to check the syntax of it, but not actually execute anything nor cause any potential damage?