AutolabJS/AutolabJS

View on GitHub
docs/examples/unit_tests/test_cases/cpp/setup/Test1.sh

Summary

Maintainability
Test Coverage
#!/bin/bash
# All variables that are exported/imported are in upper case convention. They are:
#   TESTDIR : name of the test directory
#   LANGUAGE : language in which the student has submitted an evaluation request
#copy all the files under test from "student_solution/" and support files from "author_solution/"
#copy all source files first

cp -f student_solution/cpp/Seller.hpp working_dir/
cp -f student_solution/cpp/Seller.cpp working_dir/

#copy the test files
cp "$TESTDIR"/"$LANGUAGE"/tests/Test1.hpp working_dir/Test.hpp
cp "$TESTDIR"/"$LANGUAGE"/tests/Test1.cpp working_dir/Test.cpp