mirror of https://github.com/antmicro/sargraph.git
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.
34 lines
855 B
34 lines
855 B
image: debian:bullseye |
|
|
|
before_script: |
|
- apt -qqy update > /dev/null |
|
- apt -qqy install --no-install-recommends screen sysstat gnuplot-nox python3 stress coreutils > /dev/null |
|
- ln -s $(realpath sargraph.py) /usr/bin/sargraph |
|
|
|
simple_test: |
|
variables: |
|
FAKE_DISK: "fake_disk.ext4" |
|
FAKE_MOUNTPOINT: "fake_mountpoint" |
|
SARGRAPH_OUTPUT_TYPE: "svg" |
|
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 |
|
|
|
- cd $FAKE_MOUNTPOINT |
|
- df -h . |
|
- stress -c 16 -i 1 -m 1 --vm-bytes 512M -d 1 --hdd-bytes 70M -t 160s |
|
|
|
- sargraph chart stop |
|
|
|
- cd .. |
|
- cat chart.log |
|
- test -f plot.svg |
|
artifacts: |
|
when: always |
|
paths: |
|
- "*.svg" |
|
- "*.txt" |
|
- "*.log"
|
|
|