diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7adfba9..6969ac0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Build the Docker image run: | cp -v extras/test/Dockerfile . @@ -18,4 +18,4 @@ jobs: - name: Run main test suite run: docker run -t --privileged dyne/tomb /bin/bash -c "make test" - name: Run Tomb-kdb tests - run: docker run -t --privileged dyne/tomb /bin/bash -c "make -C extras/kdf-keys test" \ No newline at end of file + run: docker run -t --privileged dyne/tomb /bin/bash -c "make -C extras/kdf-keys test" diff --git a/extras/docker/Dockerfile b/extras/docker/Dockerfile index 64feab9..805feee 100644 --- a/extras/docker/Dockerfile +++ b/extras/docker/Dockerfile @@ -4,7 +4,7 @@ # This creates an Ubuntu derived base image and installs the tomb libarary # along with it's dependencies. -FROM dyne/devuan:beowulf +FROM dyne/devuan:chimaera ARG DEBIAN_FRONTEND=noninteractive ARG TOMB_VERSION=2.9 @@ -19,7 +19,8 @@ RUN apt-get update -y && \ zsh \ gnupg \ cryptsetup \ - pinentry-curses \ + pinentry pinentry-curses \ + file xxd \ steghide \ mlocate \ swish-e diff --git a/extras/test/00_create.sh b/extras/test/00_create.sh index b610300..1aae78f 100644 --- a/extras/test/00_create.sh +++ b/extras/test/00_create.sh @@ -11,7 +11,7 @@ test_expect_success 'Testing tomb creation: dig, forge and lock' ' tt_forge --tomb-pwd $DUMMYPASS && print $DUMMYPASS \ | gpg --batch --passphrase-fd 0 --no-tty --no-options -d $tomb_key \ - | hexdump -C && + | xxd && tt_lock --tomb-pwd $DUMMYPASS ' @@ -22,7 +22,7 @@ if test_have_prereq SPHINX ORACLE; then tt_forge --tomb-pwd $DUMMYPASS --sphx-user $DUMMYUSER --sphx-host $DUMMYHOST && print $(echo $DUMMYPASS | sphinx get $DUMMYUSER $DUMMYHOST) \ | gpg --batch --passphrase-fd 0 --no-tty --no-options -d $tomb_key \ - | hexdump -C && + | xxd && tt_lock --tomb-pwd $DUMMYPASS --sphx-user $DUMMYUSER --sphx-host $DUMMYHOST ' fi @@ -34,7 +34,7 @@ if test_have_prereq DOAS; then tt_forge --sudo doas --tomb-pwd $DUMMYPASS && print $DUMMYPASS \ | gpg --batch --passphrase-fd 0 --no-tty --no-options -d $tomb_key \ - | hexdump -C && + | xxd && tt_lock --sudo doas --tomb-pwd $DUMMYPASS ' fi diff --git a/extras/test/30_kdf.sh b/extras/test/30_kdf.sh index be038ff..f9bb329 100644 --- a/extras/test/30_kdf.sh +++ b/extras/test/30_kdf.sh @@ -11,7 +11,7 @@ if test_have_prereq KDF; then tt_forge --tomb-pwd $DUMMYPASS --kdf 1 && print $DUMMYPASS \ | gpg --batch --passphrase-fd 0 --no-tty --no-options -d $tomb_key \ - | hexdump -C && + | xxd && tt_lock --tomb-pwd $DUMMYPASS --kdf 1 ' diff --git a/extras/test/90_setkey.sh b/extras/test/90_setkey.sh index 6dc53fa..737a012 100755 --- a/extras/test/90_setkey.sh +++ b/extras/test/90_setkey.sh @@ -14,7 +14,7 @@ test_expect_success 'Testing set key' ' --unsafe --tomb-pwd $DUMMYPASS && print $DUMMYPASS \ | gpg --batch --passphrase-fd 0 --no-tty --no-options -d $tomb_key_new \ - | hexdump -C && + | xxd && tt_close ' @@ -40,7 +40,7 @@ if test_have_prereq SPHINX ORACLE; then --sphx-user $DUMMYUSER --sphx-host $DUMMYHOST && print $DUMMYPASS \ | gpg --batch --passphrase-fd 0 --no-tty --no-options -d $tomb_key_new \ - | hexdump -C && + | xxd && tt_close ' fi diff --git a/extras/test/Dockerfile b/extras/test/Dockerfile index e489bc9..6e6fc68 100644 --- a/extras/test/Dockerfile +++ b/extras/test/Dockerfile @@ -1,9 +1,8 @@ -FROM dyne/devuan:beowulf +FROM dyne/devuan:chimaera RUN echo "deb http://deb.devuan.org/merged chimaera main" >> /etc/apt/sources.list RUN apt-get update -y -q --allow-releaseinfo-change -RUN apt-get install -y -q -t beowulf zsh cryptsetup gawk libgcrypt20-dev steghide qrencode python python2.7 python3-pip python3-dev libssl-dev make gcc g++ sudo gettext file bsdmainutils -RUN apt-get install -y -q -t chimaera libsodium23 libsodium-dev doas +RUN apt-get install -y -q zsh cryptsetup gpg gawk libgcrypt20-dev steghide qrencode python python2.7 python3-pip python3-dev libssl-dev make gcc sudo gettext bsdmainutils file pinentry-curses xxd libsodium23 libsodium-dev doas RUN pip3 install setuptools wheel COPY . /Tomb/ diff --git a/extras/test/runtests b/extras/test/runtests index 0792ffe..8f0d140 100755 --- a/extras/test/runtests +++ b/extras/test/runtests @@ -100,7 +100,7 @@ test-tomb-create() { notice "Dump of clear key contents to examine them:" print ${dummypass} \ | gpg --batch --passphrase-fd 0 --no-tty --no-options -d /tmp/test.tomb.key \ - | hexdump -C + | xxd echo -- } @@ -309,7 +309,7 @@ test-set-key() { notice "Dump of clear key contents to examine them:" print ${dummypass} \ | gpg --batch --passphrase-fd 0 --no-tty --no-options -d /tmp/test.tomb.new.key \ - | hexdump -C + | xxd echo -- mv /tmp/test.tomb.new.key /tmp/test.tomb.key tt close test