Questions tagged [testing]

exercising features of software to check that they are working correctly

Software testing is a part of the software development process that is concerned with checking that the software is working as desired. On this site, testing questions generally concern automating tests. For more general development questions, see Stack Overflow. For more general questions on software testing, see Software Quality Assurance & Testing Stack Exchange.

148 questions
254
votes
15 answers

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?
Eduard Florinescu
  • 11,153
  • 18
  • 57
  • 67
68
votes
4 answers

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.debian.org/debian/ testing-updates main contrib…
boolean.is.null
  • 2,413
  • 6
  • 18
  • 23
43
votes
1 answer

How to upgrade Debian stable (Wheezy) to testing (Jessie)?

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?
eouti
  • 575
  • 1
  • 4
  • 7
21
votes
7 answers

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 load_entry_point('speedtest-cli==2.1.2', 'console_scripts',…
Ole Tange
  • 33,591
  • 31
  • 102
  • 198
17
votes
4 answers

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 from a custom FPGA continuously for 1.5 hours at a…
Mark Lakata
  • 854
  • 1
  • 10
  • 18
16
votes
5 answers

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 manually fixed it but now I want to create automatic…
mreithub
  • 3,543
  • 2
  • 18
  • 17
15
votes
5 answers

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 form of a pretty chart. Are there any such for…
Ivan
  • 17,368
  • 35
  • 93
  • 118
15
votes
1 answer

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 corrupting a FAT file system? Creating bad sectors for…
arash javan
  • 381
  • 1
  • 12
10
votes
2 answers

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?
Daniel
  • 1,207
  • 3
  • 14
  • 30
9
votes
1 answer

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, instead of automatically updating to bookworm, even my sources all point to…
ethcz
  • 365
  • 2
  • 9
9
votes
2 answers

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 as follows: deb http://deb.debian.org/debian bullseye…
9
votes
9 answers

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 tests a given username and password combination…
jcubic
  • 9,612
  • 16
  • 54
  • 75
8
votes
2 answers

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 using or modifying /dev/*random at all. For…
l0b0
  • 50,672
  • 41
  • 197
  • 360
7
votes
1 answer

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 graphical applications that can run on a headless…
ideasman42
  • 1,091
  • 1
  • 10
  • 23
7
votes
2 answers

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 the encrypted data. For instance, also file…
Marcel
  • 1,114
  • 1
  • 14
  • 28
1
2 3
9 10