Commit Graph

145 Commits

Author SHA1 Message Date
Luke Shumaker a9bbe16aa7 runtests: Add pyparsing for unit tests 2018-08-17 17:18:01 -04:00
Luke Shumaker c82ca058b3 osi-mk.d: osi-shell: Do a proper login 2018-08-17 17:17:50 -04:00
Luke Shumaker f3d0f31c9a TODO.md: Update SKIP list 2018-08-17 16:07:24 -04:00
Luke Shumaker c0843d9230 runtests: Run unit tests as root 2018-08-17 14:59:13 -04:00
Luke Shumaker 4a314e2ff8 add TODO.md 2018-08-17 14:58:44 -04:00
Luke Shumaker b69cf2d041 runtests: Add extended list of unit tests 2018-08-17 14:33:41 -04:00
Luke Shumaker 3e22969c24 fix the last of the integration tests 2018-08-17 13:04:18 -04:00
Luke Shumaker 0209341075 Make more tests pass 2018-08-17 11:21:45 -04:00
Luke Shumaker 22a018e40a runtests: Default to the last stable version, rather than master 2018-08-16 22:07:55 -04:00
Luke Shumaker 255f1d0158 make more integration tests pass 2018-08-16 21:50:05 -04:00
Luke Shumaker 4d55c9a2ba make more integration tests pass 2018-08-16 20:23:35 -04:00
Luke Shumaker 6fc3d79827 osi-shell: Allow setting qemu args 2018-08-16 17:20:19 -04:00
Luke Shumaker 814fb5a60d get at least a few of the integration tests passing 2018-08-16 15:58:39 -04:00
Luke Shumaker 77bf673550 osi-shell: Use VNC to hide the window 2018-08-16 14:47:56 -04:00
Luke Shumaker 1bb26b9161 runtests: Install packages as part of integration-tests.raw, not .log 2018-08-16 14:40:23 -04:00
Luke Shumaker 8d864769fe runtests: Fixup quoting
Only in the integration-tests.log does it make a difference, though.
2018-08-16 14:39:08 -04:00
Luke Shumaker 81961a850b runtests: run the stock integration tests 2018-08-16 02:02:25 -04:00
Luke Shumaker 7e6b34c552 osi-mk: fix
"Ignore space change" will be useful
2018-08-16 02:00:07 -04:00
Luke Shumaker 4412eedf45 runtests: ensure .log files are newer than .raw files 2018-08-16 01:48:43 -04:00
Luke Shumaker cabd888978 runtests: shrink sizes of images 2018-08-16 01:48:21 -04:00
Luke Shumaker bda8c20f39 osi-mk: Fix option checking
"Ignore space change" is useful for this one.
2018-08-16 01:42:04 -04:00
Luke Shumaker 540db8eef8 run osi stuff through shellcheck
Disable SC2064 because we use @Q rather than deferred expansion.

The only real issue found is adding `-r` to `read` in osi-shell.
2018-08-16 01:36:18 -04:00
Luke Shumaker 93ba79d3ea osi-mk: Implement --edit --size 2018-08-16 01:19:05 -04:00
Luke Shumaker bd382780bb osi-mk: Tidy arg checking, require --size for new images 2018-08-16 01:18:06 -04:00
Luke Shumaker 904d2c43e1 runtests: Tidy
- format the base.raw rule more like the other rules
 - drop the `script` bits to simulate a TTY, osi-shell runs things with a
   TTY
2018-08-15 15:10:40 -04:00
Luke Shumaker b5dfd387ba osi-mk.d: dhcpcd: Avoid TLS failures 2018-08-15 15:05:16 -04:00
Luke Shumaker 9aa93cbd17 abs/: sync with abslibre 2018-08-15 11:42:31 -04:00
Luke Shumaker f61ce11643 replace osi-run with osi-shell 2018-08-14 21:15:21 -04:00
Luke Shumaker a3e647985f osi-run: Fix quoting 2018-08-14 16:54:25 -04:00
Luke Shumaker d4bbf0e2a4 osi-mount: Fixup option parsing 2018-08-14 16:54:09 -04:00
Luke Shumaker 4731f00bf0 osi-mk: Changing FSID breaks a few things, fix them 2018-08-14 16:53:02 -04:00
Luke Shumaker 291bd36a62 getopt doesn't safely "roundtrip" flags with an optional argument 2018-08-14 16:19:07 -04:00
Luke Shumaker 7d6a5fdf70 fix error messages ${@@Q} -> ${*@Q} 2018-08-14 16:18:17 -04:00
Luke Shumaker 0e72442e94 osi-mount: Simplify
I think that a lot of the hacks are unnescessary and are fixed by the FSID
thing.
2018-08-14 16:08:32 -04:00
Luke Shumaker 164904cdae osi-mk: Edit the fsid when editing a copy 2018-08-14 16:04:07 -04:00
Luke Shumaker ee05d5c7cc f 2018-08-14 11:37:29 -04:00
Luke Shumaker 17a2f20f89 be careful about detaching loop devices
umount should do this automatically, but it seems to not always work
2018-08-13 02:55:40 -04:00
Luke Shumaker 9bcb05a771 systemd-osi-run: Order after multi-user.target 2018-08-13 02:54:45 -04:00
Luke Shumaker 456ec77b2e logging! 2018-08-13 01:16:36 -04:00
Luke Shumaker 6f8331937b osi-mount: Better logging 2018-08-13 00:47:18 -04:00
Luke Shumaker 7d8235a5c2 runtests: don't remove evidence 2018-08-13 00:47:05 -04:00
Luke Shumaker 8d28968d71 osi-mount: rewrite
- Add real option parsing
 - Split in to 2 distinct --root/--user modes
 - Ensure we umount before exiting.  Otherwise there might be a delay
   between us exiting and the umount happening when the mount
   namespace gets GC'd.
2018-08-12 23:53:58 -04:00
Luke Shumaker f46ece4a58 osi-run: set the VM name 2018-08-12 23:38:54 -04:00
Luke Shumaker 2e9b82202e runtests: the value of COMMIT is embedded in the build name, don't depend on .COMMIT.mk 2018-08-12 22:50:29 -04:00
Luke Shumaker f5d0d49db8 runtests: preload build.raw with blacklist.txt 2018-08-12 22:32:44 -04:00
Luke Shumaker bef777cb37 osi-mk: Fixup directory adding 2018-08-12 21:03:56 -04:00
Luke Shumaker f8e7b3725c runtests: prevent chcleanup getting confused on rebuild 2018-08-12 19:38:41 -04:00
Luke Shumaker abd91d1c41 osi-mk.d: osi-run: fix 2018-08-12 19:38:25 -04:00
Luke Shumaker 89a7fd9a44 abs/: sync with [libre] 2018-08-12 19:38:15 -04:00
Luke Shumaker 6b1779db22 runtests: fixup 2018-08-12 19:18:05 -04:00