You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.1 KiB

image: debian:bullseye
before_script:
- apt -qqy update > /dev/null
- apt -qqy install --no-install-recommends screen sysstat gnuplot-nox python3 python3-pip stress coreutils > /dev/null
- pip install -r requirements.txt
- ln -s $(realpath sargraph.py) /usr/bin/sargraph
simple_test:
variables:
FAKE_DISK: "fake_disk.ext4"
FAKE_MOUNTPOINT: "fake_mountpoint"
script:
- dd if=/dev/zero of=$FAKE_DISK bs=1M count=130
- mkfs.ext4 $FAKE_DISK
- mkdir -p $FAKE_MOUNTPOINT && mount $FAKE_DISK $FAKE_MOUNTPOINT
- sargraph chart start -m $FAKE_MOUNTPOINT
- pushd $FAKE_MOUNTPOINT
- df -h .
- stress -c 16 -i 1 -m 1 --vm-bytes 512M -d 1 --hdd-bytes 70M -t 160s
- popd
- sargraph chart save plot.svg
- sargraph chart save plot.png
- sargraph chart save plot.ascii
- sargraph chart stop
- test -f plot.svg
- test -f plot.png
- test -f plot.ascii
- cat chart.log
- echo '------Sample plot------'
- cat plot.ascii
artifacts:
when: always
paths:
- "*.svg"
- "*.png"
- "*.ascii"
- "*.txt"
- "*.log"