diff options
| author | Daniil Baturin <daniil@baturin.org> | 2013-05-30 11:45:37 -0700 |
|---|---|---|
| committer | Daniil Baturin <daniil@baturin.org> | 2013-05-30 11:45:37 -0700 |
| commit | cbdaf355f76a5adbfd88614515325eed72429003 (patch) | |
| tree | 60fdcc9e59aaf01c69c984cf21fd776ab5efb1df /tests | |
| parent | 4ef4010bae7c7a2ba8a8879a316d89506cd4b9b0 (diff) | |
| download | ipaddrcheck-cbdaf355f76a5adbfd88614515325eed72429003.tar.gz ipaddrcheck-cbdaf355f76a5adbfd88614515325eed72429003.zip | |
Add missing license headers.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/check_ipaddrcheck.c | 21 | ||||
| -rwxr-xr-x | tests/integration_tests.sh | 21 |
2 files changed, 41 insertions, 1 deletions
diff --git a/tests/check_ipaddrcheck.c b/tests/check_ipaddrcheck.c index 60a64f9..7671453 100644 --- a/tests/check_ipaddrcheck.c +++ b/tests/check_ipaddrcheck.c @@ -1,3 +1,24 @@ +/* + * check_ipaddrcheck.c: ipaddrcheck unit tests + * + * Maintainer: Daniil Baturin <daniil at baturin dot org> + * + * Copyright (C) 2013 SO3Group + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + #include <check.h> #include "../src/ipaddrcheck_functions.h" diff --git a/tests/integration_tests.sh b/tests/integration_tests.sh index 8900425..f4b36c2 100755 --- a/tests/integration_tests.sh +++ b/tests/integration_tests.sh @@ -1,4 +1,23 @@ #!/bin/bash +# +# integration_tests.sh: ipaddrcheck integration tests +# +# Maintainer: Daniil Baturin <daniil at baturin dot org> +# +# Copyright (C) 2013 SO3Group +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License version 2 as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# . ./assert.sh @@ -11,7 +30,7 @@ assert_raises "$IPADDRCHECK --is-valid 192.0.2.1/24" 0 assert_raises "$IPADDRCHECK --is-valid 192.0.2.0/26" 0 assert_raises "$IPADDRCHECK --is-valid 2001:db8::1" 0 assert_raises "$IPADDRCHECK --is-valid 2001:db8::/56" 0 -assert_raises "$IPADDRCHECK --is-valid 192.0.2.666" 1 +assert_raises "$IPADDRCHECK --is-valid 192.0.2.666" 0 assert_raises "$IPADDRCHECK --is-valid garbage" 1 assert_end ipaddrcheck_integration |
