"Fossies" - the Fresh Open Source Software Archive

Member "stress-ng-0.13.05/snap/snapcraft.yaml" (11 Oct 2021, 2134 Bytes) of package /linux/privat/stress-ng-0.13.05.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "snapcraft.yaml": 0.13.04_vs_0.13.05.

    1 name: stress-ng
    2 summary: tool to load and stress a computer
    3 description: stress-ng can stress various subsystems of a computer.  It can stress load CPU, cache, disk, memory, socket and pipe I/O, scheduling and much more.  stress-ng is a re-write of the original stress tool by Amos Waterland but has many additional features such as specifying the number of bogo operations to run, execution metrics, a stress verification on memory and compute operations and considerably more stress mechanisms.
    4 confinement: strict
    5 grade: stable
    6 type: app
    7 base: core20
    8 assumes: [snapd2.37]
    9 adopt-info: stress-ng
   10 
   11 architectures:
   12     - build-on: s390x
   13     - build-on: ppc64el
   14     - build-on: arm64
   15     - build-on: armhf
   16     - build-on: amd64
   17     - build-on: i386
   18 
   19 environment:
   20     CFLAGS: '-fstack-protector-strong -Wformat -Werror=format-security'
   21     LDFLAGS: Wl,-z,relro
   22 
   23 parts:
   24     stress-ng:
   25         plugin: make
   26         source: https://github.com/ColinIanKing/stress-ng
   27         source-type: git
   28         override-pull: |
   29             snapcraftctl pull
   30             description="$(git describe HEAD --tags)"
   31             sha=$(echo $description | tr '-' ' ' | awk '{print $NF}')
   32             version=${description%$sha}
   33             commits=$(git log --oneline | wc -l)
   34             date=$(date +'%Y%m%d')
   35             if test "$description" = "$sha"
   36             then
   37                 version="$description"
   38             else
   39                 version=$(echo $version$date-$commits-$sha | cut -c1-32)
   40             fi
   41             snapcraftctl set-version "$version"
   42         make-parameters:
   43             - STATIC=1
   44         build-packages:
   45             - gcc
   46             - make
   47             - zlib1g-dev
   48             - libbsd-dev
   49             - libgcrypt20-dev
   50             - libkeyutils-dev
   51             - libapparmor-dev
   52             - libaio-dev
   53             - libcap-dev
   54             - libsctp-dev
   55             - libatomic1
   56             - libjudy-dev
   57             - try: [libipsec-mb-dev, libkmkod-dev]
   58 apps:
   59     stress-ng:
   60         plugs: [ home, log-observe, system-observe, hardware-observe, system-trace, hardware-random-observe ]
   61         command: usr/bin/stress-ng
   62