import base64
import json
import os
+import random
import sys
import time
import xmlrpc.client
{
'git-repo': 'https://github.com/lttng/lttng-ci.git',
'revision': 'master',
- 'testdef': 'lava/baremetal-tests/failing-close.yml'
+ 'testdef': 'lava/system-tests/failing-close.yml'
},
{
'git-repo': 'https://github.com/lttng/lttng-ci.git',
'revision': 'master',
- 'testdef': 'lava/baremetal-tests/failing-ioctl.yml'
+ 'testdef': 'lava/system-tests/failing-ioctl.yml'
},
{
'git-repo': 'https://github.com/lttng/lttng-ci.git',
'revision': 'master',
- 'testdef': 'lava/baremetal-tests/failing-open-efault.yml'
+ 'testdef': 'lava/system-tests/failing-open-efault.yml'
},
{
'git-repo': 'https://github.com/lttng/lttng-ci.git',
'revision': 'master',
- 'testdef': 'lava/baremetal-tests/success-dup-close.yml'
+ 'testdef': 'lava/system-tests/success-dup-close.yml'
},
{
'git-repo': 'https://github.com/lttng/lttng-ci.git',
'revision': 'master',
- 'testdef': 'lava/baremetal-tests/raw-syscall-getpid.yml'
+ 'testdef': 'lava/system-tests/raw-syscall-getpid.yml'
},
{
'git-repo': 'https://github.com/lttng/lttng-ci.git',
'revision': 'master',
- 'testdef': 'lava/baremetal-tests/failing-open-enoent.yml'
+ 'testdef': 'lava/system-tests/failing-open-enoent.yml'
},
{
'git-repo': 'https://github.com/lttng/lttng-ci.git',
'revision': 'master',
- 'testdef': 'lava/baremetal-tests/lttng-test-filter.yml'
+ 'testdef': 'lava/system-tests/lttng-test-filter.yml'
}
],
'timeout': 7200
{
'git-repo': 'https://github.com/lttng/lttng-ci.git',
'revision': 'master',
- 'testdef': 'lava/baremetal-tests/perf-tests.yml'
+ 'testdef': 'lava/system-tests/perf-tests.yml'
}
],
'timeout': 3600
{
'git-repo': 'https://github.com/lttng/lttng-ci.git',
'revision': 'master',
- 'testdef': 'lava/baremetal-tests/kernel-tests.yml'
+ 'testdef': 'lava/system-tests/kernel-tests.yml'
},
{
'git-repo': 'https://github.com/lttng/lttng-ci.git',
'revision': 'master',
- 'testdef': 'lava/baremetal-tests/destructive-tests.yml'
+ 'testdef': 'lava/system-tests/destructive-tests.yml'
}
],
'timeout': 7200
}
})
return command
-def get_kprobes_test_cmd():
+
+def get_kprobes_generate_data_cmd():
+ random_seed = random.randint(0, 1000000)
command = OrderedDict({
'command': 'lava_test_shell',
'parameters': {
{
'git-repo': 'https://github.com/lttng/lttng-ci.git',
'revision': 'master',
- 'testdef': 'lava/baremetal-tests/kprobe-fuzzing-tests.yml'
+ 'testdef': 'lava/system-tests/kprobe-fuzzing-generate-data.yml',
+ 'parameters': { 'RANDOM_SEED': str(random_seed) }
}
],
- 'timeout': 7200
+ 'timeout': 60
+ }
+ })
+ return command
+
+def get_kprobes_test_cmd(round_nb):
+ command = OrderedDict({
+ 'command': 'lava_test_shell',
+ 'parameters': {
+ 'testdef_repos': [
+ {
+ 'git-repo': 'https://github.com/lttng/lttng-ci.git',
+ 'revision': 'master',
+ 'testdef': 'lava/system-tests/kprobe-fuzzing-tests.yml',
+ 'parameters': { 'ROUND_NB': str(round_nb) }
+ }
+ ],
+ 'timeout': 1000
}
})
return command
print('Tests runs need -uc/--ust-commit options. Exiting...')
return -1
j['actions'].append(get_config_cmd('kvm'))
- j['actions'].append(get_env_setup_cmd('kvm', args.tools_commit, args.ust_commit))
- j['actions'].append(get_kprobes_test_cmd())
+ j['actions'].append(get_kprobes_generate_data_cmd())
+ for i in range(10):
+ j['actions'].append(get_kprobes_test_cmd(round_nb=i))
j['actions'].append(get_results_cmd(stream_name='tests-kernel'))
else:
assert False, 'Unknown test type'