test kiss cli commands
This commit is contained in:
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
@@ -30,6 +30,7 @@ jobs:
|
|||||||
# TODO iso-rpg-engine
|
# TODO iso-rpg-engine
|
||||||
- KISS_PROJECT=kill-carriage-return
|
- KISS_PROJECT=kill-carriage-return
|
||||||
# TODO kiss-express
|
# TODO kiss-express
|
||||||
|
- KISS_PROJECT=kiss-cli-tests
|
||||||
# TODO kiss-flixel
|
# TODO kiss-flixel
|
||||||
- KISS_PROJECT=kiss-tools
|
- KISS_PROJECT=kiss-tools
|
||||||
- KISS_PROJECT=kiss-vscode
|
- KISS_PROJECT=kiss-vscode
|
||||||
|
|||||||
@@ -179,12 +179,7 @@ class Macros {
|
|||||||
// Context.definedValue only returns a string so if there's a whole
|
// Context.definedValue only returns a string so if there's a whole
|
||||||
// object, I don't know how to get it
|
// object, I don't know how to get it
|
||||||
conditionInterp.variables["target"] = {
|
conditionInterp.variables["target"] = {
|
||||||
threaded:
|
threaded: Context.getModule("sys.thread.Thread") != null
|
||||||
#if (cs || neko || cpp || java || python || hl)
|
|
||||||
true
|
|
||||||
#else
|
|
||||||
false
|
|
||||||
#end
|
|
||||||
};
|
};
|
||||||
#if test
|
#if test
|
||||||
Prelude.print("#if condition hscript: " + hscriptStr);
|
Prelude.print("#if condition hscript: " + hscriptStr);
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package TestNewProject;
|
||||||
|
|
||||||
|
class Main {
|
||||||
|
static function main() {
|
||||||
|
Main_.main();
|
||||||
|
}
|
||||||
|
}
|
||||||
6
projects/kiss-cli-tests/new-project-input.txt
Normal file
6
projects/kiss-cli-tests/new-project-input.txt
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
TestNewProject
|
||||||
|
NQNStudios
|
||||||
|
https://github.com/NQNStudios/kisslang
|
||||||
|
LGPL
|
||||||
|
test
|
||||||
|
test kiss new-project
|
||||||
6
projects/kiss-cli-tests/test.sh
Executable file
6
projects/kiss-cli-tests/test.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
# Test kiss new-project command
|
||||||
|
cat new-project-input.txt | haxelib run kiss new-project
|
||||||
|
|
||||||
|
# TODO test other kiss project templates
|
||||||
Reference in New Issue
Block a user