exercising features of software to check that they are working correctly

learn more… | top users | synonyms

89
votes
11answers
45k 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?
33
votes
1answer
68k 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?
15
votes
3answers
480 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 ...
9
votes
4answers
2k 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 ...
8
votes
9answers
14k 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 ...
7
votes
7answers
25k 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 ...
7
votes
5answers
8k views

Is there a CD/DVD disk reading test tool for Linux?

When I was using DOS and Windows I've seen quite a selection of tools to check optical disks for readability and benchmark an optical drive itself. Most of them were even visualising the results in ...
5
votes
2answers
778 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 ...
5
votes
1answer
4k 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?
5
votes
1answer
414 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 ...
5
votes
2answers
422 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. ...
4
votes
0answers
160 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 ...
4
votes
2answers
183 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 ...
3
votes
2answers
110 views

How to quickly generate (insecure) GPG keys?

I'd like to automate generating at least two GPG keys for testing and demonstration purposes in a virtual machine. Because of this context I want to make sure the key generation is fast, ideally not ...
3
votes
0answers
534 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, ...
3
votes
0answers
260 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 ...
2
votes
5answers
179 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
33 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 ...
2
votes
1answer
35 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 ...
2
votes
1answer
375 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 ...
2
votes
1answer
303 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 ...
2
votes
1answer
525 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.
2
votes
0answers
107 views

Is there way to print the entered password in PAM?

We are using CentOS 6.5. We have a perl script for our automation testing. One of the script login to the user as non-root user and test "su -" command. This test case passes most of the times but ...
2
votes
0answers
21 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 ...
1
vote
1answer
340 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 ...
1
vote
2answers
382 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 ...
1
vote
1answer
574 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 ...
1
vote
2answers
57 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 ...
1
vote
1answer
152 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 ...
1
vote
4answers
1k 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
1answer
1k 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 ...
1
vote
1answer
24 views

How to run a specific test from OpenSSL test suite?

I want to measure the code coverage of different tests from OpenSSL test suite. I successfully measured the total coverage of the tests with this method: $ make clean $ export CC="gcc ...
1
vote
2answers
142 views

fglrx on Debian stretch

How do I install the fglrx driver on Debian stretch? The package tracker states that there is no package available right now, so I added Sid, pinned on 100. When I try to install fglrx-driver now, ...
1
vote
1answer
37 views

X11 stops rendering during automated testing while switched to different run level

I am running automated tests on an app while recording the desktop for future analysis. I am working from a standard Ubuntu Linux setup. I would like to be able to switch to another user while ...
1
vote
3answers
136 views

loop test strings to see if input is valid for C program input

For example I have a file filled with some pretty gnarly strings. 12345678900 1111111111111111111111111 ...
1
vote
1answer
58 views

generate traffic at wire speed

I have x86 based machine with Intel Core2 CPU 6300 1.86GHz and 2G of memory. I'm looking for options to generate traffic on the machine at line rate, or as close as possible. OS is Fedora 20 with ...
1
vote
1answer
216 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
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 ...
1
vote
1answer
1k 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
0answers
23 views

How verify server's hardware before install it into data center? [closed]

could anybody help to understand me how is it possible verify and validate server's hardware configuration that I'm going to install into datacenter? The problem is that the customer bought noname ...
1
vote
1answer
153 views

How to use afl-fuzz (American Fuzzy Lop) with openssl

I am trying to use afl-fuzz with openssl in Ubuntu. A normal usage of afl-fuzz would be: afl-gcc test.c //-- this will produce a.out mkdir testcases echo "Test case here." > testcases/case1 ...
1
vote
0answers
28 views

Uninstall libc6 (from Debian testing) from Debian stable [duplicate]

I wanted to install the text editor Atom on Debian stable (but I don't want to anymore), and I had to install libc6 from Debian testing. Bad idea, I know. So I changed the sources.list, etc... Used ...
1
vote
2answers
440 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
vote
0answers
52 views

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

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 ...
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
2k 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 ...
1
vote
0answers
111 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 ...
1
vote
0answers
19 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 ...
1
vote
0answers
74 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 ...
1
vote
0answers
201 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 ...