1# $FreeBSD$ 2 3. $(atf_get_srcdir)/utils.subr 4 5atf_test_case "names" "cleanup" 6names_head() 7{ 8 atf_set descr 'Test overlapping names' 9 atf_set require.user root 10} 11 12names_body() 13{ 14 pft_init 15 16 epair=$(pft_mkepair) 17 18 pft_mkjail alcatraz ${epair}b 19 ifconfig ${epair}a name foo 20 jexec alcatraz ifconfig ${epair}b name foo 21 22 jail -r alcatraz 23 ifconfig foo destroy 24} 25 26names_cleanup() 27{ 28 pft_cleanup 29} 30 31atf_init_test_cases() 32{ 33 atf_add_test_case "names" 34} 35