Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assign exit code according to test results, use network license. #156

Merged
merged 3 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 20 additions & 8 deletions JenkinsfileHW
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
node('sdg-nuc-01'){
sh 'rm /lib/x86_64-linux-gnu/libiio.so* || true'
}
node('sdg-nuc-02'){
sh 'rm /lib/x86_64-linux-gnu/libiio.so* || true'
}

// Pipeline
lock(label: 'adgt_test_harness_boards') {
@Library('sdgtt-lib@adgt-test-harness') _ // Not necessary when we turn on global libraries :)
def hdlBranch = "NA"
def linuxBranch = "NA"
def bootPartitionBranch = "master" // Workaround changes in Artifactory folder structure, master unaffected (HTH-475)
def bootPartitionBranch = "2021_r2"
def firmwareVersion = 'v0.34'
def bootfile_source = 'artifactory' // options: sftp, artifactory, http, local
def harness = getGauntlet(hdlBranch, linuxBranch, bootPartitionBranch, firmwareVersion, bootfile_source)

//Update repos
harness.set_env('nebula_repo', 'https://github.com/sdgtt/nebula.git')
harness.set_env('nebula_branch','dev')
harness.set_env('nebula_config_branch','master')
// harness.set_env('libiio_branch', 'v0.23')
harness.set_env('nebula_config_branch','release')
harness.set_env('libiio_branch', 'v0.25')
// harness.set_env('telemetry_repo', 'https://github.com/sdgtt/telemetry.git')
// harness.set_env('telemetry_branch', 'master')
harness.set_env('matlab_repo', 'https://github.com/analogdevicesinc/TransceiverToolbox.git') // Not necessary when using checkout scm
harness.set_env('matlab_release','R2022b')
harness.set_matlab_timeout('5m')
harness.set_env('matlab_license','network')
harness.set_matlab_timeout('8m')

//Update nebula config from netbox
harness.set_update_nebula_config(true)
Expand All @@ -37,21 +45,25 @@ lock(label: 'adgt_test_harness_boards') {
//Set other test parameters
harness.set_nebula_debug(true)
harness.set_enable_docker(true)
harness.set_docker_host_mode(false)
harness.set_docker_host_mode(true) // Set to false if using machine-specific license
harness.set_send_telemetry(false)
harness.set_log_jira(false)
harness.set_enable_resource_queuing(true)
harness.set_lock_agent(true) // Required for MATLAB toolbox tests
harness.set_lock_agent(false) // Set to true if using machine-specific license
harness.set_elastic_server('192.168.10.1')
harness.set_required_hardware(["zynq-zed-adv7511-adrv9002-vcmos",
"zynq-zed-adv7511-adrv9002-rx2tx2-vcmos",
"zynqmp-zcu102-rev10-adrv9002-vcmos",
"zynqmp-zcu102-rev10-adrv9002-rx2tx2-vcmos",
"zynqmp-zcu102-rev10-adrv9002-rx2tx2-vlvds",
"pluto",
"zynq-adrv9361-z7035-fmc",
"zynq-zed-adv7511-ad9364-fmcomms4",
"zynq-zed-adv7511-ad9361-fmcomms2-3",
"zynq-zc706-adv7511-ad9361-fmcomms5",
"zynq-zc702-adv7511-ad9361-fmcomms2-3",
"zynq-adrv9364-z7020-bob-vcmos"])
"zynq-adrv9364-z7020-bob-vcmos",
"zynq-adrv9364-z7020-bob-vlvds"])
harness.set_docker_args(['Vivado', 'MATLAB'])
harness.set_nebula_local_fs_source_root("artifactory.analog.com")

Expand All @@ -72,4 +84,4 @@ lock(label: 'adgt_test_harness_boards') {

// Go go
harness.run_stages()
}
}
6 changes: 5 additions & 1 deletion test/runHWTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,14 @@ function runHWTests(board)
disp(t);
disp(repmat('#',1,80));
fid = fopen('failures.txt','a+');
exitcode = 0;
for test = results
if test.Failed
disp(test.Name);
fprintf(fid,string(test.Name)+'\n');
exitcode = 2;
elseif test.Incomplete
exitcode = 3;
end
end
fclose(fid);
Expand All @@ -99,5 +103,5 @@ function runHWTests(board)
end
save(['BSPTest_',datestr(now,'dd_mm_yyyy-HH_MM_SS'),'.mat'],'t');
bdclose('all');
exit(any([results.Failed]));
exit(exitcode);
end
Loading