mirror of
https://github.com/phiresky/sql.js-httpvfs.git
synced 2024-11-08 20:22:44 +01:00
326ad43df3
subrepo: subdir: "sql.js" merged: "f5d9f54" upstream: origin: "https://github.com/sql-js/sql.js" branch: "master" commit: "f5d9f54" git-subrepo: version: "0.4.3" origin: "???" commit: "???"
28 lines
449 B
Bash
Executable File
Vendored
28 lines
449 B
Bash
Executable File
Vendored
#!/usr/bin/env bash
|
|
|
|
passed=0
|
|
total=0
|
|
for f in $(dirname $0)/test_*.js
|
|
do
|
|
total=$((total+1))
|
|
echo -ne "Testing $f...\t"
|
|
node "$f" > /tmp/sqljstest
|
|
if [ $? = 0 ]
|
|
then
|
|
echo "Passed."
|
|
passed=$((passed+1))
|
|
else
|
|
echo -e "\033[31mFail!\e[0m"
|
|
cat /tmp/sqljstest
|
|
fi
|
|
done
|
|
|
|
if [ $passed = $total ]
|
|
then
|
|
echo -e "\033[32mAll $total tests passed\e[0m"
|
|
exit 0
|
|
else
|
|
echo -e "\033[31mWarning\e[0m : $passed tests passed out of $total"
|
|
exit 1
|
|
fi
|