exercising features of software to check that they are working correctly

learn more… | top users | synonyms

0
votes
0answers
15 views

server load and performance testing

Dears, there are some cluster of servers that are responsible for a telecommunication company databases. the OS's was Linux Redhat installed on bare metal till now, but all the clusters are migrating ...
1
vote
0answers
20 views

list of wpa_supplicant error messages

I'm trying to write a test to debug a network manager that utilises wpa_supplicant but I'm having a hard time finding a list of error messages that I can expect for CTRL-EVENT-SSID-TEMP-DISABLED ...
0
votes
1answer
29 views

Checking that $((a * b)) evaluates in my own shell [closed]

POSIX seems to define that a shell should be able to evaluate like a calculator the expression $(( a * b)) where * is a binary operator +, - or *. I programmed such a calculator for my own shell and ...
0
votes
1answer
27 views

set swap space to 0 on RHEL for testing

I have tried to change the swappiness to 100, and used the malloc() code in order to set the swap to 0 on my rhel system But this not seem to be helpful . The system memory allocation looks like this :...
0
votes
0answers
20 views

How to test if a command is installed? [duplicate]

For example, if I'm writing a shell script which: depends completely on a specific command being available/installed, or is intended to make use of a specific command if it is available (and ...
1
vote
1answer
48 views

How to give write / create right to not yet existing files w/o write access of the parent directory?

I don't know if this is even possible so I need to ask. I'd like to allow a single file to be created by a user (a flag-file) but only that file should be able to be created. As I have the parent ...
2
votes
1answer
48 views

Capture tmux status bar content

I wrote an addon to tmux, tmux-gitbar, it adds to tmux status bar some information about the current Git working tree (name of local and remote branch, working tree is clean?, etc.). So basically it's ...
2
votes
3answers
484 views

Debian Stretch - how to install hamachi (unsatisfied dependency lsb-core)

I have a workstation running under Debian testing (stretch). I need to access it from outside my local network, and due to not having a static public IP nor ability to use full port forwarding, for ...
15
votes
1answer
737 views

create a corrupted FAT file system

I have an application which will search for a corrupted FAT file system and repair it. For testing the application I will need a corrupted file system. What is a good and reproducible way for ...
3
votes
1answer
143 views

/etc/network/interfaces file valdiation

Are there any tools baked in to linux that I can use to validate the syntax in /etc/network/interfaces or /etc/network/interfaces/*.conf files akin to the way I can validate sudo using visudo before ...
1
vote
2answers
352 views

Stress (write) Test an SD card to destruction using a simple shell script

I would like to find out how many write cycles I can get from my SD card. I have googled and found good answers like this but its too complicated for a normal person like me. Say its a 64GB exfat ...
0
votes
0answers
44 views

Getting Dogtail to work with QT on GNOME 2

My question is in regards to GNOME 2 running on a CENTOS 5 box. I'm trying to get the Dogtail automation tool to work with my given box for the purpose of testing a QT application. Versions .7 (which ...
0
votes
1answer
22 views

How should I test installation procedure on clean system (quickly and disk-space cheap)?

I was asked to invent an installation procedure for existing application, including compilation, downloading and installing the server and some other things. I have managed to get the program to work ...
0
votes
1answer
126 views

Testing using shell scripts

I am trying to write a shell script for testing my programs. I am having a few fundamental questions regarding it: Goal: The shell script must be able to test certain programs and determine if they ...
3
votes
2answers
164 views

Is it possible to emulate older versions of Bash?

Is it possible to emulate (is that the right word?) previous versions of Bash? I am using 4.3.11, and I am curious to know if my scripts are compatible with some earlier versions, but I don't want ...
1
vote
1answer
107 views

How to verify IDEA installation success with CLI on a VM?

I'm using a third party Puppet module to install IntelliJ IDEA, and I'd like to automatically verify that the installation worked. The current solution fails because there is no license: $ make test [...
-1
votes
3answers
192 views

Why does the builtin `test` fail with 'less than' (<) and 'greater than' (>)?

This code: #!/bin/bash if [ "4" = "a" ]; then echo "equal"; fi if [ "4" > "a" ]; then echo "yes 1"; fi if [ "4" < "a" ]; then echo "yes 2"; fi echo "exit" prints this three lines: yes 1 yes ...
0
votes
1answer
90 views

Can I check a suspect .zip file without downloading it?

I am using Linux Fedora 20 and BT Yahoo mail. I have received an email with an attached .zip file, but I suspect that it might be malicious and dangerous even to download the attachment -- it might ...
0
votes
0answers
17 views

Does MonkeyTalk support PhoneGap Sencha Touch based Mobile Application?

We have a PhoneGap Sencha Touch based Mobile Application, I want to use MonkeyTalk in automation testing. Can someone help me? I did everything following the MonkeyTalk's user guide. Then, ...
1
vote
1answer
210 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 -fprofile-...
0
votes
1answer
69 views

How do I test or verify ZFS encryption is working?

How do I test or verify that the ZFS encryption is working, especially when running as a Samba share? Like if I create a ZFS pool with encryption=on, how can I tell whether a file is being properly ...
1
vote
2answers
1k 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
votes
2answers
93 views

To have strict and warnings in Perl oneliner [closed]

I really miss use strict; use warnings in my Perl one-liners such as: perl -ne 'print unless /[0-5],[0-5]?|hernia|.{170,}|benz/' file` especially when I include many conditions separated by |. I ...
1
vote
0answers
307 views

Debian 8.1 Stretch (testing) - can't use switch language (keyboard) hotkeys with anything else

I'm a linux-beginner. After 2 weeks of using XUbuntu 15 I switched to Debian 8.1 testing. Installed everything using graphics expert install, using MATE as my default DE. So basically got one big "...
1
vote
1answer
61 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
1answer
430 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 afl-...
0
votes
1answer
66 views

Lab environment for testing routing in a Unix environment?

I know there are tools such as GNS3 and Packet Tracker; but the big problem with these tools is they do not work with open source tools such as OpenBGPD and BIRD. So, this leads me to the question; ...
0
votes
1answer
343 views

Proxy server vs /etc/hosts file

I was told today that /etc/hosts is not a viable option for testing a new destination server. The DNS for /etc/hosts modifications could still cache the old DNS settings and we would get incorrect ...
1
vote
0answers
30 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
3answers
288 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 ...
3
votes
2answers
393 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 ...
1
vote
1answer
113 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 ...
2
votes
0answers
211 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 ...
-1
votes
1answer
291 views

Run a server and client in a makefile [closed]

I'm coding a socket file server in C++, and I can't figure out how to put proper unit testing into my makefile. My problem is as follows: The server, when started, spits out its port number to stdout....
1
vote
2answers
665 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 (...
0
votes
1answer
393 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 ...
0
votes
1answer
334 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
297 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
69 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 ...
16
votes
4answers
943 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
722 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
1k 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
421 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
3k 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
214 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
26 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
50 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 can'...
1
vote
0answers
22 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
665 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 ...