-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from rcore-os/master
merge upstream to me
- Loading branch information
Showing
3 changed files
with
81 additions
and
2 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 |
---|---|---|
|
@@ -175,3 +175,56 @@ jobs: | |
- name: Run full tests | ||
if: github.event_name == 'schedule' | ||
run: cd tests && python3 linux_libc_test.py --arch ${{ matrix.arch }} | ||
|
||
linux-other-test-baremetal: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: [x86_64, riscv64] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: 'recursive' | ||
- name: Pull prebuilt images | ||
run: git lfs pull -I prebuilt/linux/libc-libos.so | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: nightly-2022-01-20 | ||
components: rust-src, llvm-tools-preview | ||
- if: matrix.arch == 'riscv64' | ||
uses: actions-rs/[email protected] | ||
with: | ||
crate: cargo-binutils | ||
version: latest | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install musl-tools musl-dev ninja-build -y | ||
pip3 install -r tests/requirements.txt | ||
- name: Cache QEMU | ||
uses: actions/cache@v1 | ||
with: | ||
path: qemu-6.1.0 | ||
key: qemu-6.1.0-${{ matrix.arch }} | ||
- name: Install QEMU | ||
run: | | ||
[ ! -d qemu-6.1.0 ] && wget https://download.qemu.org/qemu-6.1.0.tar.xz \ | ||
&& tar xJf qemu-6.1.0.tar.xz > /dev/null \ | ||
&& cd qemu-6.1.0 && ./configure --target-list=${{ matrix.arch }}-softmmu && cd .. | ||
cd qemu-6.1.0 && sudo make install -j | ||
qemu-system-${{ matrix.arch }} --version | ||
- name: Prepare rootfs | ||
run: | | ||
if [ "${{ matrix.arch }}" = "x86_64" ]; then | ||
make rootfs && make image | ||
elif [ "${{ matrix.arch }}" = "riscv64" ]; then | ||
make riscv-image | ||
fi | ||
- name: Run fast tests | ||
if: github.event_name != 'schedule' | ||
run: cd tests && python3 linux_other_test.py --arch ${{ matrix.arch }} --fast | ||
- name: Run full tests | ||
if: github.event_name == 'schedule' | ||
run: cd tests && python3 linux_other_test.py --arch ${{ matrix.arch }} |
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 tests
updated
4 files
+59 −0 | linux_other_test.py | |
+476 −524 | testcases/linux_libc_test/riscv64_bare.txt | |
+49 −0 | testcases/linux_other_test/riscv64_bare.txt | |
+16 −0 | testcases/linux_other_test/x86_64_bare.txt |