freight-team / freight

A modern take on the Debian archive.
Other
107 stars 37 forks source link

Tests: fix apt-get errors #110

Closed yegorich closed 3 years ago

yegorich commented 3 years ago

Export our key so apt can use it as trusted key.

Create an empty status file.

yegorich commented 3 years ago

@runejuhl could you give a try? Thanks.

runejuhl commented 3 years ago

@runejuhl could you give a try? Thanks.

Thanks @yegorich, it works!

Here's the full test output:

$ docker run -ti --rm -v $(pwd):/freight -u $(id -u) -w /freight $(docker build -q .) make check
PATH=test/tmp/bin/:$PATH test/tmp/bats/bin/bats test/
 ✓ freight-add adds package to distro main component
 ✓ freight-add adds package to a component
 ✓ freight-add adds package and hard link to multiple components
 ✓ freight-add detects duplicate package
 ✓ freight-add adds source .dsc files
 ✓ freight-add adds source .tar.gz files
 ✓ freight-add adds source .orig.tar.gz files
 ✓ freight-add handles VARLIB being a symlink
 ✓ freight-cache builds distro Release/InRelease file
 ✓ freight-cache builds per-component Release file
 ✓ freight-cache builds pool
 ✓ freight-cache generates valid Release/InRelease signatures
 ✓ freight-cache signs Release/InRelease with two keys
 ✓ freight-cache works without tty
 ✓ apt-get fetches package list
 ✓ freight-cache removes deleted packages from pool
 ✓ freight-cache --keep retains deleted packages in pool
 ✓ freight-cache handles VARLIB being a symlink
 ✓ freight-cache skips partial source packages
 ✓ freight-cache builds source-only archive
 ✓ apt-get fetches source package list

21 tests, 0 failures

The Dockerfile used is very simple:

FROM ubuntu:focal

RUN apt update && apt install -y git make gnupg

I've rebased my PR onto your test fixes.

yegorich commented 3 years ago

Great! Thanks for testing.