forked from ni/meta-nilrt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel-containerized-performance-tests: pull container build logic in…
…to central script Pull out common container build logic from each containerized performance test file into a single file and run it in run-ptest. Signed-off-by: Gratian Crisan <gratian.crisan@ni.com>
- Loading branch information
Showing
7 changed files
with
34 additions
and
86 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
if [ "$(docker images -q cyclictest-container:latest)" = "" ]; then | ||
echo "Building cyclictest-container..." | ||
DOCKER_BUILDKIT=1 \ | ||
docker build -t cyclictest-container --network=host ./cyclictest-container | ||
if [ "$(docker images -q cyclictest-container:latest)" = "" ]; then | ||
echo "Failed to build cyclictest-container" | ||
exit 77 | ||
fi | ||
fi | ||
|
||
if [ "$(docker images -q parallel-container:latest)" = "" ]; then | ||
echo "Building parallel-container..." | ||
DOCKER_BUILDKIT=1 \ | ||
docker build -t parallel-container --network=host ./parallel-container | ||
if [ "$(docker images -q parallel-container:latest)" = "" ]; then | ||
echo "Failed to build parallel-container" | ||
exit 77 | ||
fi | ||
fi | ||
|
||
exit 0 |
3 changes: 2 additions & 1 deletion
3
recipes-kernel/kernel-tests/kernel-containerized-performance-tests-files/run-ptest
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,9 +1,10 @@ | ||
#!/bin/bash | ||
|
||
./build-containers || exit $? | ||
|
||
./test_kernel_cyclictest_idle_containerized.sh | ||
./test_kernel_cyclictest_hackbench_containerized.sh | ||
./test_kernel_cyclictest_fio_containerized.sh | ||
./test_kernel_cyclictest_iperf_containerized.sh | ||
|
||
exit 0 | ||
|
26 changes: 2 additions & 24 deletions
26
.../kernel-containerized-performance-tests-files/test_kernel_cyclictest_fio_containerized.sh
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
26 changes: 2 additions & 24 deletions
26
...l-containerized-performance-tests-files/test_kernel_cyclictest_hackbench_containerized.sh
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
14 changes: 1 addition & 13 deletions
14
...kernel-containerized-performance-tests-files/test_kernel_cyclictest_idle_containerized.sh
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