Questions tagged [testing]
exercising features of software to check that they are working correctly
143
questions
1
vote
1
answer
64
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
132
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
25
views
How to find Plesk version being used on a website, when we are presented by Plesk default page?
In a website I am trying to do vulnerability assessment of, I have been presented by the following default web page of Plesk.
WHAT I TRIED
whatweb reveals the following.
whatweb abc.efg.com
http://...
0
votes
0
answers
36
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
138
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 ...
0
votes
0
answers
166
views
How to debug gtest unit tests under gdb with proot
I'm trying to debug a unit test with gdb and proot. I need proot because I'm cross-compiling with a toolchain.
What I'm trying is to run
LC_ALL="" PROOT_NO_SECCOMP=1 proot -R /home/yocto/sdk/...
8
votes
1
answer
5k
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, ...
2
votes
1
answer
961
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 ...
18
votes
7
answers
18k
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
34
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
30
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
40
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
128
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
26
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
224
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
194
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
75
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
50
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 ...
8
votes
2
answers
4k
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 ...
45
votes
4
answers
47k
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
209
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
169
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
25
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
1k
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 ...
2
votes
1
answer
539
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
39
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 ...
2
votes
1
answer
642
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
195
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
224
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
74
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 ...
6
votes
1
answer
996
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
380
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
3k
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 /...
1
vote
2
answers
7k
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;...
5
votes
1
answer
4k
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
752
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
114
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 ...
0
votes
1
answer
658
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
515
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
73
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
152
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
34
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
356
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 ...
0
votes
0
answers
81
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. ...
1
vote
1
answer
198
views
Mail server to receive all mail to file system
We are developing a system that sends a lot of e-mails. For our testing purposes we would like to set up a mail server (smarthost) that accepts ALL mail to ALL domains, and then simply saves the mails ...
0
votes
1
answer
2k
views
Mitmproxy vs BurpSuite [closed]
I searched in google a lot, but I didn't find any solution. I know mitmproxy, but I don't know burpsuite. Is both same, or do they perform different tasks? Thank you.
5
votes
2
answers
4k
views
How to detect process's highest cpu usage during it's life
I've written some multi-thread test, and now I want to be sure that the highest CPU usage of this test is equal to 100 * CPU_NUMBER of current machine. Is it possible to do?
UPD 0: I'm talking about ...
-1
votes
4
answers
376
views
Intentionally create a graphical process that does not respond to `_NET_WM_PING`
Sometimes I am curious how a window manager treats an application that does not respond to _NET_WM_PING, e.g. that pop-up that says "Do you want to terminate this application?" This is useful for ...
0
votes
1
answer
4k
views
Android Studio: Running application in emulator not working
Yesterday I downloaded Android Studio for my Debian Testing system. I wanted to run a HelloWorld application (just a blank activity) but weren't able to run it. With adb I can install it without ...
4
votes
1
answer
1k
views
Access https web page via Firefox/Chrome from command line
Is there a way to download a web page in a fashion similar to curl/wget, but via Firefox/Chrome instead? I'm using GNU/Linux. I want to be able to do this exclusively from the command line, so that I ...