Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

# $FreeBSD$

# Import helper functions
. $(atf_get_srcdir)/helper_functions.shin

atf_test_case generate_config
generate_config_body() {
	atf_check -s exit:0 \
		${PW} useradd -D -C ${HOME}/foo.conf
	atf_check -o file:$(atf_get_srcdir)/pw.conf \
		cat ${HOME}/foo.conf
}

atf_test_case modify_config_uid_gid_boundaries
modify_config_uid_gid_boundaries_body() {
	atf_check -s exit:0 \
		${PW} useradd -D -C ${HOME}/foo.conf \
			-u 2000,5000 -i 2100,6000
	atf_check -o file:$(atf_get_srcdir)/pw-modified.conf \
		cat ${HOME}/foo.conf
}

atf_init_test_cases() {
	atf_add_test_case generate_config
	atf_add_test_case modify_config_uid_gid_boundaries
}