1
0
mirror of https://github.com/kakwa/uts-server synced 2024-11-05 01:08:51 +01:00

adding a small external test

This commit is contained in:
kakwa 2016-09-07 21:41:21 +02:00
parent 8a9c76bcd3
commit 873dc61860
2 changed files with 10 additions and 1 deletions

View File

@ -6,6 +6,7 @@ matrix:
sudo: false
before_install:
- ./tests/cfg/pki/create_tsa_certs
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then xcode-select --install; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install argp-standalone; fi
@ -31,4 +32,4 @@ language: c
compiler: clang
script: cmake . -DBUNDLE_CIVETWEB=ON && make
script: cmake . -DBUNDLE_CIVETWEB=ON && make && ./tests/external_test.sh

8
tests/external_test.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
timeout 20 ./uts-server -c tests/cfg/uts-server.cnf -D &
./goodies/timestamp-file.sh -i README.md -u http://localhost:2020 -r -O "-cert" || exit 1
./goodies/timestamp-file.sh -i README.md -u http://localhost:2020 -r -O "-cert" || exit 1
./goodies/timestamp-file.sh -i README.md -u http://localhost:2020 -r -O "-cert" || exit 1