translator: fix creating folders in tests

This commit is contained in:
Alexey Stepanov
2016-08-29 17:57:12 +03:00
parent 67e2d8cbee
commit 072232ce35
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -11,6 +11,7 @@ TEST=`basename $i ".txt"`
DIRECTORY="src/test/kotlin/tests"
MAIN="$DIRECTORY/$TEST/linked/main.c"
rm -f $DIRECTORY/$TEST/linked/*
mkdir -p $DIRECTORY/$TEST/linked
echo "#include <stdlib.h>" >> $MAIN
echo "#include <stdio.h>" >> $MAIN
+2 -1
View File
@@ -31,6 +31,7 @@ for i in $TESTS; do
TEST=`basename $i ".txt"`
MAIN="$DIRECTORY/$TEST/linked/main.c"
rm -f $DIRECTORY/$TEST/linked/*
mkdir -p $DIRECTORY/$TEST/linked
successful=1
echo -e "${orange}test: ${TEST}${nc}"
echo "#include <stdlib.h>" >> $MAIN
@@ -99,4 +100,4 @@ for i in $TESTS; do
total_scripts=$((total_scripts+1))
done
echo -e "Result: ${orange} [${successful_scripts}]/[${total_scripts}]"
echo -e "Result: ${orange} [${successful_scripts}]/[${total_scripts}]"