Skip to content

Commit 9e8315b

Browse files
Merge pull request #169 from ptorrestr/test-compile-c11
Test compile c11
2 parents 65b87a0 + c14e330 commit 9e8315b

4 files changed

Lines changed: 42 additions & 33 deletions

File tree

.travis.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ language: cpp
22
env:
33
global:
44
- LOCAL=$HOME/local
5-
- TESTS_HDT="bit375 bitutiltest listener logarr serd streamtest testmax"
6-
- TESTS_CDS="testArray testBitSequence testHuffman testLCP testNPR testSequence testSuffixTree testTextIndex timeSequence toArray2 toArray"
75
matrix:
86
include:
97
- os: osx
@@ -50,8 +48,8 @@ script:
5048
- ./configure --prefix=$LOCAL CXX=$HDT_CPP
5149
- make -j2
5250
# Make and run selected tests. Most tests in HDT are failing
53-
- TESTS=$TESTS_CDS make -e check -j2 -C libcds || ( cat libcds/tests/test-suite.log && exit -1)
54-
- TESTS=$TESTS_HDT make -e check -j2 -C libhdt || ( cat libhdt/tests/test-suite.log && exit -1)
51+
- make check -j2 -C libcds || ( cat libcds/tests/test-suite.log && exit -1)
52+
- make check -j2 -C libhdt || ( cat libhdt/tests/test-suite.log && exit -1)
5553
# Install
5654
- make install
5755
- hdtSearch -q 0 libhdt/data/literals.hdt

libcds/tests/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ testBitSequence \
44
testHuffman \
55
testLCP \
66
testNPR \
7-
testQuantile \
87
testSequence \
98
testSuffixTree \
109
testTextIndex \
1110
timeSequence \
1211
toArray2 \
1312
toArray
13+
#testQuantile
1414

1515
AM_DEFAULT_SOURCE_EXT = .cpp
1616
AM_CPPFLAGS = -I@top_srcdir@/libcds/include $(WARN_CFLAGS)

libhdt/tests/Makefile.am

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,39 @@
11
check_PROGRAMS = \
22
bit375 \
33
bitutiltest \
4-
cmp \
5-
confm \
6-
conops \
7-
conpfc \
8-
convert \
9-
conwav \
10-
csd \
11-
dic \
12-
filterSearch \
13-
genCache \
14-
genIndex \
15-
getobj \
16-
hdt2rdfNotMapping \
17-
hdtExtract \
18-
iter \
19-
joinsearch \
20-
jointest \
21-
kyoto \
4+
c11 \
225
listener \
236
logarr \
24-
mergeHDT \
25-
mincor \
26-
naiveComplete \
27-
opendic \
28-
parse \
29-
patsearch \
30-
popcnt \
31-
randomSolution \
327
serd \
338
streamtest \
34-
testmax \
35-
wav
9+
testmax
10+
#cmp \
11+
#confm \
12+
#conops \
13+
#conpfc \
14+
#convert \
15+
#conwav \
16+
#csd \
17+
#dic \
18+
#filterSearch \
19+
#genCache \
20+
#genIndex \
21+
#getobj \
22+
#hdt2rdfNotMapping \
23+
#hdtExtract \
24+
#iter \
25+
#joinsearch \
26+
#jointest \
27+
#kyoto \
28+
#mergeHDT \
29+
#mincor \
30+
#naiveComplete \
31+
#opendic \
32+
#parse \
33+
#patsearch \
34+
#popcnt \
35+
#randomSolution \
36+
#wav
3637

3738
AM_DEFAULT_SOURCE_EXT = .cpp
3839

libhdt/tests/c11.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#include <tuple>
2+
3+
int
4+
main(int argc, char **argv)
5+
{
6+
std::tuple<int, int> t = std::make_tuple(1,1);
7+
std::tuple<int, int> u;
8+
t.swap(u);
9+
return 0;
10+
}

0 commit comments

Comments
 (0)