Skip to content
Snippets Groups Projects
Commit abaa1de5 authored by dkg's avatar dkg
Browse files

added a simple, totally incomplete test suite

parent 3c562626
Branches
Tags
No related merge requests found
......@@ -9,6 +9,9 @@ LDFLAGS += $(shell pkg-config --libs libsystemd)
all: hddemux hddemux.1
check: hddemux
./testsuite
hddemux: hddemux.c
gcc $(CFLAGS) $(LDFLAGS) -std=c11 -pedantic -Wall -Werror -o $@ $<
......@@ -31,4 +34,4 @@ clean:
draft-dkg-dprive-demux-dns-http.html \
draft-dkg-dprive-demux-dns-http.xml
.PHONY: clean all
.PHONY: clean all check
#!/bin/bash
set -e
# test suite for hddemux
# this is just a stub.
[ -x ./hddemux ]
# hddemux with no arguments and no listening file descriptors should fail:
if [ ./hddemux ]; then
if ./hddemux; then
false
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment