2022-10-23 07:56:21 -04:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
2022-10-23 09:59:51 -04:00
|
|
|
# we do not run `osrm-routed-js` tests on v12 since fastify doesn't support it
|
|
|
|
NODE_VERSION=$(node --version)
|
|
|
|
NODE_MAJOR_VERSION=$(echo $NODE_VERSION | cut -d. -f1)
|
2022-10-23 10:57:01 -04:00
|
|
|
if [[ "$NODE_MAJOR_VERSION" != "v12" ]]; then
|
|
|
|
echo "Running osrm-routed-js tests"
|
2022-10-23 11:00:36 -04:00
|
|
|
|
2022-10-23 09:59:51 -04:00
|
|
|
export OSRM_USE_ROUTED_JS=1
|
|
|
|
node ./node_modules/cucumber/bin/cucumber.js features/ -p verify_routed_js
|
2022-10-23 10:06:13 -04:00
|
|
|
node ./node_modules/cucumber/bin/cucumber.js features/ -p mld_routed_js
|
2022-10-23 09:59:51 -04:00
|
|
|
unset OSRM_USE_ROUTED_JS
|
2022-10-23 10:57:01 -04:00
|
|
|
else
|
|
|
|
echo "Skipping osrm-routed-js tests on Node.js ${NODE_VERSION}"
|
|
|
|
fi
|
2022-10-23 07:56:21 -04:00
|
|
|
|
2022-10-23 08:38:42 -04:00
|
|
|
node ./node_modules/cucumber/bin/cucumber.js features/ -p verify
|
|
|
|
node ./node_modules/cucumber/bin/cucumber.js features/ -p verify -m mmap
|
|
|
|
node ./node_modules/cucumber/bin/cucumber.js features/ -p mld
|
|
|
|
node ./node_modules/cucumber/bin/cucumber.js features/ -p mld -m mmap
|