Testing Debian Packages
The following describes content-test for each Debian package (either on the host or on the target system).
-
Select a directory where the packages are verified (here referenced as
$test_base_dir). -
Create a "fake"-admin directory to avoid messing up test installations with regular installations:
mkdir -p $test_base_dir/fakeroot/var/lib/dpkg/updates mkdir -p $test_base_dir/fakeroot/var/lib/dpkg/info touch $test_base_dir/fakeroot/var/lib/dpkg/statusNote:nvidia-driveos-core_<DRIVEOS_RELEASE>.debandnvidia-driveos_<DRIVEOS_RELEASE>.debdo not contain file only dependencies and do not have corresponding copytarget-*.yaml files. - For each Debian package:
-
Create a "fake"-root directory named
package-name_root.mkdir p $test_base_dir/package-name_root -
Install the Debian package into this
$test_base_dir/package-name_rootdirectory.On the host:
sudo dpkg --force-architecture -- admindir=$test_base_dir/fakeoot /var/lib/dpkg -- instdir=$test_base_dir/package-name_root/ --force-depends -- install absolute_path_of_debian_packageOn target system:
sudo dpkg --admindir=$test_base_dir/fakeroot /var/lib/dpkg --instdir=$test_base_dir/package-name_root/ -- force-depends --install absolute_path_of_debian_package
-