Logo
Explore Help
Register Sign In
cory/tildefriends
5
6
Fork 2
You've already forked tildefriends
Code Issues34 Pull Requests Actions Releases32 Wiki Activity
92c06b34a9
BranchesTags
View all branches
tildefriends/tests/03-child

20 lines
352 B
Plaintext
Raw Normal View History

sandboxos => tildefriends git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3157 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-03-12 18:50:43 +00:00
#!/bin/bash
cat > test.js << EOF
var task = new Task();
task.onExit = function() {
print("child exited");
};
task.activate();
Merge branches/quickjs to trunk. This is the way. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3621 ed5197a5-7fde-0310-b194-c3ffbd925b24
2021-01-02 18:10:00 +00:00
task.execute({name: "child.js", source: utf8Decode(File.readFile("child.js"))}).then(function() {
sandboxos => tildefriends git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3157 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-03-12 18:50:43 +00:00
print("child started");
});
EOF
cat > child.js << EOF
print("I am the child process.");
exit(0);
EOF
I think this fixes tests, and makes them runnable from continuous integration. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3161 ed5197a5-7fde-0310-b194-c3ffbd925b24
2016-03-13 13:37:58 +00:00
$TILDEFRIENDS test.js
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 27ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API