Skip to content

Commit

Permalink
Updated testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Oct 18, 2022
1 parent 308b7ad commit 90732ba
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lenses/tests/test_sysctl.aug
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ net.ipv4.conf.*.rp_filter = 2
net.ipv4.conf.ib0:0.arp_filter = 1
"

(* Variable: slash_char_sysctl *)
let slash_in_sysctl_key = "# Kernel sysctl configuration file
# slash and dot can be interchanged
net/ipv4/conf/enp3s0.200/forwarding = 1
"

(* Test: Sysctl.lns *)
test Sysctl.lns get default_sysctl =
{ "#comment" = "Kernel sysctl configuration file" }
Expand All @@ -45,6 +51,12 @@ test Sysctl.lns get spec_chars_sysctl =
{ "net.ipv4.conf.*.rp_filter" = "2" }
{ "net.ipv4.conf.ib0:0.arp_filter" = "1" }

(* Test: Sysctl.lns *)
test Sysctl.lns get slash_in_sysctl_key =
{ "#comment" = "Kernel sysctl configuration file" }
{ "#comment" = "slash and dot can be interchanged"}
{ "net/ipv4/conf/enp3s0.200/forwarding" = "1" }

(* Test: Sysctl.lns *)
test Sysctl.lns put default_sysctl after
set "net.ipv4.ip_forward" "1" ;
Expand Down

0 comments on commit 90732ba

Please sign in to comment.