[Enhancement] Support multiple expected outputs in the test program #51
Workflow file for this run
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
name: Test for Rust implementations | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
prepare: | |
name: Prepare test | |
runs-on: self-hosted | |
defaults: | |
run: | |
working-directory: ./test | |
steps: | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Build test maker | |
run: gcc -o test_maker test_maker.c | |
test: | |
name: Run heading test | |
runs-on: self-hosted | |
needs: prepare | |
defaults: | |
run: | |
working-directory: ./test | |
steps: | |
- name: Build object program | |
run: rustc hd.rs -C debuginfo=0 -C opt-level=z -C strip=symbols -o hd | |
working-directory: ./hd/rust | |
- name: Build host program | |
run: ./test_maker .test/hd.test | |
- name: Run test | |
run: ./test ../hd/rust/hd | |
timeout-minutes: 5 |