Skip to content

Commit 7022aa2

Browse files
committed
Add a "Hello JerryScript!" program to the tests
The current code base does not contain any "first JavaScript program" for those who build JerryScript for Linux console. It does contain a LED-blinking example -- blinky.js -- but that's only useful on an developer board where LEDs-to-be-blinked are available. And the rest of the tests are just that: tests, giving passed/failed information but nothing eye candy. This patch adds a simple JS script that can act as a warm welcome to anyone after the first successful build trying to run something proving that Jerry works. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss [email protected]
1 parent 36e90d9 commit 7022aa2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/hello.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright 2015 Samsung Electronics Co., Ltd.
2+
// Copyright 2015 University of Szeged.
3+
//
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// http://www.apache.org/licenses/LICENSE-2.0
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
16+
print ("Hello JerryScript!");

0 commit comments

Comments
 (0)