autfilt: add --unused-ap and --used-ap

Last part of #170.

* bin/autfilt.cc: Implement the new options.
* tests/core/remprop.test: Add a quick test.
* NEWS: Mention these options.
This commit is contained in:
Alexandre Duret-Lutz 2016-05-01 13:27:40 +02:00
parent 95d16ba009
commit f5bfc07cfc
3 changed files with 53 additions and 3 deletions

View file

@ -112,7 +112,7 @@ State: 0 {0}
--END--
EOF
autfilt automaton > output
autfilt automaton --used-ap=1 --unused-ap=2 > output
diff automaton output
cat >expect <<EOF
@ -132,3 +132,6 @@ EOF
autfilt --remove-unused-ap automaton > output
diff output expect
autfilt output --used-ap=0..1 --unused-ap=0 > output2
diff output output2