Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 20 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,24 @@ compiler:
addons:
apt:
packages:
- git
- make
- autoconf
- libtool
- pkg-config
- libncurses5-dev
- libreadline6-dev
- zlib1g-dev
- uuid-dev
- libxml2-dev
- libglib2.0-dev
- libraptor2-dev
- librasqal3-dev
- git
- make
- autoconf
- libtool
- pkg-config
- libncurses5-dev
- libreadline6-dev
- zlib1g-dev
- uuid-dev
- libxml2-dev
- libglib2.0-dev
- libraptor2-dev
- librasqal3-dev
# install: make get-deps
script: ./autogen.sh && ./configure && make && make test
before_script:
- mkdir -p /tmp/4store
script:
- ./autogen.sh
- ./configure --with-storage-path=/tmp/4store --with-http-log=/tmp/4store
- make
- make test
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# 4store

[![Build Status](https://travis-ci.org/4store/4store.svg?branch=master)](https://travis-ci.org/4store/4store)

4store is an efficient, scalable and stable RDF database.

4store was designed by Steve Harris and developed at Garlik to underpin their
Expand Down
10 changes: 7 additions & 3 deletions tests/httpd/run.pl
Original file line number Diff line number Diff line change
Expand Up @@ -48,24 +48,27 @@

if ($pid = fork()) {
sleep(2);
my $httpd_port = 13579;
if ($httppid = fork()) {
if ($valgrind) {
sleep(4);
} else {
sleep(1);
}
} else {
my @cmd = ("../../src/http/4s-httpd", "-c", "../tests_4store.conf", "-X", "-D", "-p", "13579", $kb_name);
my @cmd = ("../../src/http/4s-httpd", "-c", "../tests_4store.conf", "-X", "-D", "-p", "$httpd_port", $kb_name);
if ($valgrind) {
print("Running httpd under valgrind, output in valgrind.txt\n");
unshift(@cmd, 'valgrind', '-v', '--trace-children=yes', '--log-file=valgrind.txt');
}
close STDERR;
#close STDERR;
print(join(" ", @cmd)."\n");
exec(@cmd);
die "failed to exec HTTP server: $!";
}
print("4s-httpd running on PID $httppid\n");
`ss -lt 1>&2`;
`curl -I http://127.0.0.1:$httpd_port/status/ 1>&2`;
sleep(1);
my $fails = 0;
my $passes = 0;
Expand All @@ -82,7 +85,7 @@
$errout = "";
}
print("[....] $t\r[");
my $ret = system("EPR=http://127.0.0.1:13579 LANG=C LC_ALL=C TESTPATH=../../src scripts/$t > $outdir/$t $errout");
my $ret = system("EPR=http://127.0.0.1:$httpd_port LANG=C LC_ALL=C TESTPATH=../../src scripts/$t > $outdir/$t $errout");
if ($ret == 2) {
exit(2);
}
Expand Down Expand Up @@ -116,6 +119,7 @@

}
print("Tests completed: passed $passes/".($fails+$passes)." ($fails fails)\n");
`tail -n +1 -- $outdir/*-errs 1>&2`;
$ret = kill 15, $httppid;
if (!$ret) {
warn("failed to kill HTTP server process, pid $httppid");
Expand Down