mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-16 12:12:16 +02:00
IpPool is a userspace daemon for managing one or more pools of IP addresses. It was developed as part of the OpenL2TP project but has since been repackaged so that it may be used independently of OpenL2TP. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
27 lines
712 B
Bash
27 lines
712 B
Bash
#!/bin/sh
|
|
BANNER="----------------------------------------------------------------------------"
|
|
TCLSH="tclsh all.tcl -preservecore 3 -verbose bps -tmpdir ./results -outfile test-ippool.result"
|
|
|
|
test_setup() {
|
|
if [ -d ./results ]; then rm -fr ./results; fi
|
|
mkdir ./results
|
|
}
|
|
|
|
test_ippool() {
|
|
echo "${BANNER}"
|
|
eval $TCLSH -constraints "ipPool"
|
|
}
|
|
test_postprocess() {
|
|
echo "${BANNER}"
|
|
(failed=`grep FAILED results/*.result | wc -l`; \
|
|
let failed2=failed/2 ;\
|
|
passed=`grep PASSED results/*.result | wc -l`; \
|
|
echo "TEST SUMMARY: $passed tests PASSED, $failed2 tests FAILED" ;\
|
|
exit $failed2)
|
|
}
|
|
|
|
test_setup
|
|
test_ippool
|
|
test_postprocess
|
|
|