1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v test v => v test-compiler

This commit is contained in:
Delyan Angelov
2019-12-01 11:50:13 +02:00
committed by Alexander Medvednikov
parent 854309a7d8
commit ec15bfb7d1
29 changed files with 431 additions and 280 deletions

View File

@@ -1,6 +1,7 @@
**Please delete this information after reading it.*
Please title your PR as follows: `time: fix foo bar`. Always start with the thing you are fixing, then describe the fix.
Please title your PR as follows: `time: fix foo bar`.
Always start with the thing you are fixing, then describe the fix.
Don't use past tense (e.g. "fixed foo bar").
Explain what your PR does and why.
@@ -20,10 +21,13 @@ fn test_foo() {
If you are fixing a bug, please add a test that covers it.
Before submitting a PR, please run the tests with `v test v`, and make sure V can still compile itself. Run this twice:
Before submitting a PR, please:
A) run the tests with `v test-compiler` .
B) make sure, that V can still compile itself:
```shell
./v -o v v.v
./v -o v v.v
```
I try to process PRs as soon as possible. They should be handled within 24 hours.

View File

@@ -10,6 +10,6 @@ du -s .
ls -lat
./v test v
./v test-compiler
echo "DONE"

View File

@@ -36,7 +36,7 @@ jobs:
- name: Build V using V
run: ./v -o v2 v.v && ./v2 -o v3 v.v
- name: Test v->c
run: ./v test v
run: ./v test-compiler
# - name: Test v->js
# run: ./v -o hi.js examples/hello_v_js.v && node hi.js
- name: Test symlink
@@ -58,7 +58,7 @@ jobs:
- name: Build V
run: make && ./v -cc gcc -o v v.v
- name: Test V
run: ./v test v
run: ./v test-compiler
# - name: Test v->js
# run: ./v -o hi.js examples/hello_v_js.v && node hi.js
- name: Build Vorum
@@ -110,7 +110,7 @@ jobs:
sudo ln -s /var/tmp/tcc/bin/tcc /usr/local/bin/tcc
tcc -version
./v -o v2 v.v # Make sure vtcc can build itself
./v test v
./v test-compiler
ubuntu-musl:
runs-on: ubuntu-18.04
@@ -124,7 +124,7 @@ jobs:
- name: Build v
run: make && ./v -cc musl-gcc -o v v.v
# - name: Test v->c
# run: ./v test v
# run: ./v test-compiler
# - name: Test v->js
# run: ./v -o hi.js examples/hello_v_js.v && node hi.js
@@ -142,7 +142,7 @@ jobs:
.\make.bat -gcc
- name: Test
run: |
.\v.exe test v
.\v.exe test-compiler
## v.js dosent work on windows
#.\v.exe -o hi.js examples/hello_v_js.v
#node hi.js
@@ -164,7 +164,7 @@ jobs:
env:
VFLAGS: -cc msvc
run: |
.\v.exe test v
.\v.exe test-compiler
## v.js dosent work on windows
#.\v.exe -o hi.js examples/hello_v_js.v
#node hi.js