File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -108,10 +108,12 @@ jobs:
108
108
run : |
109
109
./y.sh build --target-triple m68k-unknown-linux-gnu
110
110
111
+ vm_dir=$(pwd)/vm
111
112
cd tests/hello-world
112
113
CG_RUSTFLAGS="-Clinker=m68k-unknown-linux-gnu-gcc" ../../y.sh cargo build --target m68k-unknown-linux-gnu
113
- CG_RUSTFLAGS="-Clinker=m68k-unknown-linux-gnu-gcc" ../../y.sh cargo run --target m68k-unknown-linux-gnu > hello_world_stdout
114
- test $(cat hello_world_stdout) == "Hello, world!" || exit 1
114
+ sudo cp target/m68k-unknown-linux-gnu/debug/hello_world $vm_dir/home/
115
+ sudo chroot $vm_dir qemu-m68k-static /home/hello_world > hello_world_stdout
116
+ test $(cat hello_world_stdout) == "Hello, world!" || (echo "Output differs. Actual output: $(cat hello_world_stdout)"; exit 1)
115
117
116
118
# Summary job for the merge queue.
117
119
# ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
Original file line number Diff line number Diff line change @@ -374,6 +374,7 @@ impl ConfigInfo {
374
374
if self . target_triple . is_empty ( ) {
375
375
return Err ( "Unknown non-native platform" . to_string ( ) ) ;
376
376
}
377
+ // TODO: check if this is still needed.
377
378
linker = Some ( format ! ( "-Clinker={}-gcc" , self . target_triple) ) ;
378
379
self . run_in_vm = true ;
379
380
}
You can’t perform that action at this time.
0 commit comments