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
|
||||
- KISS_PROJECT=kill-carriage-return
|
||||
# TODO kiss-express
|
||||
- KISS_PROJECT=kiss-cli-tests
|
||||
# TODO kiss-flixel
|
||||
- KISS_PROJECT=kiss-tools
|
||||
- KISS_PROJECT=kiss-vscode
|
||||
|
@@ -179,12 +179,7 @@ class Macros {
|
||||
// Context.definedValue only returns a string so if there's a whole
|
||||
// object, I don't know how to get it
|
||||
conditionInterp.variables["target"] = {
|
||||
threaded:
|
||||
#if (cs || neko || cpp || java || python || hl)
|
||||
true
|
||||
#else
|
||||
false
|
||||
#end
|
||||
threaded: Context.getModule("sys.thread.Thread") != null
|
||||
};
|
||||
#if test
|
||||
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