File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33JS_SLANG=" node node_modules/js-slang/dist/repl/repl.js"
4- TEST_FRAMEWORK=" src/test/framework/main.js"
54
65SOURCEFILES=src/* /* .js
7- TEST_FRAMEWORK_FILE=" source-test.js"
6+ SOURCE_TEST=" src/test/framework/main.js"
7+ SOURCE_TEST_FILENAME=" source-test.js"
88
99red=` tput setaf 1`
1010green=` tput setaf 2`
@@ -31,10 +31,10 @@ $DIFF"
3131}
3232
3333# $1 is the source file to be tested
34- # $2 is the Source test file which uses the test framework
34+ # $2 is the Source test file which uses the source- test framework
3535test_source_framework () {
36- # run concatenation of test framework and test file
37- RESULTS=$( $JS_SLANG -e --chapter=4 " $( cat $TEST_FRAMEWORK $1 $2 ) " )
36+ # run concatenation of source- test framework and test file
37+ RESULTS=$( $JS_SLANG -e --chapter=4 " $( cat $SOURCE_TEST $1 $2 ) " )
3838
3939 # retrieve names for tests that passed
4040 while read test_name
@@ -68,8 +68,8 @@ main() {
6868 test_source $s $i
6969 done
7070
71- # check if test framework is being used
72- TEST_PATH=" $DIR /__tests__/$TEST_FRAMEWORK_FILE "
71+ # check if source- test framework is being used
72+ TEST_PATH=" $DIR /__tests__/$SOURCE_TEST_FILENAME "
7373 if [ -e $TEST_PATH ]
7474 then
7575 test_source_framework $s $TEST_PATH
You can’t perform that action at this time.
0 commit comments