Skip to content

Commit

Permalink
comment nodejs tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FirePing32 committed Jul 30, 2024
1 parent 3ca2e0a commit 8848337
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,34 @@

loc="$(dirname "$0")/tests"

echo "NodeJS tests"
export LOADER_SCRIPT_PATH="$loc/node"
echo "Npm Test"
metacall npm install metacall > out.txt
if [ $? -eq 1 ]; then
cat out.txt
echo "Test suite failed"
rm out.txt
exit 1
fi
cat out.txt
echo "Successful!!"
echo "Node metacall test"
cat "$loc/node/commands.txt" | metacall > out.txt
if [ $? -eq 1 ]; then
cat out.txt
echo "Test suite failed"
rm out.txt
exit 1
fi
if ! grep -q "366667" out.txt; then
cat out.txt
echo "Test suite failed"
rm out.txt
exit 1
fi
cat out.txt
echo "Successful!!"
# echo "NodeJS tests"
# export LOADER_SCRIPT_PATH="$loc/node"
# echo "Npm Test"
# metacall npm install metacall > out.txt
# if [ $? -eq 1 ]; then
# cat out.txt
# echo "Test suite failed"
# rm out.txt
# exit 1
# fi
# cat out.txt
# echo "Successful!!"
# echo "Node metacall test"
# cat "$loc/node/commands.txt" | metacall > out.txt
# if [ $? -eq 1 ]; then
# cat out.txt
# echo "Test suite failed"
# rm out.txt
# exit 1
# fi
# if ! grep -q "366667" out.txt; then
# cat out.txt
# echo "Test suite failed"
# rm out.txt
# exit 1
# fi
# cat out.txt
# echo "Successful!!"

echo "Python tests"
export LOADER_SCRIPT_PATH="$loc/python"
Expand Down

0 comments on commit 8848337

Please sign in to comment.