Browse Source

Update QuickJS test suite to bootstrap its own QuickJS runtime.

pull/1865/head
Joao Matos 2 years ago
parent
commit
94f1cb5efd
  1. 3
      tests/quickjs/.gitignore
  2. 13
      tests/quickjs/bootstrap.sh
  3. 2
      tests/quickjs/premake5.lua
  4. 2
      tests/quickjs/test.sh

3
tests/quickjs/.gitignore vendored

@ -1,4 +1,5 @@ @@ -1,4 +1,5 @@
gen
runtime/
gen/
*.so
*.dylib
*.dll

13
tests/quickjs/bootstrap.sh

@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -e
dir=$(cd "$(dirname "$0")"; pwd)
rootdir="$dir/../.."
if [ ! -d runtime ]; then
git clone https://github.com/quickjs-ng/quickjs.git runtime
git -C runtime reset --hard 0e5e9c2c49db15ab9579edeb4d90e610c8b8463f
fi
if [ ! -f runtime/build/qjs ]; then
make -C runtime/
fi

2
tests/quickjs/premake5.lua

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
local qjs_dir = path.getabsolute("../../deps/quickjs")
local qjs_dir = path.getabsolute("./runtime")
local runtime = "../../src/Generator/Generators/QuickJS/Runtime"
workspace "qjs"

2
tests/quickjs/test.sh

@ -5,7 +5,7 @@ rootdir="$dir/../.." @@ -5,7 +5,7 @@ rootdir="$dir/../.."
dotnet_configuration=Release
configuration=debug
platform=x64
jsinterp="$rootdir/deps/quickjs/qjs-debug"
jsinterp="$dir/runtime/build/qjs"
red=`tput setaf 1`
green=`tput setaf 2`

Loading…
Cancel
Save