Questions tagged [testing]
exercising features of software to check that they are working correctly
149
questions
1
vote
1
answer
160
views
How to intentionally corrupt my file system or crash its driver?
I am doing a research that involves intentionally corrupting my file system. I shouldn't be able to read or write anything to the file system after that. Therefore I am ok with crashing the drivers to ...
0
votes
2
answers
72
views
How to figure out if CPU or GPU has been damaged by a thermal spike on Fedora
I have bought a new Asus Rog Strix laptop, and I ran on it Windows for a month without any issue. After I changed OS and putted Fedora 37 on it. My laptop has an NVidia 3060 with 6 GB (and a Ryzen 7 ...
1
vote
1
answer
739
views
Simulate touch manipulation on Linux
I'd like to test how well my Linux app works on Linux-based touch devices. Unfortunately, I don't have such a device, which is why I'd like to find a way to simulate touch gestures on a standard ...
0
votes
1
answer
201
views
Using Bash "=~" operator with WHILE instead of UNTIL loop
I'm writing some shell script which asks the user for a domain name. I'd like to prompt the user for input in a loop, and write an error message, if the input is not a valid domain name.
Basically, ...
0
votes
0
answers
11
views
How to simulate network error for DR testing using RHEL (compatible) hosts on local network?
I would like to simulate datacenter connectivity network error for DR testing. I have a local network with total of 6 hosts, simulating two datacenters with 3-3 hosts.
I would like to simulate the ...
0
votes
0
answers
42
views
I know RPMs can have build dependencies, but can they also have testing dependencies?
At work we are developing a number of different software tools in different repositories, which get packaged as RPM files. Our suite of test data for unit and integration testing has now grown to the ...
0
votes
1
answer
464
views
Writing a shell script to undo the changes done to the system by running a script
Question:
Should I even write a script to undo the changes done by running a script in the first place?
If no, then how do I clean up/undo the changes done to the system so that I can run the script ...
2
votes
1
answer
390
views
Allow udisksctl loop-setup without authentication for specific users
I have some tests that verify the behavior of a program under conditions where it runs out of disk space. Previously I've used dd to create a small-ish file then mkfs to make a filesystem on it, then ...
1
vote
1
answer
691
views
How to simulate +%100 CPU Usage for 1 process?
OS: CentOS 7.9
I want to simulate/create 1 process for test purposes, such that top reports it consuming more than %100 CPU. Something looks like below in ps output;
USER PID %CPU ...
1
vote
4
answers
770
views
Debian testing/bookworm user can not login using GNOME Shell 41.4 after upgrade
After applying a recent upgrade on my Debian-System, I can not login in with my user Account. The password is not recognized. Logging in without GUI using the same user and password works fine.
...
0
votes
0
answers
120
views
Integration testing of ansible playbooks on a physical server
I would like to be able to test my ansible playbooks. Currently I have no testing in place for these playbooks. I was looking at molecule as a possibility, however this relies on creating docker ...
3
votes
1
answer
485
views
How to write automated tests for zsh completion?
I have a project in which I automatically generate zsh completion functions. As I work on it, I've found corner cases and bugs which I'm just writing down and making sure to re-test when I make ...
9
votes
1
answer
9k
views
Why does not Debian upgrade to Bookworm, even that sources.list defines 'testing'?
After Debian 11 "bullseye" was released on August 14th, 2021,
the Debian 12 "bookworm" is now the official "testing" distribution.
Why is my Debian still on bullseye, ...
9
votes
2
answers
4k
views
Virtual Wayland Display Server Possible?
Are there any equivalents to X11's Xvfb for Wayland?
So wayland applications can run with OpenGL etc without having to connect to a physical graphics card?
Asking since I would like to run tests for ...
21
votes
7
answers
20k
views
speedtest-cli: ValueError: invalid literal for int() with base 10: ''
On 3 machines I get:
$ speedtest-cli
Retrieving speedtest.net configuration...
Traceback (most recent call last):
File "/usr/bin/speedtest-cli", line 11, in <module>
...
-3
votes
1
answer
113
views
How to get the Avg. RAM and CPU usage for 3 java services which I'm running on Linux machine for load testing metrics
I'm using an AWS remote Linux machine for for Load testing.
Presently I'm using "top" command
Then I also piped few more commands in it to get java specific services
For RAM usage I'm ...
0
votes
1
answer
37
views
How to distinct debian testing package versions from stable ones by cli/script?
How to distinct debian testing package version from stable packages by cli/script?
Debian has Testing source list and DB in order to get some Testing versions downloaded only, but how to ensure/...
0
votes
1
answer
59
views
Declare non environment variables and print them directly afterwards
I want to declare a few non environment variables and print them directly afterwards.
For example:
read domain &&
web_application_root="${HOME}/www" &&
domain_dir="${...
1
vote
1
answer
643
views
How to crash/disable/remove bluez interface in Linux?
I am building a bluetooth client for a project and I am looking for a way to crash the dbus bluetooth service offered by bluez, in Linux, prefferably in a controlled, recoverable manner.
Do you have ...
0
votes
0
answers
31
views
Is there any free system for testing fs security implementation?
I'm writing my own Fuse filesystem and I'm in need of good testing, in particular the access control implementation investigation, as I've already found test suites for I/O. There will be other things ...
1
vote
0
answers
662
views
Memory exhausted -- why?
I am running a console app with a large numerical calculation load. It has run successfully many times but at the moment it is crashing with 'memory exhausted' msg. Here are the two top snapshots that ...
0
votes
1
answer
735
views
Request to virtual ip is not forwarding while trying IP Failover using keepalived on centos 7
I am trying to test IP failover using keepalived on centos 7. I have three instances of centos 7 installed on my vm. So I have 3 servers. I am trying to run keepalived on two of them, 3rd centos will ...
0
votes
1
answer
107
views
how to use LTP (Linux test Project) for Linux kernel testing on real hardware?
I have linux based embedded device where I need to test LTP but the problem is there are not enough space that I can push opt/ltp/ folder there and run the tesecases.
is there any other way that I can ...
0
votes
1
answer
114
views
Are there tools that I can use to obtain a snapshot of terminal or pty state? [duplicate]
Please stop marking this question as a duplicate, it's not a duplicate. Thanks. Consider the sequence of a, followed by \x1b[D ("cursor back"), followed by b. This would produce an output of ...
9
votes
2
answers
5k
views
Full-upgrade to Debian Testing fails due to libc6-dev : Breaks: libgcc-8-dev (< 8.4.0-2~) but 8.3.0-6 is to be installed
I switched the sources to Bullseye and the upgrade went smoothly, but when I do a full-upgrade, I get:
libc6-dev : Breaks: libgcc-8-dev (< 8.4.0-2~) but 8.3.0-6 is to be installed
My sources are ...
72
votes
4
answers
66k
views
Full-upgrade to Debian testing fails due to libc6-dev : Breaks: libgcc-8-dev
I've just switched to bullseye (see sources below)
deb http://deb.debian.org/debian/ testing main contrib non-free
deb-src http://deb.debian.org/debian/ testing main contrib non-free
deb http://deb....
1
vote
1
answer
403
views
Load testing vsftpd causing high CPU load from unix_chkpwd
I'm working on a proof of concept to replace a samba file share with vsftpd (over TLS). This is not a public file store, and so the need for security is essential. And clients will only write to this ...
2
votes
2
answers
338
views
kdm fails to start after update (debian testing)
I just updated debian (testing). I use kde and after updating, kdm does not start.... I end up on the CLI. If I check the status of kdm with systemctl, it says it's started (existed) but it didn't ...
0
votes
1
answer
70
views
Install an old version package with a security related update
I am creating some unit tests for my ansible role(OS update) to verify that my os update process has been done successfully. There is a feature to update only security related packages.
To test it, I ...
0
votes
1
answer
2k
views
How to test a linux kernel upgrade inside a Container
As I know Docker uses host OS kernel, there is no custom or additional kernel inside container. All containers which run on a machine are sharing this "host" kernel.
Working with a containerized ...
3
votes
1
answer
1k
views
Is there a way to artificially slow down Apache http server transactions to simulate load?
Is there a way to artificially slow down Apache http server transactions to simulate load?
I'd need to force http transactions to take 100ms+ instead of the normal 3ms, without killing the CPU or ...
1
vote
0
answers
76
views
Unit test for OS patching process in RHEL
As a part of my automation framework, I am using ansible to perform the OS patching to my host machines. Before executing this proccess in production, I need to write a unit test to verifiy that, the ...
1
vote
1
answer
1k
views
Artificially induces slow network traffic for single program
I need to test that a given (python) application works properly when the network is slow. Is there a way to simulate this on a local machine? Ideally it would be possible to do this for a single ...
0
votes
1
answer
326
views
Prevent the mouse to wake up display (UI Testing)
I'm running some UI automatic testing in which the pointer is moved to perform/simulate user actions, which is executed after some time when the display is OFF.
I want to leave the screen OFF while ...
2
votes
0
answers
395
views
xfwm4 themes gone in debian bullseye?
After updating my debian testing to bullseye, the xfce theme completely vanished. I had a dark them (forgot name) and now its Raleigh as the only theme installed. xfwm4-themes seem to exist only in ...
0
votes
0
answers
93
views
Is there a test Suite for netcat (nc)?
Is there a test suite available for the openbsd implementation of netcat?
A POSIX compatible test suite would also suffice.
Specfically for functional testing. I'm trying to play with the pledges in ...
7
votes
1
answer
1k
views
Running script line by line automatically yet being asked before each line from second line onwards
I work on a script of about 20 lines which I find myself testing time and again by copy-pasting and executing line by line.
Instead of copying-pasting each line and hitting Enter to execute, I would ...
3
votes
2
answers
499
views
Test suites for utilities (cat, cp etc) Linux or BSD?
Are there any test suites available for the small programs usually shipped with the operating system? Specifically, programs like cp, cat, dd etc (anything in /bin/) on Linux or BSD; OpenBSD being the ...
0
votes
1
answer
4k
views
SSH login without password and without keys [duplicate]
Is it possible to configure a user to login via SSH without password and without using keys. Just typing "ssh user@server". I have tried some modifications with
Match User and with AllowUsers in /...
2
votes
2
answers
9k
views
Handling unused getopts argument (are options not mandatory?)
I have a script that starts with getopts and looks as follows:
USAGE() { echo -e "Usage: bash $0 [-w <in-dir>] [-o <out-dir>] [-c <template1>] [-t <template2>] \n" 1>&2;...
6
votes
1
answer
6k
views
How to revert Debian from testing to stable?
I have a PC that is used not so often.
Like half a year ago someone changed its repositories from stable to testing and updated/upgraded. After that no one updated or upgraded.
Can I change in /etc/...
4
votes
0
answers
998
views
Stress testing storage media -- file vs block?
While looking for ways to stress an SDcard, I've noticed there are two ways one can approach this. One is to stress it by reading/writing blocks directly to the device file.
For example:
sudo ...
0
votes
0
answers
136
views
Chef test shows nginx enabled and running service --status-all doesn't show it at all
I am trying to run a chef verify test and the test is showing nginx is enabled and running using this code:
describe service('nginx') do
it { should be_enabled }
it { should be_running }
end
It ...
1
vote
1
answer
1k
views
How to pull a single (or few) packages from Debian testing to Debian oldstable?
Is this possible? I'm looking to install specific packages from Debian testing (buster) into Debian oldstable (jessie).
4
votes
0
answers
596
views
How to mesure the latency of thread switching
I'm learning how to test the performance of a unix-like system.
I've found a tool to measure the context switching time: http://www.bitmover.com/lmbench/lat_ctx.8.html
Now I want to know if it is ...
1
vote
1
answer
82
views
Is it possible to monitor each cell memory for a specific process
Saying that I have a very simple C program test.c, which just prints "hello world", its name is a.out coming from gcc test.c.
I'm thinking if it's possible to monitor exactly what happened while ...
0
votes
1
answer
219
views
rm -rf destroyed directories of the files set to be deleted (multiple arguments)
In a testing environment I executed:
rm -rf /var/www/html/${domain} /etc/nginx/sites-available/${domain} /etc/nginx/sites-enabled/${domain}
The result was that html, sites-available and sites-...
0
votes
2
answers
39
views
Program to instantly host a mysql database from a dump file [closed]
I'm looking for a utility program which can take a dump of a mysql database and basically host a "fake" or minimal mysql server with that data for testing another program which requires it.
Has ...
0
votes
0
answers
405
views
Test network with DHCPDISCOVER without DHCPREQUEST
While starting a portable OS Linux, I need to test all available network interfaces with DHCPDISCOVER. Then, judging on the response DHCPOFFER, I do the choose of the correct interface and ask the ...
1
vote
0
answers
87
views
How to reproduce logs about desktop freezing on second-click in Debian Stretch Gnome Wayland?
I experienced the following event after using Wayland 1 H first time.
Do
Use the laptop one hour, close the lid, and use again etc.
second click on any PDF file.
choose open with some application. ...