delete file-watch project
This commit is contained in:
1
.github/workflows/test.yml
vendored
1
.github/workflows/test.yml
vendored
@@ -18,7 +18,6 @@ jobs:
|
||||
- KISS_TARGET=py
|
||||
- KISS_PROJECT=aoc
|
||||
- KISS_PROJECT=asciilib2
|
||||
- KISS_PROJECT=file-watch
|
||||
- KISS_PROJECT=flixel-ascii-game
|
||||
- KISS_PROJECT=flixel-rpg-tutorial
|
||||
- KISS_PROJECT=kiss-vscode
|
||||
|
1
projects/file-watch/.gitignore
vendored
1
projects/file-watch/.gitignore
vendored
@@ -1 +0,0 @@
|
||||
test-output.txt
|
@@ -1,4 +0,0 @@
|
||||
-lib kiss
|
||||
-cp src
|
||||
--main Main
|
||||
--python bin/main.py
|
@@ -1,9 +0,0 @@
|
||||
package;
|
||||
|
||||
import sys.io.File;
|
||||
import sys.io.Process;
|
||||
import kiss.Kiss;
|
||||
import kiss.Prelude;
|
||||
|
||||
@:build(kiss.Kiss.build())
|
||||
class Main {}
|
@@ -1,19 +0,0 @@
|
||||
(defun check [file delay command erase]
|
||||
(let [contents
|
||||
(try
|
||||
(StringTools.trim (File.getContent file))
|
||||
(catch [e] ""))]
|
||||
(if (< 0 contents.length)
|
||||
#|for (line in contents.split("\n")) {
|
||||
new Process(StringTools.replace(command, "{}", '"' + line + '"'));
|
||||
}|#))
|
||||
(if erase (File.saveContent file ""))
|
||||
(Sys.sleep delay)
|
||||
(check file delay command erase))
|
||||
|
||||
(defun :Void main []
|
||||
(check
|
||||
(nth (Sys.args) 0)
|
||||
(Std.parseFloat (nth (Sys.args) 1))
|
||||
(nth (Sys.args) 2)
|
||||
(= 1 (Std.parseInt (nth (Sys.args) 3)))))
|
@@ -1 +0,0 @@
|
||||
hey
|
@@ -1,22 +0,0 @@
|
||||
#! /bin/bash
|
||||
|
||||
echo "" > test-output.txt
|
||||
expected=$'hey\nhey\nhey'
|
||||
if [[ $(uname) == *"MINGW"* ]] || [ $CI_OS_NAME = "windows-latest" ]; then
|
||||
expected=$'"hey" \r\n"hey" \r\n"hey"'
|
||||
fi
|
||||
|
||||
whichpy=python
|
||||
# "python" is supposed to mean Python3 everywhere now, but not in practice
|
||||
if [ ! -z "$(which python3)" ]; then
|
||||
whichpy=python3
|
||||
fi
|
||||
|
||||
haxe build.hxml && \
|
||||
# Give extra time to reach 3 "hey"s
|
||||
timeout 0.5 $whichpy bin/main.py test-file.txt 0.1 "echo {} >> test-output.txt" 0 || \
|
||||
if [[ "$(cat test-output.txt)" != *"$expected"* ]]
|
||||
then
|
||||
echo "$(cat test-output.txt) should be $expected"
|
||||
exit 1
|
||||
fi
|
Reference in New Issue
Block a user