mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-23 21:35:26 +03:00
1101c02c2a
This adds infrastructure to the Rust test suite for destructive tests, and adds a new `transactionality` test which runs rpm-ostree in a loop (along with `ostree-finalize-staged`) and repeatedly uses either `kill -9`, `reboot` and `reboot -ff`. The main goal here is to flush out any "logic errors". So far I've validated that this passes a lot of cycles using ``` $ kola run --qemu-image=fastbuild-fedora-coreos-ostree-qemu.qcow2 ext.ostree.destructive-rs.transactionality --debug --multiply 8 --parallel 4 ``` a number of times.
18 lines
386 B
Bash
Executable File
18 lines
386 B
Bash
Executable File
#!/bin/bash
|
|
set -xeuo pipefail
|
|
# Generates a kola test for each destructive test in the binary
|
|
list=$1
|
|
shift
|
|
testdir=$1
|
|
shift
|
|
ln -Tsf ../nondestructive-rs ${testdir}/data
|
|
while read line; do
|
|
cat >${testdir}/${line} << EOF
|
|
#!/bin/bash
|
|
set -xeuo pipefail
|
|
dn=\$(dirname $0)
|
|
exec \${KOLA_EXT_DATA}/ostree-test run-destructive ${line}
|
|
EOF
|
|
chmod a+x "${testdir}/${line}"
|
|
done < "${list}"
|