summaryrefslogtreecommitdiff
path: root/other/travis
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-10-01 00:26:52 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-10-01 02:13:34 +0100
commitc037100747a1a224160cb12defb600ddfe1ba927 (patch)
tree8332a7d288116b802866e1ed98d1b950425206f7 /other/travis
parent1977d56caaff40ea9bbf6754b69bec9539a5a969 (diff)
Import the hstox SUT interface from hstox.
We'll maintain it in the c-toxcore repo, where it belongs.
Diffstat (limited to 'other/travis')
-rwxr-xr-xother/travis/hstox-install18
-rwxr-xr-xother/travis/hstox-script2
2 files changed, 8 insertions, 12 deletions
diff --git a/other/travis/hstox-install b/other/travis/hstox-install
index f9d0f7b6..fccae0be 100755
--- a/other/travis/hstox-install
+++ b/other/travis/hstox-install
@@ -8,16 +8,12 @@ cabal update
8# install. 8# install.
9cabal install happy 9cabal install happy
10 10
11# Fetch hstox. 11# Fetch hstox and msgpack-c.
12git clone --recursive --depth=1 https://github.com/TokTok/hstox ../hstox 12git clone --recursive --depth=1 https://github.com/TokTok/hs-toxcore ../hs-toxcore
13git clone --depth=1 https://github.com/msgpack/msgpack-c testing/hstox/msgpack-c
13 14
14# Delete all files in the cloned toxcore. 15# Install the hstox test runner.
15rm -rf ../hstox/test/toxcore/toxcore/toxcore 16(cd ../hs-toxcore && cabal install --disable-library-profiling)
16# Move the toxcore source files to the hstox test directory.
17# The reason we move source files instead of the whole git root directory is
18# that the travis scripts (like this one) need to remain in place.
19mv toxcore ../hstox/test/toxcore/toxcore
20 17
21# In the "install" step, we only run configure, which downloads the required 18# Install toxcore dependencies.
22# packages. In the "script" step we then build the actual code. 19. other/travis/toxcore-linux-install
23make -C ../hstox configure
diff --git a/other/travis/hstox-script b/other/travis/hstox-script
index 0c1953cb..a75c477b 100755
--- a/other/travis/hstox-script
+++ b/other/travis/hstox-script
@@ -1,3 +1,3 @@
1#!/bin/sh 1#!/bin/sh
2 2
3make -C ../hstox check-toxcore 3make -C testing/hstox check