Browse Source

Make the workflow install & run ufs, then mount it and do an ls.

Signed-off-by: John Floren <john.floren@gravwell.io>
John Floren 2 years ago
parent
commit
6c01109bdb
2 changed files with 8 additions and 2 deletions
  1. 2 0
      .github/workflows/harvey.yml
  2. 6 2
      build/command.bash

+ 2 - 0
.github/workflows/harvey.yml

@@ -15,9 +15,11 @@ jobs:
         sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y # see https://wiki.ubuntu.com/ToolChain
         sudo apt-get update
         sudo apt-get install -y rc qemu go-dep qemu-utils expect qemu-system-x86
+        go get harvey-os.org/cmd/ufs
     - name: bootstrap and run
       env:
         ARCH: amd64
         OS: linux
       run: |
+        ~/go/bin/ufs -root .. -user glenda &
         bash command.bash # run a command

+ 6 - 2
build/command.bash

@@ -23,13 +23,17 @@ send "1280x1024x32\n"
 expect -exact "monitor is \[xga\]:"
 send "vesa\n"
 
+# Mount the host's fileserver
+expect -exact "term% "
+send "9fs tcp!10.0.2.2!5640 /n/harvey\n"
+
 # Now run a command
 expect -exact "term% "
-send "ls\n"
+send "ls -l /n/harvey/\n"
 
 # and shut down
 expect -exact "term% "
 send "fshalt\n"
 expect -exact "done halting"
 exit
-EOF
+EOF