-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/xlink_example
- Loading branch information
Showing
7 changed files
with
25 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,4 @@ | ||
@Library('[email protected]') _ | ||
|
||
def withXTAG(String target, Closure body) { | ||
// Acquire an xtag adapter-id by target name | ||
def adapterID = sh (script: "xtagctl acquire ${target}", returnStdout: true).trim() | ||
// Run the closure | ||
body(adapterID) | ||
// Release the xtag by adapter-id | ||
sh ("xtagctl release ${adapterID}") | ||
} | ||
|
||
@Library('[email protected]') _ | ||
|
||
// Wait here until specified artifacts appear | ||
def artifactUrls = getGithubArtifactUrls([ | ||
|
@@ -93,35 +83,35 @@ pipeline { | |
withVenv { | ||
script { | ||
if (fileExists("$DOWNLOAD_DIRNAME/example_freertos_getting_started.xe")) { | ||
withXTAG("$SDK_TEST_RIG_TARGET") { adapterID -> | ||
sh "test/examples/run_freertos_getting_started_tests.sh $adapterID" | ||
withXTAG(["$SDK_TEST_RIG_TARGET"]) { adapterIDs -> | ||
sh "test/examples/run_freertos_getting_started_tests.sh " + adapterIDs[0] | ||
} | ||
} else { | ||
echo 'SKIPPED: example_freertos_getting_started' | ||
} | ||
} | ||
script { | ||
if (fileExists("$DOWNLOAD_DIRNAME/example_freertos_explorer_board.xe")) { | ||
withXTAG("$SDK_TEST_RIG_TARGET") { adapterID -> | ||
sh "test/examples/run_freertos_explorer_board_tests.sh $adapterID" | ||
withXTAG(["$SDK_TEST_RIG_TARGET"]) { adapterIDs -> | ||
sh "test/examples/run_freertos_explorer_board_tests.sh " + adapterIDs[0] | ||
} | ||
} else { | ||
echo 'SKIPPED: example_freertos_explorer_board' | ||
} | ||
} | ||
script { | ||
if (fileExists("$DOWNLOAD_DIRNAME/example_freertos_dispatcher.xe")) { | ||
withXTAG("$SDK_TEST_RIG_TARGET") { adapterID -> | ||
sh "test/examples/run_freertos_dispatcher_tests.sh $adapterID" | ||
withXTAG(["$SDK_TEST_RIG_TARGET"]) { adapterIDs -> | ||
sh "test/examples/run_freertos_dispatcher_tests.sh " + adapterIDs[0] | ||
} | ||
} else { | ||
echo 'SKIPPED: example_freertos_dispatcher' | ||
} | ||
} | ||
script { | ||
if (fileExists("$DOWNLOAD_DIRNAME/example_freertos_l2_cache.xe")) { | ||
withXTAG("$SDK_TEST_RIG_TARGET") { adapterID -> | ||
sh "test/examples/run_freertos_l2_cache_tests.sh $adapterID" | ||
withXTAG(["$SDK_TEST_RIG_TARGET"]) { adapterIDs -> | ||
sh "test/examples/run_freertos_l2_cache_tests.sh " + adapterIDs[0] | ||
} | ||
} else { | ||
echo 'SKIPPED: example_freertos_l2_cache' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _sdk-baremetal-code-examples: | ||
|
||
######################## | ||
Bare-metal Code Examples | ||
######################## | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule io
updated
2 files
+2 −0 | index.rst | |
+1 −0 | test/lib_i2c/i2c_master_test/i2c_master_test.cmake |