1
0
Commit Graph

130 Commits

Author SHA1 Message Date
9dc0f25587 min-copy-clocure test: ensure sshd up before starting
this test goes wrong intermittently in CI, see if this makes it more
reliable
2025-03-09 21:37:13 +00:00
c6918fec00 firewall: use extraText for zone set contents
* the lua necessary is quite wordy, but it's less of a hack than
post-processing the rules file with pseudo-sed to get rid of `elements
= { }` lines

* also switch from stop/starting the firewall service to using a
signal, so that we don't go briefly offline every time a new interface
appears
2025-03-09 20:42:02 +00:00
6649ebeccd firewall: use watch-outputs to track changes in zone->interface map
includes a horrible hack to work around (claimed (by me)) deficiencies
in the nftables parser
2025-02-28 00:43:20 +00:00
f4dc001b71 check firewall zones in pppoe test 2025-02-25 23:32:05 +00:00
7e2b0068e6 nixfmt-rfc-style
There is nothing in this commit except for the changes made by
nix-shell -p nixfmt-rfc-style --run "nixfmt ."

If this has mucked up your open branches then sorry about that. You
can probably nixfmt them to match before merging
2025-02-10 21:55:08 +00:00
f9b4f0bc9c move modules/squashfs.nix into outputs/ 2024-12-19 14:33:50 +00:00
5572c0ecb0 rewrite parts of inout test to be differently wrong 2024-12-09 23:36:22 +00:00
4cbe3ba683 add some debug output in inout test 2024-12-09 21:00:11 +00:00
20f4a12689 inout: improve robustness, maybe? 2024-12-07 16:02:42 +00:00
33e5c436d5 add environment variables that scapy now needs (24.11) 2024-12-04 21:16:36 +00:00
e6b7d86381 sort lines 2024-10-06 17:53:34 +01:00
83fbffb39b catch another uncaught-logs 2024-10-06 17:53:09 +01:00
f8c579b41e add CI "all" target 2024-10-06 17:52:59 +01:00
ca9efc4b26 simplify CI
* I didn't know what I was doing when I set up Hydra

* it's not certain that I do now either, but hey ho
2024-10-06 15:55:01 +01:00
4cc0add2ad update refs to uncaught-logs in docs/tests 2024-10-06 13:46:14 +01:00
7d6c80570c refactor all writeFennelScript calls to use writeFennel directly 2024-08-30 20:57:42 +01:00
d40ada4251 use structured ppp params in ppp test 2024-08-20 23:25:31 +01:00
3df1ec76ff cleanup whitespace and commas
* [] is now [ ]
* {} is now { }
* commas in arglists go at end of line not beginning

In short, I ran the whole thing through nixfmt-rfc-style but only
accepted about 30% of its changes. I might grow accustomed to more
of it over time
2024-06-30 17:16:28 +01:00
e94bf62ec1 remove dead code (run deadnix) 2024-06-29 22:59:27 +01:00
473a4947a5 inout test: wait longer for disk to appear 2024-06-12 20:44:03 +01:00
723ef73d5a inout: test hotplug and coldplug 2024-04-27 22:41:30 +01:00
00076c7b81 mount service: use uevent-watch 2024-04-17 12:59:13 +01:00
a5f16dfa81 convert inout test to use uevent-watch 2024-04-15 22:15:27 +01:00
41a4b1f7ef clean cruft from inout test script 2024-04-15 22:00:44 +01:00
42a5699326 remove unneeded config from inout test 2024-04-15 21:19:18 +01:00
5df5c822ea convert mount service to trigger
Good: this means it's not hanging holding the s6 dataase lock.

Bad: it's the ugliest implementation and doesn't deserve to be preserved

(tbf the ugliness is not new)
2024-04-03 23:17:36 +01:00
a873dc6608 Merge commit 'efcfdcc' 2024-03-28 23:47:04 +00:00
2fb4756a7f add soft restart option to liminix-rebuild
instead of doing a full reboot, it runs activate / and uses
s6-rc-update to install the new service database
2024-03-28 23:45:10 +00:00
b60126775a improve liminix-rebuild test
* make it executable
* improve robustness
* do't hardcode services.default (why did it do this?)
2024-03-28 21:37:47 +00:00
28a5dec7dd implement ifwait trigger service and use in bridge
should we convert all ifwait uses to this trigger too? seems
reasonable
2024-03-28 20:59:39 +00:00
34442b6069 failing test for ifwait 2024-03-28 20:59:39 +00:00
c373152673 make tftpboot work on devices with old u-boot
Some devices have a U-boot variant that does not accept a third
parameter on the "bootm" command, meaning we can't override the dtb
in the bootloader so have to smush it back into the kernel image

This doesn't work in QEMU but I think the problem is with the
U-Boot configuration for QEMU. It does work on at least one
hardware device so I'm pushing it anyway

Based on
https://gti.telent.net/raboof/liminix/src/branch/tftp-old-uboot

Co-authored-by:  Arnout Engelen <arnout@bzzt.net>
2024-02-15 23:44:47 +00:00
9632a64b47 tftpboot: don't rely on hostname being set 2024-01-03 19:40:00 +00:00
2152a3f207 a test for liminix-rebuild
it's hacky as Selby, but it's better than no test
2023-12-29 22:11:04 +00:00
0bf98c5243 add output for u-boot 2023-12-29 17:07:47 +00:00
29f35cb902 min-copy-closure: add --root to copy to non-standard place 2023-12-23 23:12:40 +00:00
64a3f50248 tftpboot: support compressed root 2023-12-23 00:05:34 +00:00
ff0ef825a6 tftpboot: add option for kernel image format 2023-12-23 00:05:34 +00:00
fe2d41a2b1 wlan test: robustify, tail log on failure 2023-12-22 15:49:43 +00:00
5f9ffa804f better detect test succeeded 2023-12-22 15:29:33 +00:00
231c2cef03 make reserved-memory work on mips, and improve test 2023-12-21 22:21:20 +00:00
dbb82339bd tftpboot test: fail if reserved-memory node is wrong 2023-12-21 21:13:16 +00:00
9c894bdabf add tftpboot test for mips 2023-12-21 19:25:45 +00:00
9a29a042e8 fix tftpboot test on boards without autoboot, swap wan/lan
This is for MIPS.  I spent a while investigating why the second virtio
net device doesn't function in qemu mips malta u-boot, but with no
success. Use the first one instead.
2023-12-21 19:25:16 +00:00
46926a94db dont need phram-address param for tftpboot test
the phram setup for this test is all passed from
u-boot to the kernel
2023-12-21 19:24:58 +00:00
32c13c46bb support aarch64 in tftpboot test 2023-12-19 12:12:12 +00:00
e5db2691e5 add CI job to test tftpboot 2023-12-18 22:42:29 +00:00
6c8b2bbb83 add retries to wlan test 2023-12-10 18:35:14 +00:00
4ddce6e926 fix the tests we broke 2023-12-10 17:12:57 +00:00
5eeb277564 move output module imports example -> device
The outputs available are a characteristic of the device, not
the example.
2023-12-10 16:38:53 +00:00