Skip to content

Commit

Permalink
Merge branch 'master' into disable_rocketchip_timer_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lsf37 authored Jun 16, 2024
2 parents d5532d4 + 1df49ec commit 9daab4c
Show file tree
Hide file tree
Showing 11 changed files with 355 additions and 201 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/sel4test-hw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
# See sel4test-hw/builds.yml in the repo seL4/ci-actions for configs.

name: seL4Test HW
name: seL4Test-HW

on:
# needs PR target for secrets access; guard by requiring label
Expand All @@ -17,6 +17,12 @@ on:
permissions:
contents: read

# Cancel older runs of this workflow that are still not finished for the
# current PR. This reduces the CI load.
concurrency:
group: ${{ github.workflow }}-pr-${{ github.event.number }}
cancel-in-progress: true

jobs:
hw-build:
name: HW Build
Expand All @@ -33,11 +39,9 @@ jobs:
strategy:
fail-fast: false
matrix:
march: [armv7a, armv8a, nehalem]
# There is no "rv32imac" hardware yet.
march: [armv7a, armv8a, nehalem, rv64imac]
compiler: [gcc, clang]
include:
- march: rv64imac
compiler: gcc
steps:
- name: Build
uses: seL4/ci-actions/sel4test-hw@master
Expand All @@ -46,7 +50,7 @@ jobs:
compiler: ${{ matrix.compiler }}
sha: ${{ github.event.pull_request.head.sha }}
- name: Upload images
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: images-${{ matrix.march }}-${{ matrix.compiler }}
path: '*-images.tar.gz'
Expand Down Expand Up @@ -78,13 +82,12 @@ jobs:
matrix: ${{ fromJson(needs.the_matrix.outputs.matrix) }}
steps:
- name: Get machine queue
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: seL4/machine_queue
path: machine_queue
token: ${{ secrets.PRIV_REPO_TOKEN }}
- name: Download image
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: images-${{ matrix.march }}-${{ matrix.compiler }}
- name: Run
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/sel4test-sim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ on:
branches: [master]
pull_request:

# Cancel older runs of this workflow that are still not finished for the
# current PR. This reduces the CI load. For deployment to the master branch,
# the workflow will run on each push, but no cancellation happens here.
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || format('run-{0}', github.run_id) }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
simulation:
name: Simulation
Expand All @@ -21,11 +28,6 @@ jobs:
matrix:
march: [armv7a, armv8a, nehalem, rv32imac, rv64imac]
compiler: [gcc, clang]
exclude:
- march: rv32imac
compiler: clang
- march: rv64imac
compiler: clang
steps:
- uses: seL4/ci-actions/sel4test-sim@master
with:
Expand Down
1 change: 0 additions & 1 deletion apps/sel4test-driver/src/tests/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ static int test_callback(uintptr_t token)

int test_timer(driver_env_t env)
{
uint64_t time = 0;
test_finished = false;
timer_test_data_t test_data = { .goal_count = 3 };

Expand Down
2 changes: 1 addition & 1 deletion apps/sel4test-driver/src/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#define TIMER_ID 0

/* Timing related functions used only by in sel4test-driver */
/* Timing related functions used only within sel4test-driver */
void handle_timer_interrupts(driver_env_t env, seL4_Word badge);
void wait_for_timer_interrupt(driver_env_t env);
void timeout(driver_env_t env, uint64_t ns, timeout_type_t timeout);
Expand Down
9 changes: 9 additions & 0 deletions apps/sel4test-tests/arch/arm/arch/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,21 @@
*/
#pragma once

#ifdef CONFIG_ARCH_AARCH32
#define TEST_SOFTWARE_BREAK_ASM() \
asm volatile( \
".global sbreak, post_sbreak\n\t" \
".type post_sbreak, function\n\t" \
"sbreak:\n\t" \
"bkpt\n\t")
#elif CONFIG_ARCH_AARCH64
#define TEST_SOFTWARE_BREAK_ASM() \
asm volatile( \
".global sbreak, post_sbreak\n\t" \
".type post_sbreak, function\n\t" \
"sbreak:\n\t" \
"brk #0\n\t")
#endif

/* Tell C about the symbols exported by the ASM above. */
extern char sbreak;
Expand Down
172 changes: 0 additions & 172 deletions apps/sel4test-tests/src/arch/x86/tests/breakpoints.c

This file was deleted.

Loading

0 comments on commit 9daab4c

Please sign in to comment.