Skip to content

Commit 2925a53

Browse files
committed
Update test script
1 parent c0fca55 commit 2925a53

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ source $SWIFT_BUILDROOT/.devcontainer/build-scripts/swift-define
88
# Build
99
cd $WORKING_DIR
1010
make $BUILDROOT_OPTIONS swift-hello-build
11-
/usr/bin/$QEMU_BIN -L $BUILDROOT_TARGET $BUILDROOT_TARGET/usr/bin/swift-hello
11+
file $BUILDROOT_TARGET/usr/bin/swift-hello
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# Configurable
5+
SWIFT_BUILDROOT="${SWIFT_BUILDROOT:=$(pwd)}"
6+
source $SWIFT_BUILDROOT/.devcontainer/build-scripts/swift-define
7+
8+
# Build
9+
cd $WORKING_DIR
10+
make $BUILDROOT_OPTIONS swift-hello-build
11+
QEMU_TEST="/usr/bin/$QEMU_BIN -L $BUILDROOT_TARGET $BUILDROOT_TARGET/usr/bin/swift-hello"
12+
echo "$QEMU_TEST"
13+
$QEMU_TEST

.github/workflows/buildroot.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ jobs:
2222
with:
2323
name: build-${{ matrix.arch }}
2424
path: ${{ github.workspace }}/output/${{ matrix.arch }}/images/rootfs.tar
25-
- name: Test
25+
- name: Build Test
2626
run: |
2727
export SWIFT_BUILDROOT=$GITHUB_WORKSPACE
2828
export SWIFT_TARGET_ARCH=${{ matrix.arch }}
29-
$SWIFT_BUILDROOT/.devcontainer/build-scripts/test-swift.sh
29+
$SWIFT_BUILDROOT/.devcontainer/build-scripts/build-test.sh
3030
- name: Upload test binary
3131
uses: actions/[email protected]
3232
with:

0 commit comments

Comments
 (0)