jenkinshook 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/bash
  2. # This script assumes you have set JENKINSHOME
  3. # in the environment. If you have not it will fail, which
  4. # will be quickly caught by jenkins, so there's no checking.
  5. . $JENKINSHOME/.bashrc
  6. echo "WARNING:This will fail if $NXM/xbin is in your PATH"
  7. set -e
  8. go version
  9. 9c --version
  10. cp /$JENKINSHOME/mkconfig.jenkins inferno-os/mkconfig
  11. sh BUILDTOOLCHAIN
  12. # `special` system like suse want . files fully qualified
  13. . ./SETUP
  14. cd sys/src
  15. mk nuke
  16. mk libs
  17. mk install
  18. mk kernels
  19. # Boot the kernel and see if the output we get makes sense
  20. # qemu must be in your path of course. It can be
  21. # the standard command or a shell script to make things
  22. # run correctly. On coreboot.org on my account it is
  23. # a shell script.
  24. # timeout will return non-zero if something goes wrong, but
  25. # I think we'll want to get the diff output rather than bailing
  26. # out immediately
  27. set +e
  28. timeout 90s qemu-system-x86_64 --kernel nxm/k10/9k8regression.elf \
  29. -no-reboot --nographic -m 512 </dev/null > qemuout
  30. set -e
  31. # things are not always identical. We need to do some filtering.
  32. # For now, just filter on the regression tests themselves.
  33. sed '1,/Morning/d' qemuout | sed 's/badsyscall.*://' | /usr/bin/diff -bw - correctoutput
  34. date