diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-11-20 20:27:49 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-11-20 20:27:49 +0900 |
commit | 8a3e6b3f73477588e73f197ea721dedf1f763490 (patch) | |
tree | d684262a250630b5d87063b10e3d19207272b27a | |
parent | 5af36f7f2a3992c1705ec1f8b178fe7d95a48c47 (diff) | |
download | gnunet-8a3e6b3f73477588e73f197ea721dedf1f763490.tar.gz gnunet-8a3e6b3f73477588e73f197ea721dedf1f763490.zip |
- add test; update manpage
-rw-r--r-- | doc/man/gnunet-namestore.1 | 32 | ||||
-rw-r--r-- | src/namestore/Makefile.am | 1 |
2 files changed, 32 insertions, 1 deletions
diff --git a/doc/man/gnunet-namestore.1 b/doc/man/gnunet-namestore.1 index 9391e21bb..c70e4499d 100644 --- a/doc/man/gnunet-namestore.1 +++ b/doc/man/gnunet-namestore.1 | |||
@@ -46,6 +46,7 @@ | |||
46 | .Op Fl r Ar PKEY | Fl -reverse= Ns Ar PKEY | 46 | .Op Fl r Ar PKEY | Fl -reverse= Ns Ar PKEY |
47 | .Op Fl R Ar RECORDLINE | Fl -replace= Ns Ar RECORDLINE | 47 | .Op Fl R Ar RECORDLINE | Fl -replace= Ns Ar RECORDLINE |
48 | .Op Fl s | -shadow | 48 | .Op Fl s | -shadow |
49 | .Op Fl S | -from-stdin | ||
49 | .Op Fl T | -include-maintenance | 50 | .Op Fl T | -include-maintenance |
50 | .Op Fl t Ar TYPE | Fl -type= Ns Ar TYPE | 51 | .Op Fl t Ar TYPE | Fl -type= Ns Ar TYPE |
51 | .Op Fl u Ar URI | Fl -uri= Ns Ar URI | 52 | .Op Fl u Ar URI | Fl -uri= Ns Ar URI |
@@ -119,6 +120,12 @@ The VALUE follows the usual human-readable value format(s) of DNS/GNS. | |||
119 | Create a record that is a shadow record. | 120 | Create a record that is a shadow record. |
120 | Shadow records are only used once all other records of the same type | 121 | Shadow records are only used once all other records of the same type |
121 | under the same label have expired. | 122 | under the same label have expired. |
123 | .It Fl S | -from-stdin | ||
124 | This reads commands from stdin until EOF is encountered. | ||
125 | The commands are formatted like the arguments used for gnunet-namestore. | ||
126 | Arguments that | ||
127 | .B cannot | ||
128 | be used for commands in this mode are: -l, -L, -D, -S, -m, -h, -c, -v, -r, -o, -T, -O | ||
122 | .It Fl T | -include-maintenance | 129 | .It Fl T | -include-maintenance |
123 | Show maintenance records such as TOMBSTONEs. Use in combination with --display. | 130 | Show maintenance records such as TOMBSTONEs. Use in combination with --display. |
124 | .It Fl t Ar TYPE | Fl -type= Ns Ar TYPE | 131 | .It Fl t Ar TYPE | Fl -type= Ns Ar TYPE |
@@ -145,7 +152,30 @@ variable. The latter is useful to improve performance of tools like | |||
145 | Ascension as it allows the command to skip IPC with the identity | 152 | Ascension as it allows the command to skip IPC with the identity |
146 | management subsystem. | 153 | management subsystem. |
147 | .El | 154 | .El |
148 | .\".Sh EXAMPLES | 155 | .Sh EXAMPLES |
156 | .Tp | ||
157 | .Nm | ||
158 | -z example -a -n www -t A -V "1.2.3.4" -e 1d -p | ||
159 | .Tp | ||
160 | .Pp | ||
161 | .Dl Add a public record for ego "example" with name "www" containing an IP address. | ||
162 | .sp | ||
163 | .Tp | ||
164 | .Nm | ||
165 | -z example -D | ||
166 | .Tp | ||
167 | .Pp | ||
168 | .Dl Show all records for ego "example" | ||
169 | .sp | ||
170 | .Tp | ||
171 | .Nm | ||
172 | --from-stdin <<EOF | ||
173 | -z alice -a -n www -t A -V "1.2.3.4" -e 3600s -p | ||
174 | -z bob -a -n www -t A -V "4.3.2.1" -e 24h -p | ||
175 | EOF | ||
176 | .Tp | ||
177 | .Pp | ||
178 | .Dl Read record multiple import commands from stdin. | ||
149 | .\".Sh FILES | 179 | .\".Sh FILES |
150 | .Sh SEE ALSO | 180 | .Sh SEE ALSO |
151 | .Xr gnunet-gns 1 , | 181 | .Xr gnunet-gns 1 , |
diff --git a/src/namestore/Makefile.am b/src/namestore/Makefile.am index fb2a670bc..a0ca32fa4 100644 --- a/src/namestore/Makefile.am +++ b/src/namestore/Makefile.am | |||
@@ -514,6 +514,7 @@ test_plugin_namestore_postgres_LDADD = \ | |||
514 | 514 | ||
515 | check_SCRIPTS = \ | 515 | check_SCRIPTS = \ |
516 | test_namestore_put.sh \ | 516 | test_namestore_put.sh \ |
517 | test_namestore_put_stdin.sh \ | ||
517 | test_namestore_lookup.sh \ | 518 | test_namestore_lookup.sh \ |
518 | test_namestore_delete.sh \ | 519 | test_namestore_delete.sh \ |
519 | test_namestore_zonefile_import.sh | 520 | test_namestore_zonefile_import.sh |