mirror of
https://github.com/pi-hole/FTL.git
synced 2024-10-26 16:52:18 +02:00
@@ -13,6 +13,15 @@ ENV GIT_TAG=${GIT_TAG}
|
||||
ARG BUILD_OPTS=""
|
||||
ENV BUILD_OPTS=${BUILD_OPTS}
|
||||
|
||||
# Add ncurses used for pretty output in bats tests
|
||||
RUN apk add --no-cache ncurses
|
||||
ENV TERM=xterm
|
||||
|
||||
# Monkeypatch BATS to remove duplicate output of starting and finished test
|
||||
# BATS uses ANSI escape codes to overwrite the line after the test has finished
|
||||
# This is not supported by Github Actions as it does not provide a TTY to the docker build container
|
||||
RUN sed -i '/buffer_with_truncation /d' /bats-core/libexec/bats-core/bats-format-pretty
|
||||
|
||||
# Build FTL
|
||||
# Remove possible old build files
|
||||
RUN rm -rf cmake && \
|
||||
|
||||
+1
-1
@@ -106,7 +106,7 @@ echo -n "Contained dnsmasq version (DNS): "
|
||||
dig TXT CHAOS version.bind @127.0.0.1 +short
|
||||
|
||||
# Run tests
|
||||
$BATS "test/test_suite.bats"
|
||||
$BATS -p "test/test_suite.bats"
|
||||
RET=$?
|
||||
|
||||
curl_to_tricorder() {
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
#!./test/libs/bats/bin/bats
|
||||
|
||||
@test 'fail()' {
|
||||
fail 'this test always fails'
|
||||
}
|
||||
|
||||
@test "Compare template and test TOML config files" {
|
||||
# We skip the first 5 lines of the files as they contain the version and
|
||||
# timestamp of the file creation/modification
|
||||
|
||||
Reference in New Issue
Block a user