forked from LearningLocker/xapi-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
26 lines (19 loc) · 729 Bytes
/
test.sh
File metadata and controls
26 lines (19 loc) · 729 Bytes
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
#!/usr/bin/env sh
log () {
echo "- XAPI SERVICE LOG: $1"
}
log "Running conformance tests."
log "Starting the server on port $EXPRESS_PORT."
node dist/conformanceServer.js &
log "Cloning the ADL conformance test suite."
git clone -b patch-1 https://github.com/ryansmith94/lrs-conformance-test-suite ../conformance
cd ../conformance
log "Installing dependencies for the ADL conformance test suite."
npm install
log "Running the ADL conformance test suite."
node bin/console_runner.js -e "http://localhost:$EXPRESS_PORT/data/xAPI" -a -u "AAA" -p "BBB" -b
exitCode=$?
log "Stopping the server."
ps aux | grep [n]ode\ dist\/conformanceServer | awk '{print $2}' | xargs kill
log "Completed conformance tests."
exit $exitCode