Skip to content

Commit

Permalink
print possible cpus
Browse files Browse the repository at this point in the history
  • Loading branch information
mmat11 committed Jan 14, 2024
1 parent ad9b014 commit 9f80d85
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 0 additions & 1 deletion testing/scripts/invoke_qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ main() {

qemu-system-${arch} \
-nographic -m 1G \
-smp 8 \
-kernel $kernel \
-initrd $initramfs \
-append "$bootparams" \
Expand Down
8 changes: 8 additions & 0 deletions testing/testrunner/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,17 @@ package main

import (
"fmt"
"os"
)

func main() {
cpus, err := os.ReadFile("/sys/devices/system/cpu/possible")
if err != nil {
panic(err)
}
fmt.Printf("possible cpus: %v\n", string(cpus))
os.Exit(1)

RunEventsTest(TestFeaturesCorrect)
RunEventsTest(TestForkExit, "--process-fork")
RunEventsTest(TestForkExec, "--process-fork", "--process-exec")
Expand Down

0 comments on commit 9f80d85

Please sign in to comment.