]> git.ipfire.org Git - network.git/commit
test: Add some test data
authorJonatan Schlag <jonatan.schlag@ipfire.org>
Wed, 31 May 2017 12:59:01 +0000 (14:59 +0200)
committerJonatan Schlag <jonatan.schlag@ipfire.org>
Wed, 31 May 2017 12:59:01 +0000 (14:59 +0200)
commita556c3b45f2571f06ce2499c633d4362e15ccdc8
tree81ead396c2852f5ecf300fa9286ca4ba45cedbcd
parent70e59e318bf542ef19bc928be288fc0159df1f8f
test: Add some test data

The file test/constants.sh contains valid and invalid
IPv4 and IPV6 networks, adresses, etc.
If we need some addresses to test a function we use this data because:
1. it prevent code duplication
2. every data that is added here, can be tested in several tests without touching the test,
thats make maintaining easier

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Makefile.am
test/constants.sh [new file with mode: 0644]