Skip to content

Commit 8eecede

Browse files
committed
[chore] Update images for LTP and other testcases
1 parent 0c84473 commit 8eecede

File tree

4 files changed

+41
-1
lines changed

4 files changed

+41
-1
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Download oscomp testcases
2+
3+
inputs:
4+
image-release-url:
5+
description: 'URL of the image release'
6+
required: true
7+
type: string
8+
arch:
9+
description: 'Architecture of testcases'
10+
required: true
11+
type: string
12+
13+
runs:
14+
using: "composite"
15+
steps:
16+
- name: Cache Testcases
17+
id: cache-testcases
18+
uses: actions/cache/restore@v4
19+
with:
20+
path: sdcard-${{ inputs.arch }}.img.gz
21+
key: sdcard-${{ inputs.arch }}.img.gz
22+
- name: Download testcases
23+
if: steps.cache-testcases.outputs.cache-hit != 'true'
24+
shell: bash
25+
run: |
26+
IMAGE_URL=${{ inputs.image-release-url }}/sdcard-${{ inputs.arch }}.img.gz
27+
wget ${IMAGE_URL}
28+
- uses: actions/cache/save@v4
29+
if: steps.cache-testcases.outputs.cache-hit != 'true'
30+
with:
31+
path: sdcard-${{ inputs.arch }}.img.gz
32+
key: sdcard-${{ inputs.arch }}.img.gz

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ jobs:
121121
- uses: ./.github/workflows/actions/setup-qemu
122122
with:
123123
qemu-version: ${{ env.qemu-version }}
124+
- uses: ./.github/workflows/actions/setup-testcases
125+
with:
126+
image-release-url: https://github.com/Azure-stars/testsuits-for-oskernel/releases/download/v0.2
127+
arch: ${{ matrix.arch }}
128+
- name: Unzip testcases
129+
run: |
130+
gunzip sdcard-${{ matrix.arch }}.img.gz
124131
- name: Build python environment
125132
run: sudo apt-get install -y python3 python3-pip
126133
- name: Run tests for oscomp musl testcases

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/oscomp_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ testcases_type=(
7777
"libctest"
7878
)
7979

80-
IMG_URL=https://github.com/Azure-stars/testsuits-for-oskernel/releases/download/v0.1/sdcard-$ARCH.img.gz
80+
IMG_URL=https://github.com/Azure-stars/testsuits-for-oskernel/releases/download/v0.2/sdcard-$ARCH.img.gz
8181
if [ ! -f sdcard-$ARCH.img ]; then
8282
echo -e "${CYAN_C}Downloading${END_C} $IMG_URL"
8383
wget -q $IMG_URL

0 commit comments

Comments
 (0)