User Details
- User Since
- Jun 23 2017, 11:21 AM (366 w, 15 h)
Sep 15 2017
New version. A summary of changes since the last one, pulled from git, is shown below:
- tests: pf: Typo.
- tests: pf: Added address prefix variables in all tests.
- tests: pf: Fixed scrub_forward by changing implementation.
- tests: pf: Renamed test scrub_forward to scrub.
- tests: pf: Updated documentation of pf_test_scrub.sh.
- tests: pf: Changed idea in "Future work" section of README.
- tests: pf: Reduced boilerplate code.
- tests: pf: Reduced boilerplate code, IPv6 functions.
- tests: pf: Changed test names.
- tests: pf: Improved network interface creation code.
- tests: pf: Function calling examples.
- tests: pf: Added init_test function.
Sep 9 2017
New version. A summary of changes since the last one, pulled from git, is shown below:
Sep 8 2017
I had already changed the coding style, mostly regarding error checking,
to use if blocks when suitable. I didn't change the indentation
however, as it needed some rethinking regarding error checking and
cleanup code. I will change it to use tabs as soon as possible.
I've made a change which I'm testing currently, running pkg with the -r
flag instead of chrooting. Will commit if it works.
Sep 7 2017
New version. A summary of changes since the last one, pulled from git, is shown below:
Sep 1 2017
- Fix mtree and makefiles.
- Split tests into separate files.
- Some documentation.
- Improve error handling and reporting.
- Some style fixing.
Aug 29 2017
Work on make_baseimg.sh.
Aug 28 2017
Reverted to previous version (last update was a mistake).
New version.
Jul 13 2017
Added workaround so that the test files get installed correctly.
Fixed various issues.
Jul 12 2017
Removed hardcoded binary path. Also moved tests under src/sbin/pfctl/tests.
Jul 11 2017
Use pfctl from PATH, instead of custom location.
Added tests/sbin/Kyuafile. 'make install' as root still fails because of missing directories under '/usr/tests'.
Jul 8 2017
Uploaded correct diff.
Jul 7 2017
Cleaned-up version, with improved test descriptions.
Jul 6 2017
Only the diff pertaining to kernel pf tests is now included.
Jul 4 2017
Jun 29 2017
Den 2017-06-28 kl. 20:14, skrev kristof (Kristof Provost):
kristof added a comment.
It'd also be good to include the changes required to hook up the sbin/pfctl/Kyuafile to the tests Kyuafile. Your GitHub repo has a symlink to get recursive behaviour out of Kyua, but there's basically no other symlinks in the repo, so let's avoid that. I'd add a simple include Kyuafile, like ./contrib/atf/Kyuafile does.
Done! I've changed the Kyuafiles now, and started using Makefiles
extensively. This also means that tests can be installed to /usr/tests
and run from there, or run from the source directory.
INLINE COMMENTS
pfctl_test.sh:32
+ atf_test_case "pf${i}"
+ eval "pf${i}_head () { atf_set descr $(pf${i}_descr) ; }"
+ eval "pf${i}_body () { \Wouldn't this allow descriptions with spaces (and optionally multiline):
eval "pf${if}_head() { atf_set descr \"$(pf${i}_descr)\" ; }"
I also wonder if it wouldn't be better to put the description in a per-test file. pf1004.descr for example.
That is true, it was mostly a quick solution. I did the change above
and it works now.
test_altq.c:3
+
+#include <sys/types.h>
+#include <net/if.h>This file isn't used yet, right? I'd leave that out of this, and add it in a subsequent patch.
I have removed it now.
Jun 28 2017
Added a small utility that checks for ALTQ support in the kernel. Also improved integration with the build system.
Jun 26 2017
tests/sbin/pfctl: improved test descriptions
tests/sbin/pfctl: removed empty tests