~arctic+fox/arctic-fox/trunk

« back to all changes in this revision

Viewing changes to scripts/lib/test_functions.sh

  • Committer: Roel Sergeant
  • Date: 2019-12-28 14:50:01 UTC
  • Revision ID: rsergeant@xps-debian.local-20191228145001-s4y55z0bx2l9i86q
arctic-fox: fix build of test script

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
            ;;
146
146
    esac
147
147
 
 
148
    export CT_TEST_PLATFORM="$(uname)"
 
149
    export CT_TEST_PROJECT_PATH="$project_path"
148
150
    export CT_TEST_SCRIPT="$id"
149
151
    export CT_TEST_SOURCE="$test_src_path/$id.$extension"
150
152
    export CT_TEST_OBJ="$test_obj_path/$id.o"
153
155
    export CT_TEST_SH="$test_bin_path/$id.sh"
154
156
 
155
157
    information "Output generated:"
 
158
    information "   Platform: $CT_TEST_PLATFORM"
 
159
    information "   Project path: $CT_TEST_PROJECT_PATH"
156
160
    information "   Test source: $CT_TEST_SOURCE"
157
161
    information "   Object: $CT_TEST_OBJ"
158
162
    information "   Binary: $CT_TEST_BIN"
174
178
        return $ERR_COULD_NOT_GENERATE_TEST
175
179
    fi
176
180
 
 
181
    chmod uga+x "$test_bin_path/$id.sh"
 
182
    if [ "$?" -ne 0 ]
 
183
    then
 
184
        handleError $ERR_COULD_NOT_MAKE_EXECUTABLE "$id"
 
185
        return $ERR_COULD_NOT_MAKE_EXECUTABLE
 
186
    fi
 
187
 
177
188
    return 0
178
189
}
179
190