1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
summary: Ensure that commands run when their core provided interfaces are connected
details: |
Install a test snap that plugs as many core provided interfaces as is
possible and verify the command can run (ie, don't test the interface
functionality itself). This will help catch things like AppArmor
policy syntax errors, seccomp policy parsing, udev querying bugs, etc.
systems: [ubuntu-18*, ubuntu-2*]
environment:
TEST: parallel-installs
NUM_PARALLEL/20_installs: 20
NESTED_CPUS/20_installs: 1
NESTED_MEM/20_installs: 768
CPU_LOAD/20_installs: .6
NUM_PARALLEL/30_installs: 30
NESTED_CPUS/30_installs: 1
NESTED_MEM/30_installs: 1024
CPU_LOAD/30_installs: .5
execute: |
# Get the nested system to use
NESTED_SPREAD_SYSTEM="$(tests.nested nested-system)"
# Get spread
SPREAD="$(tests.nested download spread)"
# Run sprad test
export PERF_CPU_LOAD="$CPU_LOAD"
export SPREAD_EXTERNAL_ADDRESS=localhost:8022
export PERF_NUM_PARALLEL="$NUM_PARALLEL"
(
set -o pipefail
"$SPREAD" external:"$NESTED_SPREAD_SYSTEM":tests/perf/main/"$TEST" | tee spread.log
)
|