-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrun_ldp_testsuite.sh
28 lines (23 loc) · 2.6 KB
/
run_ldp_testsuite.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
# Download ldp testsuite
wget --quiet https://www.trellisldp.org/ldp/ldp-testsuite.jar
# Create a basic container
curl -s http://127.0.0.1/ -XPOST -H"Slug: basic" -H"Link: <http://www.w3.org/ns/ldp#BasicContainer>; rel=\"type\"" -H"Content-Type: text/turtle" --data-binary @resources/basic.ttl
java -jar ldp-testsuite.jar --software "Trellis LDP" --server http://127.0.0.1/basic/ --basic --non-rdf --earl --software "Trellis Linked Data Server" --shortname "Trellis" --language "Java" --homepage https://www.trellisldp.org --assertor https://www.trellisldp.org --developer "Aaron Coburn" | grep -v DEBUG
mv report/ldp-testsuite-execution-report.html report/basic.html
mv report/ldp-testsuite-execution-report-earl.ttl report/basic.ttl
mv report/ldp-testsuite-execution-report-earl.jsonld report/basic.jsonld
# Create a direct container
curl -s http://127.0.0.1/ -XPOST -H"Slug: member_dc" -H"Link: <http://www.w3.org/ns/ldp#RDFSource>; rel=\"type\"" -H"Content-Type: text/turtle" --data-binary @resources/member.ttl
curl -s http://127.0.0.1/ -XPOST -H"Slug: direct" -H"Link: <http://www.w3.org/ns/ldp#DirectContainer>; rel=\"type\"" -H"Content-Type: text/turtle" --data-binary @resources/direct.ttl
java -jar ldp-testsuite.jar --software "Trellis LDP" --server http://127.0.0.1/direct/ --direct --non-rdf --earl --software "Trellis Linked Data Server" --shortname "Trellis" --language "Java" --homepage https://www.trellisldp.org --assertor https://www.trellisldp.org --developer "Aaron Coburn" | grep -v DEBUG
mv report/ldp-testsuite-execution-report.html report/direct.html
mv report/ldp-testsuite-execution-report-earl.ttl report/direct.ttl
mv report/ldp-testsuite-execution-report-earl.jsonld report/direct.jsonld
# Create an indirect container
curl -s http://127.0.0.1/ -XPOST -H"Slug: member_ic" -H"Link: <http://www.w3.org/ns/ldp#RDFSource>; rel=\"type\"" -H"Content-Type: text/turtle" --data-binary @resources/member.ttl
curl -s http://127.0.0.1/ -XPOST -H"Slug: indirect" -H"Link: <http://www.w3.org/ns/ldp#IndirectContainer>; rel=\"type\"" -H"Content-Type: text/turtle" --data-binary @resources/indirect.ttl
java -jar ldp-testsuite.jar --software "Trellis LDP" --server http://127.0.0.1/indirect/ --indirect --non-rdf --earl --software "Trellis Linked Data Server" --shortname "Trellis" --language "Java" --homepage https://www.trellisldp.org --assertor https://www.trellisldp.org --developer "Aaron Coburn" | grep -v DEBUG
mv report/ldp-testsuite-execution-report.html report/indirect.html
mv report/ldp-testsuite-execution-report-earl.ttl report/indirect.ttl
mv report/ldp-testsuite-execution-report-earl.jsonld report/indirect.jsonld